Listbox Items Vanish On Postback

  • Thread starter Thread starter Luke Ward
  • Start date Start date
L

Luke Ward

Hi

When server side errors occur I need to do a round trip, go back to the page
preserving the user entered data, and also inform the user of the error.
The page preserves things in textboxes, but not items add to a list box with
client side javascript. I understand why this is all happening and I am now
wondering the best way to work around it.

I think I am going to have to manually code items from the Request.Form and
put them back in to the appropriate listboxes.

Is this the only way :-(

Cheers

Luke
 
Hi Luke
do you disable viewstate of the page and if not why isn't this a solution
to your problem .Also , why don't you add hidden filedes to your page and
use them to populate textboxs when this.IsPostBack equals true. hope that i
got your problem correctly and this would help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top