Passing options

  • Thread starter Thread starter Lee
  • Start date Start date
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
 
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]
 
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
 
Back
Top