You can not use ASP session in ASP.NET and vice versa.

Submit all the session values in ASP as a querystring to the ASPX
page. This is the only solution

Thanks
Ram

[email]vimalrajendra@yahoo.com[/email] (Vimal) wrote in message news:<cbeaf67.0307241119.300e5a23@posting.google.c om>...
> Am trying to transfer control from an ASP page to an ASPX page using
> Server.Transfer, as I would like to use the exisitng Session
> variables.
>
> On writing the following code:
>
> <%
> Server.Execute("/DigitalCockpit/WebForm1.aspx")
> %>
>
> The browser displays the following error:
>
> HTTP 500.100 - Internal Server Error - ASP error
> Internet Information Services
>
> Error Type:
> Active Server Pages, ASP 0221 (0x80004005)
> The specified 'Page Language="vb" AutoEventWireup="false"
> Codebehind="WebForm1.aspx.vb" Inherits="DigitalCockpit.WebForm1"'
> option is unknown or invalid.
>
> Any solutions to this problem would be of great help.
>
> Thanks
> Vimal