Click to See Complete Forum and Search --> : DropdownList and ViewState


rushikeshl
November 17th, 2004, 10:56 PM
Hi,

I have an asp dropdownlist control on a web page. Initially, there are no items in the dropdown list. On the client side when the page renders, I add items into the dropdownlist. However, when the page does a postback, all the my values are lost. I understand that since these values were not present in the dropdown when the page loaded, the ViewState for this control does not have anything in it. Is there a way to save these items added on the client side to the dropdown list's ViewState so that they are saved during roundtrips ?

Thanks,
Rushi