DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us