G
Guest
I have a combo that gets bound to an ArrayList in Page_Load. Problem is when
user clicks on a button the page is re-loaded, however the combo's DataSource
is null. How can I get the combo to keep it's reference to the DataSource
during the re-load? I would like for the current selected item in the combo
to survive the page re-load.
private void Page_Load(object sender, System.EventArgs e)
{
if( !IsPostBack )
{
ArrayList aZips = (ArrayList) (Application["Zips"]);
cboZip.DataSource = aZips;
cboZip.DataBind();
}
}
user clicks on a button the page is re-loaded, however the combo's DataSource
is null. How can I get the combo to keep it's reference to the DataSource
during the re-load? I would like for the current selected item in the combo
to survive the page re-load.
private void Page_Load(object sender, System.EventArgs e)
{
if( !IsPostBack )
{
ArrayList aZips = (ArrayList) (Application["Zips"]);
cboZip.DataSource = aZips;
cboZip.DataBind();
}
}