T
Tony M
vb .net 2005 aspx
I have a dropbox that is binded to a table
i.e. ...... item = "New York " and Item value = "NY"
in the If not ispostback I read an SQL table and use the State Item value to
lookup the index in the dropbox and
set the selectedindex .
I tested this by making a list instead of binding to a table and it works.
DDState.SelectedIndex =
DDState.Items.IndexOf(DDState.Items.FindByValue(IsRecordReader("State")))
The only thing I can think of is that i perform the lookup and then the
binding to the table occurs which makes my lookup not work.
is there anyway I can force the binding in the pageload then do my
lookup/search?
Thanks
I have a dropbox that is binded to a table
i.e. ...... item = "New York " and Item value = "NY"
in the If not ispostback I read an SQL table and use the State Item value to
lookup the index in the dropbox and
set the selectedindex .
I tested this by making a list instead of binding to a table and it works.
DDState.SelectedIndex =
DDState.Items.IndexOf(DDState.Items.FindByValue(IsRecordReader("State")))
The only thing I can think of is that i perform the lookup and then the
binding to the table occurs which makes my lookup not work.
is there anyway I can force the binding in the pageload then do my
lookup/search?
Thanks