Summary

Snoops

   

 
Migrating to .NET: A Pragmatic Path to Visual Basic .NET, Visual C++ .NET, and ASP.NET
By Dhananjay  Katre, Prashant  Halari, Narayana  Rao  Surapaneni, Manu  Gupta, Meghana  Deshpande

Table of Contents
Chapter 6.   Migrating to ASP.NET I


In this chapter, we have seen how to create a Web application using Visual Studio .NET that includes all the files present in the existing ASP application. To make migration simpler, we provide categorization by functionality.

HTML controls can be easily migrated to server-side controls by adding a runat =server attribute. We provide a list of properties of HTML controls, indicating which are supported, changed, or not supported in their equivalent server-side controls.

Migrating ADO to ADO.NET involves a lot of change in code, but it can be made a lot simpler by adding the attribute aspcompat=true to the Page directive. This can be the first step toward migrating database- related code. Rewriting the code for ADO.NET can be done at a later stage.

Error handling in ASP.NET is much more improved than it was in ASP. Although the On Error statements are supported, a more structured way of exception handling is provided with the try catch finally block. Debugging can be effectively carried out using Visual Studio .NET. Tracing is an additional feature that replaces the use of Response.Write statements for debugging.

The interoperability feature in .NET allows us to continue using existing COM components in the .NET application. The RCW allows the use of unmanaged code within managed code, and conversely the CCW makes managed components accessible through unmanaged code. Both the wrappers can be created through Visual Studio .NET or through separate command-line tools provided for the purpose.

The next chapter will cover session state management and caching in ASP.NET. We will also take a look at how intrinsic objects in ASP are changed in ASP.NET and the structural and language changes in ASP.


Snoops

   
Top


Migrating to. NET. A Pragmatic Path to Visual Basic. NET, Visual C++. NET, and ASP. NET
Migrating to. NET. A Pragmatic Path to Visual Basic. NET, Visual C++. NET, and ASP. NET
ISBN: 131009621
EAN: N/A
Year: 2001
Pages: 149

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net