Wrapping old ASP with ASP.NET

M

Michael Dyremo

Hello.

We have a web-application built in ASP.NET using WebForms
and Remoting. When selling this application we always
incorporate it into the customers existing web-site. Our
latest
customer wishes to do some more advanced integration
between our application and their
existing site, namely using asp-includes to get the
menusystem of their external site integrated with our
applications WebForms.

Their existing site is written in old ASP and VisualBasic
and a lot of code is present in their asp-files. The
question is:

Is there any way to wrap the old ASP-code, allowing their
pages to execute the old VB code and still include them
using asp-includes in our ASP.NET WebForms ? When we've
tried it we get a lot of parse-errors, and we're assuming
this is because the .NET Framework tries to execute their
ASP-files in the .NET enviroment.

/md
 
S

SStory

How about using frames....
Top frame--put their asp page
maybe left frame the same,
Main frame use your ASP.NET

Would this work for you?

HTH

Shane
 
N

Natty Gur

Hi,

Shane is right Frame/IFrame is the cleanest solution. Note that it’s not
trivial to share asp.net session with asp session (and vice versa).
There are some solutions and products. Let me know if you need this
info.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
 
Y

Yan-Hong Huang[MSFT]

Hello Michael,

Shane and Natty are right. You can work with and run existing ASP pages (.asp files) as-is in Visual Studio. You can use ASP
pages and ASP.NET pages in the same project. You can edit ASP files in the Web Forms Designer and run them as you
would other pages in your project.

However, some ASP and Visual InterDev 6.0 features are not supported by ASP.NET, because these features require a
different run-time environment. For example, Structural Compatibility, ( Presents the differences in page layout and coding
style between ASP and ASP.NET), ASP.NET Security, (Provides a brief discussion of ASP.NET security)...

For details, please refer to MSDN topic: "Migrating ASP Pages to Web Forms Pages" at
http://msdn.microsoft.com/library/en-us/vbcon/html/vbtskMigratingASPPageToASP.asp?frame=true.

Hope it helps.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "Michael Dyremo" <[email protected]>
!Sender: "Michael Dyremo" <[email protected]>
!Subject: Wrapping old ASP with ASP.NET
!Date: Fri, 8 Aug 2003 03:02:44 -0700
!Lines: 24
!Message-ID: <[email protected]>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcNdlDaLhztp7zyfTqqZfMiZ8XN/1w==
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:166062
!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!Hello.
!
!We have a web-application built in ASP.NET using WebForms
!and Remoting. When selling this application we always
!incorporate it into the customers existing web-site. Our
!latest
!customer wishes to do some more advanced integration
!between our application and their
!existing site, namely using asp-includes to get the
!menusystem of their external site integrated with our
!applications WebForms.
!
!Their existing site is written in old ASP and VisualBasic
!and a lot of code is present in their asp-files. The
!question is:
!
!Is there any way to wrap the old ASP-code, allowing their
!pages to execute the old VB code and still include them
!using asp-includes in our ASP.NET WebForms ? When we've
!tried it we get a lot of parse-errors, and we're assuming
!this is because the .NET Framework tries to execute their
!ASP-files in the .NET enviroment.
!
!/md
!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top