Dropdown value when EnableViewstate = false
If EnableViewstate of a dropdown is set to false, you would need to bind the data at every post. Nothing new in this! But, you might face issues in retrieving value selected in dropdown before postback. It will always be ""
To get the value, pre-populate dropdown in Page_Init instead of Page_Load (if you are doing so). This will give the right selected value.
To get the value, pre-populate dropdown in Page_Init instead of Page_Load (if you are doing so). This will give the right selected value.
Comments
Post a Comment