- Trained on our vast library of engineering resources.
.NET Mobile Web Developer's Guide

Migrating from ASP to ASP.NET

You can t just simply migrate code from ASP to ASP.NET and have it work, unless it s the most basic of Web applications. Yes, by renaming the .asp extension to .aspx you have created an ASP.NET page, but it remains to be seen if it will actually do anything. Remember, ASP.NET has been completely rewritten to provide a superior development environment, which means that some of the things you did in ASP aren t supported in ASP.NET, and for good reason. This doesn t mean that everything you previously did won t work, just a good majority of it. Microsoft did a good job of trying to maintain some of the ASP syntax but could only do so in situations where they were not detrimental to application performance and success in ASP.NET.

Note that ASP can run side-by-side of ASP.NET applications. This is because ASP.NET does not use any of the libraries or processes used for ASP. ASP.NET has its own environment to run in, including the new page extension (.aspx), the request handler (ASP_WP.EXE), and the configuration file (Web.config).

The Global.asa file has also been updated to the Global.asax in ASP.NET. Just like its predecessor, it is still found in the root directory of the application. Both the Global.asa and Global.asax can reside in the same root directory if needed. This is so that existing ASP pages can run along side ASPX pages.

If you do decide to convert your ASP to ASP.NET pages, remember that you cannot...

UNLIMITED FREE ACCESS TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Application Service Providers
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.