473,320 Members | 2,027 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,320 software developers and data experts.

Passing options

Lee
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 page needs to reference.

Thanks

Lee
Nov 18 '05 #1
3 1543
Either use the Querystring object or Session variables.
"Lee" <la*******@spamless.sympatico.ca> wrote in message
news:ua**************@TK2MSFTNGP09.phx.gbl...
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 page needs to reference.

Thanks

Lee

Nov 18 '05 #2
Hi Lee,

You should be aware that using the Querystring adds the object you are
passing to the URL while using Session variables puts the object in server
memory. Using Querystring means you can send other people bookmarks/links
and your web application will retain those variables you're passing. Using
Session allows for a more readable URL and is also useful for passing around
large objects, but bookmarks/links will be broken because the Session is
stored in server memory, is linked to a particular connection and will
expire after a certain amount of time.

HTH,
Mark Jen [MSFT]
--
Please reply in newsgroup.
This posting is provided "AS IS" with no warranties, and confers no rights.

"William Ryan [eMVP]" <do********@comcast.nospam.net> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
Either use the Querystring object or Session variables.
"Lee" <la*******@spamless.sympatico.ca> wrote in message
news:ua**************@TK2MSFTNGP09.phx.gbl...
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 page needs to reference.

Thanks

Lee


Nov 18 '05 #3
Lee
My preference is the querystring (subject to change at a later date)

I can pass it (form the url properly using ie
http://localhost/project.aspx?projectID=A321

What is the code to pull out the projectID value on the next page?

Thanks

Lee

"Mark Jen [MSFT]" <ma*****@online.microsoft.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi Lee,

You should be aware that using the Querystring adds the object you are
passing to the URL while using Session variables puts the object in server
memory. Using Querystring means you can send other people bookmarks/links
and your web application will retain those variables you're passing. Using
Session allows for a more readable URL and is also useful for passing around large objects, but bookmarks/links will be broken because the Session is
stored in server memory, is linked to a particular connection and will
expire after a certain amount of time.

HTH,
Mark Jen [MSFT]
--
Please reply in newsgroup.
This posting is provided "AS IS" with no warranties, and confers no rights.
"William Ryan [eMVP]" <do********@comcast.nospam.net> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
Either use the Querystring object or Session variables.
"Lee" <la*******@spamless.sympatico.ca> wrote in message
news:ua**************@TK2MSFTNGP09.phx.gbl...
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 page needs to reference.

Thanks

Lee



Nov 18 '05 #4

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

Similar topics

4
by: Chris | last post by:
I'm trying to come up with a not-so-ugly manner of passing many command-line options between modules. I have a Steering.py file, which contains my main() and handles the getopts getting of...
2
by: John Leslie | last post by:
I am porting a script from Korn Shell to python and want to pass named parameters like -JOB 123456 -DIR mydir I can get it to work passing --JOB and --DIR but not -JOB and -DIR Any ideas? ...
12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
1
by: Kevin Lyons | last post by:
Hello, I am trying to get all of my form elements passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html to the following URL:...
16
by: Simon | last post by:
Hi all, I think I've seen someone passing an emumeration in code before. Can anyone tell me if thats possible and why i would want to. Many thanks Kindest Regards
5
by: Matthew Thompson | last post by:
I have as issue I am finding hard to research. I use a stored proecdure in SQL 2000 to provide search capability for our database of news stories and articles. Being an international magazine...
2
by: Mark Drummond | last post by:
Hi all. I've been using Perl for many years now, but I am a "use it and learn it as you need it" type. I having some trouble passing a list to the "search" subroutine from Net::LDAP. I am trying...
7
by: Leo Breebaart | last post by:
I have another question where I am not so much looking for a solution but rather hoping to get some feedback on *which* solutions people here consider good Pythonic ways to approach a issue. ...
1
by: Harold Fellermann | last post by:
Dear list, I looked through the list but could not find any solutions for my current problem. Within my program, I am importing a module via __import__(module_name,globals(),locals()) and I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.