DopDownList Help ...

SixString

Newcomer
Joined
Aug 5, 2003
Messages
18
Hi :)

Im going crazy on a issue im having with a DropDownList

The main thing is the dropdownlist is populated from the database and have 1 static Value when SelectedIndexChanged the DropDownList makes a Response.Redirect to another page ,
on the same page theres a DataGrid with Paging

Now the problem is that if a user selects a value on the DropDownList the Response.Redirect happens....so far so good ....but if the user makes a page navigate back the value of the DropDownList its not anymore the Static value ....so if some Paging is done on the DataGrid
the Paging dosent happen because whats postedback its the value of the DropDownList .

How can i solve this ???

Please Help

Thanks in advance

Cheers
 
Are you binding the DropDownList on each postback?
ensure that your page load event has this in it...
if(!IsPostBack)
{
//bind DropDownList here
}
 
Back
Top