473,386 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

passing server (not form) variables to same page

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
Nov 17 '05 #1
3 1255
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" <ma*************@toxicall.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
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

Nov 17 '05 #2
Nicole,

How can I enable viewstate for non form variables??

Marcel

"Nicole Calinoiu" <ni*****@somewhere.net> wrote in message
news:OF**************@TK2MSFTNGP11.phx.gbl...
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" <ma*************@toxicall.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
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


Nov 17 '05 #3
OK, pls ignore previous post - i was not thinking clearly. thx Marcel
"Nicole Calinoiu" <ni*****@somewhere.net> wrote in message
news:OF**************@TK2MSFTNGP11.phx.gbl...
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" <ma*************@toxicall.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
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


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jason Us | last post by:
Does anyone have experience with passing variables from an ASP page to a JSP page. The way it currently works in passing the SSN in the URL. This cannot be good. I thought that storing a...
7
by: Pete | last post by:
Any ideas on how I can set some data in 1.asp, then have 1.asp do a server.transfer (or .execute, come to that) to 2.asp, and have 2.asp access the original data? I'm aware that the Session...
4
by: JA | last post by:
I have this little tell-a-friend script that will send out a link back to the site. I want to put a link on my product pages that will go to the script, and have the script display the product...
5
by: Jack | last post by:
Hi, I need to pass multple variables in a link in order to go to a asp page with the two varables. The following are the values of the variables using response.write: <%'Response.Write Mypage...
6
by: Eric Johnston | last post by:
I want the visitor to enter three numbers on the page and then click a button "generate image" which will I hope cause a generated gif image to be displayed alongside on the page. This involved...
3
by: Lee | last post by:
Hi All How can I pass options from one webpage into another webpage. When the user clicks on the hyperlink I want them to be go to the next page but I need to pass in a number that the next...
1
by: Eric | last post by:
Hello, I am trying to come up with the best way to pass large amounts of data from page to page, namely a data table. The user needs to enter data into a form in one page and confirm it on...
7
by: Khai | last post by:
First off, yes, I understand the crapload of tutorials out there, (well, rather, I understand there /are/ a crapload of tutorials out there), the problem is my comprehension. I'm trying to pass...
6
BezerkRogue
by: BezerkRogue | last post by:
This is the most fundamental action I am sure, but I can't seem to make it happen. I am familiar with passing variables in ASP. But that doesn't seem to be the preferred method in .NET. I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.