S
steven scaife
I have created a web user control for use in a web site. Basically it pulls
all the suppliers from a table and lists them in a drop down list.
However when the page posts back to itself the drop down list loses the item
that was selected. I tried adding a public property to the control and using
a request.form to get the selected item and set the value that way but it
fails saying Object reference not set to an instance of an object.
How can i get it so that the control persists state. I have checked that
everything has viewstate enabled. the control, the page, the panel
TIA
all the suppliers from a table and lists them in a drop down list.
However when the page posts back to itself the drop down list loses the item
that was selected. I tried adding a public property to the control and using
a request.form to get the selected item and set the value that way but it
fails saying Object reference not set to an instance of an object.
How can i get it so that the control persists state. I have checked that
everything has viewstate enabled. the control, the page, the panel
TIA