Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > passing server (not form) variables to same page

Reply
Thread Tools

passing server (not form) variables to same page

 
 
Marcel Balcarek
Guest
Posts: n/a
 
      10-28-2003
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


 
Reply With Quote
 
 
 
 
Nicole Calinoiu
Guest
Posts: n/a
 
      10-28-2003
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


"Marcel Balcarek" <> wrote in message
news:...
> 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
>
>



 
Reply With Quote
 
 
 
 
Marcel Balcarek
Guest
Posts: n/a
 
      10-28-2003
Nicole,

How can I enable viewstate for non form variables??

Marcel

"Nicole Calinoiu" <> wrote in message
news:...
> 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
>
>
> "Marcel Balcarek" <> wrote in message
> news:...
> > 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
> >
> >

>
>



 
Reply With Quote
 
Marcel Balcarek
Guest
Posts: n/a
 
      10-28-2003
OK, pls ignore previous post - i was not thinking clearly. thx Marcel
"Nicole Calinoiu" <> wrote in message
news:...
> 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
>
>
> "Marcel Balcarek" <> wrote in message
> news:...
> > 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
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
session variables - how to handle parallel access by the same user tothe same page Stephan Steiner ASP .Net 1 09-24-2009 03:10 AM
Put variables into member variables or function variables? tjumail@gmail.com C++ 9 03-23-2008 04:03 PM
how to use same user control x number of times on same asp page David Hubbard ASP .Net 2 01-12-2006 03:56 PM
Having a problem using WebRequest inside code invoked by the Page_Load event to to download a page located on same server (as the currently executing page). Hasani \(remove nospam from address\) ASP .Net 9 09-29-2004 05:07 PM
passing multiple checkbox variables w/same cb name ? zig Javascript 12 01-29-2004 01:59 PM



Advertisments