A
Airshow
Hi,
I have very simple Page_Load code in some code-behind class in ASP.NET (v.
1.1):
private void Page_Load(object sender, System.EventArgs e)
{
if ( IsPostBack )
DropDownList1.SelectedIndex = 5;
else
{
FillDropDownList( DropDownList1 ); // some method to fill
values in list
DropDownList1.SelectedIndex = 0;
}
}
Everything is fine with selection first time Web page is loaded -- first
item in the dropdown list is selected. Problem is that selection does not
change to 5 when the page is loaded next time in response to some client
action -- it is always 0 in client side when page is reloaded. Same problem
goes for other controls in the form -- neither labels nor text boxes texts
can be changed dynamicaly in Page_Load. Any help please?
Airshow
I have very simple Page_Load code in some code-behind class in ASP.NET (v.
1.1):
private void Page_Load(object sender, System.EventArgs e)
{
if ( IsPostBack )
DropDownList1.SelectedIndex = 5;
else
{
FillDropDownList( DropDownList1 ); // some method to fill
values in list
DropDownList1.SelectedIndex = 0;
}
}
Everything is fine with selection first time Web page is loaded -- first
item in the dropdown list is selected. Problem is that selection does not
change to 5 when the page is loaded next time in response to some client
action -- it is always 0 in client side when page is reloaded. Same problem
goes for other controls in the form -- neither labels nor text boxes texts
can be changed dynamicaly in Page_Load. Any help please?
Airshow