passing server (not form) variables to same page

  • Thread starter Thread starter Marcel Balcarek
  • Start date Start date
M

Marcel Balcarek

Can I keep the value of (some of) my server variables across posts?

I can define hidden form fields, but is there a better way?

I have passed some form variables from one page to another and now wish to
remember them across posts.

Thank you
Marcel
 
Marcel,

You have four basic options:

1. Hidden form fields (don't depend on anything outside your own code).
2. Cookies (client must have cookies enabled, and you might need to account
for the fact that a given user might be using more than one instance of your
page at any given time).
3. View state (view state must be enabled).
4. Session state (session state must be enabled, and you might need to
account for the fact that a given user might be using more than one instance
of your page at any given time).

HTH,
Nicole
 
Nicole,

How can I enable viewstate for non form variables??

Marcel
 
OK, pls ignore previous post - i was not thinking clearly. thx Marcel
 

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