Maintain view state using AJAX or Callback

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
 
B

Bruce Barker

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top