Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: RE: Sessions...


Message #1 by Fung HM <funghm@s...> on Sat, 24 Nov 2001 09:58:15 +0800
Dear All,



I need help here....

i would like to pass the ID of the user to a new page so that from the

ID, all the users data can be shown. However, i have already used the

form action function to post other things. any suggestion is welcomed.

thanks in advance!

i tried to use session but couldnt figure out how !!! please advice...



j0n



Message #2 by "Kim Iwan Hansen" <kimiwan@k...> on Sat, 24 Nov 2001 04:37:19 +0100
hi jon,



put the userid in the userid in the link to the page with the details:

<a href="userdetails.asp?userid=10">User name goes here</a>



on the userdetails.asp page, you then retrieve that value from the

querystring:

intUserID = Request.Querystring("userid")



you should take a look at Beginning Active Server Pages 3.0 chapter 7, it's

about the request and response objects :-)



-Kim







-----Original Message-----

From: Fung HM [mailto:funghm@s...]

Sent: 24. november 2001 02:58

To: ASP Databases

Subject: [asp_databases] RE: Sessions...

Importance: High





Dear All,



I need help here....

i would like to pass the ID of the user to a new page so that from the

ID, all the users data can be shown. However, i have already used the

form action function to post other things. any suggestion is welcomed.

thanks in advance!

i tried to use session but couldnt figure out how !!! please advice...



j0n










$subst('Email.Unsub')





Message #3 by "Jeff Dupont" <jdupont@j...> on Sat, 24 Nov 2001 15:46:16 -0700
sessions are quite easy to use, especially when you're dealing with a value

that has to be used throughout a site... like a username or id.

all it is, is Session("your variable name") = what ever value



example:

to store a userid into a session variable to recall at another page ===

Session("userid") = 3



now if you want to use that variable on another page all you need to do

is...



userid = Session("userid")



the variable now equals the session value of 3



Jeff Dupont

Light Year Technologies, LLP

http://www.lytechnologies.com

c:  xxx-xxx-xxxx



-----Original Message-----

From: Fung HM [mailto:funghm@s...]

Sent: Friday, November 23, 2001 6:58 PM

To: ASP Databases

Subject: [asp_databases] RE: Sessions...

Importance: High





Dear All,



I need help here....

i would like to pass the ID of the user to a new page so that from the

ID, all the users data can be shown. However, i have already used the

form action function to post other things. any suggestion is welcomed.

thanks in advance!

i tried to use session but couldnt figure out how !!! please advice...



j0n










$subst('Email.Unsub')





Message #4 by Fung HM <funghm@s...> on Mon, 26 Nov 2001 08:35:17 +0800
Thanks a lot men...

i got it... it works well!!!



j0n



Jeff Dupont wrote:



> sessions are quite easy to use, especially when you're dealing with a value

> that has to be used throughout a site... like a username or id.

> all it is, is Session("your variable name") = what ever value

>

> example:

> to store a userid into a session variable to recall at another page ===

> Session("userid") = 3

>

> now if you want to use that variable on another page all you need to do

> is...

>

> userid = Session("userid")

>

> the variable now equals the session value of 3

>

> Jeff Dupont

> Light Year Technologies, LLP

> http://www.lytechnologies.com

> c:  xxx-xxx-xxxx

>

> -----Original Message-----

> From: Fung HM [mailto:funghm@s...]

> Sent: Friday, November 23, 2001 6:58 PM

> To: ASP Databases

> Subject: [asp_databases] RE: Sessions...

> Importance: High

>

> Dear All,

>

> I need help here....

> i would like to pass the ID of the user to a new page so that from the

> ID, all the users data can be shown. However, i have already used the

> form action function to post other things. any suggestion is welcomed.

> thanks in advance!

> i tried to use session but couldnt figure out how !!! please advice...

>

> j0n

>




> $subst('Email.Unsub')

>

>







  Return to Index