Hi,
When I upgraded my ASP.Net 1.1 web application to ASP.Net 2.0. I encountered one issues with ListBox control of WebUI. The senario is as given below
A ListBox is disabled at server side by setting ListBox.Enabled = true. The View State of ListBox is enabled
At client side this listbox is enabled by client script.
User selects few options in ListBox and clicks on Save button.
The selected values are not available on Server. It shows the values from ViewState. In .Net 1.1 it use to update selected indexes as per new selection even if control is disabled.
The behavior of dropdownlist and textbox in 2.0 is same as that of 1.1. i.e. they are updating the values from client even if control is disabled at server side.
Can any body explain me why ListBox is behaving differently? Is it a bug or change happened in ASP.Net 2.0.