Maintain view state using AJAX or Callback

  • Thread starter Thread starter Varangian
  • Start date Start date
V

Varangian

Hi there again...

is there a way to maintain the ViewState of WebControls when using AJAX
or Callbacks ?

Every time I refresh a page or use a postback from a control it would
loose the components contents!

how can I resolve this problem?

thanks
 
view state only has the information known when the page was rendered. if you
update the state of controls with clientscript, then you need to send that
info back to the server on the postback, usually in a hidden field.

-- bruce (sqlwork.com)
 

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