473,320 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Wrapping old ASP with ASP.NET

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
Nov 17 '05 #1
5 1181
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

"Michael Dyremo" <mi******@somewhere.nu> wrote in message
news:07****************************@phx.gbl...
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

Nov 17 '05 #2
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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
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

"Michael Dyremo" <mi******@somewhere.nu> wrote in message
news:07****************************@phx.gbl...
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

Nov 17 '05 #4
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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #5
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...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" <mi******@somewhere.nu>
!Sender: "Michael Dyremo" <mi******@somewhere.nu>
!Subject: Wrapping old ASP with ASP.NET
!Date: Fri, 8 Aug 2003 03:02:44 -0700
!Lines: 24
!Message-ID: <07****************************@phx.gbl>
!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
!
Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Roy Smith | last post by:
I've got a C library with about 50 calls in it that I want to wrap in Python. I know I could use some tool like SWIG, but that will give me a too-literal translation; I want to make some...
11
by: yawnmoth | last post by:
word wrapping normally treats some spaces as line feeds, if there hasn't been a line feed for quite a while. so while a string with eighty consecutive a's might not word wrap, a space placed...
5
by: nimdez | last post by:
Hi, I am working on an existing code base in which a lot of data displayed to the user is formatted in tables. Most tables are printed row-by-row using printf() with "%s" print conversion...
2
by: dam_fool_2003 | last post by:
My understanding about wrapping is that we add utilities to a lib function for our specific use. So days ago in the c.l.c I saw a function def as: void * xmalloc (size_t size) { register void...
2
by: Scott | last post by:
I having a problem where I need to turn off the wrapping feature for all columns in my datagrid. Example code would be: <asp:DataGrid id="ResultGrid" runat="server" AutoGenerateColumns="true">...
1
by: mg | last post by:
I set the width of a WebForm Label but do not get line wrapping (see below). What can I do to get line wrapping WebForm1.asp <asp:Labe id="Label1" style="Z-INDEX: 101; LEFT: 40px; POSITION:...
4
by: rodchar | last post by:
Hey all, I have a datagrid that auto-generate the columns. When I run the app some of the column values are wrapping. How do I prevent the values from wrapping? Do I have to use template...
8
by: Nathan | last post by:
I am trying to prevent a horizontal list from wrapping. Each list item is floated with "float: left". Currently I use an ugly hack. I set the width of the list to a large number which is...
9
by: Siv | last post by:
Hi, I am trying to find a wrapping routine for text and not having much luck. The reason I need one is that I am producing a report where the text that was stored in the database was written into...
6
by: Markus Ernst | last post by:
Hi Searching for a possibility to display some text with preserved white space and line breaks, but with long lines being wrapped, I found this CSS declaration, which I found helpful: pre {...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.