Chapter 13. Case Study: ASP to ASP.NET

0-13-100962-1_ch13 Chapter 13. Case Study: ASP to ASP.NET

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


The application chosen for migration from ASP to ASP.NET is the PMS which was explained in the previous chapter. We have developed the system as a Web application in ASP that will be migrated to ASP.NET. We will first discuss the functionality covered in the Web application and then discuss steps taken to migrate it. The Web application follows general ASP coding standards and, specifically , the guidelines mentioned in Chapter 5. Although the use of session variables in a Web application is not considered the best practice, we have done so merely to demonstrate session state management in ASP and, later on, in the migrated ASP.NET version of the Web application. The business logic is contained in COM components used in the application. The COM components call stored procedures for every select, insert, or update fired on the database. In the ASP Web application, we use the following COM components:

  1. VBAdminCOM. This contains the following methods , Login for validating Admin user during login, ChangePassword to allow Admin user to change the password, AddUser for adding a new user, UpdateUser for updating user information, and GetUnapprovedOrders to returns a list of orders awaiting approval from the administrator.

  2. VBLoginCOM. This contains methods for validating a user during login and logout, Login and Logout , and ChangePassword , which allows the user to change a password.

  3. VBBuySellCOM. This contains a method, named PlaceOrder , called when buying or selling stocks.


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