Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
WebDropDown Not Displaying Table Data After Postback ...
posted

Hi,

When the page loads the WebDropDown is populated with a dataset which is then set to nothing.  

When I select a value in the table in the dropdown I populate other textfields based on the values read from the selection in the table in the dropdown.

After that page is posted back, the values in the table in the webdropdown are no longer visible but when selected the values from the selected item do populate the textfields correctly.

It seems that the data is not visible but is there to select from.

Does anyone have any suggestions, I have pretty much exhausted my options?

Thanks!

 

Parents
No Data
Reply
  • 24671
    Suggested Answer
    posted

    If you are using <ItemTemplate> you will have to rebind (call DataBind() on the control), after every postback. Data Items are not stored into ViewState , therefore your DataBinding expressions will not evaluate any data.

    Thanks,

    Angel 

Children