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 13.   Case Study: ASP to ASP.NET


We used three components , VBLoginCOM , VBAdminCOM , and VBBuySellCOM , in the ASP Web application. To migrate the application to .NET, we migrated the VBLoginCOM to its equivalent .NET assembly by running the Visual Basic 6.0 component code through the upgrade wizard. We then made a few minor changes in the .NET component code and used it in the .NET Web application.

We exposed the VBBuySellCOM as a Web service using the SOAP ToolKit and used the Web service in the migrated .NET Web application.

The VBAdminCOM was added as a reference to the .NET Web application, and we could continue with the existing code except for changing late binding to early binding while instantiating the component.

ADO calls were replaced by ADO.NET with SqlDataReader or data sets being used wherever appropriate.

In the customer module, migration was easy because most of the code was written in functions, and in the Admin module code was not structured. We have not changed any of the GUI- related parts in the customer module, but in the Admin module we have replaced all the HTML controls with server-side controls on the page addcustomer.aspx . We have also made use of code-behind to call suitable COM method on this page.


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