Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Classic ASP and ASP.Net interoperability


Message #1 by "VBE" <biyo1014@y...> on Thu, 13 Feb 2003 01:52:45
Ken and Philip.....thank you very much. I'll use both of your 
suggestions. 

VBE





> I agree, and as far as the Guids are concerned, you could use the Guid 
class

to generate a new Globally Unique identifier as well, ie something like

//create new GUID and return as string
public string CreateGUID()
{
	Guid newguid = Guid.NewGuid();
	return newguid.ToString();
}

If you strong name your assembly, store in the Global Assembly cache
and register it with COM using regasm.exe you can use this to generate
guids from ASP Classic too.

Check out the ShoppingCart class in IBuySpy for more ideas.

P

-----Original Message-----
From: Ken Schaefer [mailto:ken@a...]
Sent: 13 February 2003 03:19
To: ASPX_Professional
Subject: [aspx_professional] Re: Classic ASP and ASP.Net
interoperability


Store the variables in a database, extract some kind of GUID, pass that 
GUID
to your .aspx page which then retrieves the values from the database and
populates your .aspx session variables...

Alternatively, in your .aspx page retrieve the ASPSessionID cookie's 
value.
Use a HTTP GET against a special asp page which returns a list of all the
ASP session variables and their values.

As you've surmised, you can't server.transfer from an ASP page to an 
ASP.Net
page. ASP.Net code is intepreted by a different .dll to ASP pages.

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "VBE" <biyo1014@y...>
To: "ASPX_Professional" <aspx_professional@p...>
Sent: Thursday, February 13, 2003 1:52 AM
Subject: [aspx_professional] Classic ASP and ASP.Net interoperability


: I want to pass the session-id and other variables from an
: ASP page to an ASP.NET page.  The applications are
: running under Windows2000 Server/ IIS 5.0.  I used
: Server.Transfer in ASP to pass control from ASP to
: ASP.net but comes back with the ff error. I suspect that
: ASP is the one executing the aspx page and not .NET.  Is
: there some other way to do this?
:
:
:
: Active Server Pages error 'ASP 0221'
:
: Invalid @ Command directive
:
: /extranet/mypickup/pickup/confirm.aspx, line 1
:
: The specified 'Page Language="vb" AutoEventWireup="false"
: Codebehind="Confirm.aspx.vb" Inherits="PuR.Confirm"'
: option is unknown or invalid. error '8000d001'
:
: /extranet/pickup/pickupsubmit.asp, line 84


---
Change your mail options at http://p2p.wrox.com/manager.asp or 
to unsubscribe send a blank email to


  Return to Index