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: -
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. -
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. -
VBBuySellCOM. This contains a method, named PlaceOrder , called when buying or selling stocks. |