Refreshing a page within code.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a page with a DropDownList populated with some values.On a button
click one of the value in that DropDownList DataSource is removed.But to
update the DropDownList contents the page must be refreshed.How can I refresh
the page so that DropDownList contents get updated?

I am using ASP.NET with C#.Please do tell me if anyone can.

Thanks in advance,
Kalyani
 
Actually the DropDownList I have is a Dynamic control.If I call DataBind( )
then I get error: Unable to maintain viewstate.Items should be added in the
same order if added dynamically.
But I have only one dynamic control which is either this DropDownList or a
TextBox.
 
Back
Top