Passing options

L

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
 
M

Mark Jen [MSFT]

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]
 
L

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 said:
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 said:
Either use the Querystring object or Session variables.
the
user need
to
 

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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top