freelanceprogrammers.org Forum Index » ASP
Re: Passing ASP Session Variables to ASP.NET
Joined: 11 Jan 2006
Posts: 46
Re: Passing ASP Session Variables to ASP.NET
ASP and ASP.NET are separate applications, they do not share memory
and therefore cannot share session variables directly.
Here`s a detailed discussion of how to share state between a classic
ASP app and an ASP.NET app.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/con
verttoaspnet.asp
On 1/11/06, Gregory Fox <greg@...> wrote:
> Hi All,
>
> I have this code in an ASP page:
>
> Session("upload") = ShortFilename(Ubound(ShortFilename))
> Response.Redirect("PDPMain.aspx")
>
> In the PDPMain.aspx I have this code in the Page_Load function:
>
> If Session.Contents("upload") <> Nothing Then
> getExcel()
> End If
>
> In the trace the Session("upload") is not listed and I believe it is not
> being passed. Therefore the getExcel function is not being executed.
>
> Does anyone know if there is something special that has to be done to pass
> session variables from ASP to ASP.NET?
>
> Thanks for any help.
>
> Gregory D. Fox
> Liberty Web Hosting & Design
> 401-823-5252/Fax: 401-828-7057
> MSN: <mailto:Greg@...> Greg@...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Providing Internet Solutions Since 1996
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
--
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com
Joined: 11 Jan 2006
Posts: 38
Re: Passing ASP Session Variables to ASP.NET
Well, if by "something special" you mean "something completely unrelated to
session", then yes :)
ASP and ASP.NET sessions have nothing to do with one another; they`re held
in completely different processes. If you want to pass variables back and
forth, you`ll need to put them somewhere both processes can reach, like
database field, a temporary file, or a cookie.
Bear in mind that ASP encodes its cookies, so if you use non-alphanumeric
characters in your values, you`ll have a bit of cleanup to do once you
recover them in ASP.NET.
Cheers,
Peter
On 1/11/06, Gregory Fox <greg@...> wrote:
>
> Hi All,
>
> I have this code in an ASP page:
>
> Session("upload") = ShortFilename(Ubound(ShortFilename))
> Response.Redirect("PDPMain.aspx")
>
> In the PDPMain.aspx I have this code in the Page_Load function:
>
> If Session.Contents("upload") <> Nothing Then
> getExcel()
> End If
>
> In the trace the Session("upload") is not listed and I believe it is not
> being passed. Therefore the getExcel function is not being executed.
>
> Does anyone know if there is something special that has to be done to pass
> session variables from ASP to ASP.NET?
>
> Thanks for any help.
>
> Gregory D. Fox
> Liberty Web Hosting & Design
> 401-823-5252/Fax: 401-828-7057
> MSN: <mailto:Greg@...> Greg@...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Providing Internet Solutions Since 1996
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
[Non-text portions of this message have been removed]
Joined: 11 Jan 2006
Posts: 2
Re: Passing ASP Session Variables to ASP.NET
You can check into
http://www.statestitch.com/solutions/statestitch/
Steve Radich - http://www.ASPDeveloper.Net - www.VirtualServerFAQ.com
BitShop, Inc. - http://www.bitshop.com - Managed Servers, Colocation,
Troubleshooting, Development and Perf Monitoring (C#,VB,ASP,SQL)
Dedicated Windows 2003 Machines Starting at $49/month
-----Original Message-----
From: AspNetAnyQuestionIsOk@yahoogroups.com
[mailto:AspNetAnyQuestionIsOk@yahoogroups.com] On Behalf Of Dean Fiala
Sent: Wednesday, January 11, 2006 12:10 PM
To: AspNetAnyQuestionIsOk@yahoogroups.com
Subject: Re: [AspNetAnyQuestionIsOk] Passing ASP Session Variables to
ASP.NET
ASP and ASP.NET are separate applications, they do not share memory
and therefore cannot share session variables directly.
Here`s a detailed discussion of how to share state between a classic
ASP app and an ASP.NET app.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/
html/converttoaspnet.asp
On 1/11/06, Gregory Fox <greg@...> wrote:
> Hi All,
>
> I have this code in an ASP page:
>
> Session("upload") = ShortFilename(Ubound(ShortFilename))
> Response.Redirect("PDPMain.aspx")
>
> In the PDPMain.aspx I have this code in the Page_Load function:
>
> If Session.Contents("upload") <> Nothing Then
> getExcel()
> End If
>
> In the trace the Session("upload") is not listed and I believe it is
not
> being passed. Therefore the getExcel function is not being executed.
>
> Does anyone know if there is something special that has to be done to
pass
> session variables from ASP to ASP.NET?
>
> Thanks for any help.
>
> Gregory D. Fox
> Liberty Web Hosting & Design
> 401-823-5252/Fax: 401-828-7057
> MSN: <mailto:Greg@...> Greg@...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Providing Internet Solutions Since 1996
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
--
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com
Yahoo! Groups Links
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







