C
Calvin X
Hi all I have the following code in the page load event. The function in
this code works get to populate the 4 dropdownlists on my webform. I have
enabled postback because when the user selects from one of the boxes it
should filter the other dropdownlists according to the data selected in the
one causing the postback. However, when the post back runs the drop down
boxes are empty and there are no values in the list. I realize that this is
because I have not reloaded the data into them, my question of the day is:
How dow I set a value into the viewstate before the postback is fired and
then how do I get it back after the postback has started?
If Page.IsPostBack = False Then
CreateComboDataSourceA()
CreateComboDataSourceB()
CreateComboDataSourceC()
CreateComboDataSourceD()
End If
Thanks,
Calvin X
this code works get to populate the 4 dropdownlists on my webform. I have
enabled postback because when the user selects from one of the boxes it
should filter the other dropdownlists according to the data selected in the
one causing the postback. However, when the post back runs the drop down
boxes are empty and there are no values in the list. I realize that this is
because I have not reloaded the data into them, my question of the day is:
How dow I set a value into the viewstate before the postback is fired and
then how do I get it back after the postback has started?
If Page.IsPostBack = False Then
CreateComboDataSourceA()
CreateComboDataSourceB()
CreateComboDataSourceC()
CreateComboDataSourceD()
End If
Thanks,
Calvin X