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. |