[thelist] Cookies between ASP and ASP.NET?

Casey aspnet at thecrookstons.com
Wed Nov 9 23:24:11 CST 2005


Solved.  Thanks!

----- Original Message ----- 
From: "Casey" <aspnet at thecrookstons.com>
To: <thelist at lists.evolt.org>
Sent: Wednesday, November 09, 2005 11:03 PM
Subject: Re: [thelist] Cookies between ASP and ASP.NET?


>> : Is it possible to set a cookie in ASP and retrieve it in ASP.NET?
>>
>> Absolutely
>
> Okay, thanks Ken.  At least I know I'm headed in the right direction.
>
> In the ASP page, the cookie is set as follows:
>    response.cookies("access_level") = session("access_level")
>
> Then just to be sure the cookies is being set, I called it again on the 
> same
> page:
>    response.write("level=" & request.cookies("access_level"))
>
> It returns the value as expected.  In the ASP.NET file, this returns
> nothing:
>    response.write(Request.Cookies("access_level"))
>
> And this returns an error:
>    response.write(Request.Cookies("access_level").value)
>
> System.NullReferenceException: Object reference not set to an instance of
> an object.
>
> Thus my confusion.  I'll keep searching, and in the mean time if anyone 
> else
> can point out my (silly?) error....
>
> Casey
>
>
> -- 
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt ! 




More information about the thelist mailing list