Viewstate

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

Guest

Can i use viewsate() inside a script tag indide an .aspx file
I tried to do that but i get an error, is it possible to do anyway

Thanks in advance.
 
What do you want to "use" it for?

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Well i have created an variable in the code-behind, and i do need to get its value when the page loads again.
 
Just add your value to ViewState with:

ViewState.Add(key, value)

and then retrieve it with ViewState(key).

Why do you need a script?


Marco said:
Well i have created an variable in the code-behind, and i do need to get
its value when the page loads again.
 
See my reply to your previous post.


Marco said:
Well i have created an variable in the code-behind, and i do need to get
its value when the page loads again.
 
Back
Top