Viewstate

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.
 
E

Eric Lawrence [MSFT]

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.
 
G

Guest

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

Scott M.

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.
 
S

Scott M.

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.
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top