Monday, March 26, 2012

Maintain view state using AJAX or Callback

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?

thanksview 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)

"Varangian" <ofmars@.gmail.com> wrote in message
news:1142515507.276433.127100@.u72g2000cwu.googlegr oups.com...
> 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
send that how? through which invokation method ?

0 comments:

Post a Comment