By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,883 Members | 955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,883 IT Pros & Developers. It's quick & easy.

Passing options

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.