|
|
|
start date: Wed, 08 Aug 2007 11:58:21 -0700,
posted on: microsoft.public.dotnet.framework.aspnet
back
| Thread Index |
|
1
JJ297
|
|
2
Jay Balapa
|
|
3
Peter Bromberg [C# MVP]
|
Sessions
Can some one help me, I'm trying to carry
Session("GetPin") from my very first page (validate.aspx) to couple
of pages away called AddQuestions.aspx.vb.
I need to check the credentials then add the Pin of that person into
the database when someone clicks the submit button.
I have it placed under the other parameters as:
.Parameters.AddWithValue("@CDPPin", CDPPin)
Thanks.
Date:Wed, 08 Aug 2007 11:58:21 -0700
Author:
|
Re: Sessions
Have you looked into setting a per session cookie and retreiving the cookie.
--
Jay Balapa
http://jbalapa.blogspot.com
"JJ297" wrote in message
news:1186599501.029552.115420@g4g2000hsf.googlegroups.com...
> Can some one help me, I'm trying to carry
>
> Session("GetPin") from my very first page (validate.aspx) to couple
> of pages away called AddQuestions.aspx.vb.
>
> I need to check the credentials then add the Pin of that person into
> the database when someone clicks the submit button.
>
> I have it placed under the other parameters as:
>
> .Parameters.AddWithValue("@CDPPin", CDPPin)
>
>
>
>
> Thanks.
>
Date:Wed, 8 Aug 2007 15:04:16 -0500
Author:
|
RE: Sessions
Well,
Session("GetPin")= CDPPin
will certainly store whatever is in "CDPPin" in Session. At least in VB.NET
it will.
Later in your other code you can do:
Dim CDPPin as String = Session("CDPPin")
then,
..Parameters.AddWithValue("@CDPPin", CDPPin)
should work.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com
"JJ297" wrote:
> Can some one help me, I'm trying to carry
>
> Session("GetPin") from my very first page (validate.aspx) to couple
> of pages away called AddQuestions.aspx.vb.
>
> I need to check the credentials then add the Pin of that person into
> the database when someone clicks the submit button.
>
> I have it placed under the other parameters as:
>
> .Parameters.AddWithValue("@CDPPin", CDPPin)
>
>
>
>
> Thanks.
>
>
Date:Wed, 8 Aug 2007 13:30:01 -0700
Author:
|
|
|