I have a page that contains some dynamically created controls (TextBox and DropDownList). When a postback occurs, the TextBoxes keep their values, but the DropDownLists lose
I have found the solution that will allow me to keep the viewstate across postbacks. It's to call TrackViewState of the ItemCollection.
CType(ddl.Items, IStateManager).TrackViewState()
Thanks to all for your help.
This is the working solution:
<%@ Page Language="VB"%> Get-Request