Sie sind auf Seite 1von 3

Case Study

Design a TM web application which aims at managing the training requests. An Employee can login to the application and then submit a training request. An employee who is not having a login to the site, can register himself with the site. The training request submitted by an employee need to be approved by the administrator. The TM web application will have the following web forms: Login.aspx The login screen should consist of the following controls and the following validations. Controls Login Id (To accept EmpId) - TextBox Password - TextBox Submit Button Reset Button New User Button

Validations Login Id is mandatory. Login Id cannot have special characters. Login Id length needs to be 6 digits. Password is mandatory. Password is alphanumeric. Password needs to be greater than 8 characters. On click of the Submit button the user should be validated against a database and should be taken to the New Training Request submission web form. On click of the Reset button the textboxes needs to be cleared. On click of the New User button the register.aspx needs to be displayed to allow the new user to register him with the site.

Register.aspx The registration web form should allow the new user to provide his details and register with the site. To accept the details, design the interface with the following controls and validations.

Controls Name - TextBox Employee Id - TextBox Password - TextBox Re-enter Password - Textbox Submit button Reset button

Validations and Data Manipulation All fields are mandatory. Name cannot have special characters needs to be a string only. Emp Id max length is 6 digits and is an integer. Password is alphanumeric. Confirm password needs to be validated with the password. OnClick of the submit button the EmpId needs to be validated against database and the data needs to be saved in tblUsers table. On Click of the Reset button the data entered in the text boxes need to be erased.

Note: The validations need to be performed using Validation controls. Trainingrequest.aspx Once a user logins, he is taken to this page where he can submit his training request. To accept the details, design the interface with the following controls and validations. Controls Name - TextBox Emp Id - TextBox Training required - Dropdownlistbox Prefered dates Start Date - TextBox End Date - TextBox No of participants - TextBox Submit button Reset button

Validations and Data Manipulation The Name and EmpId need to be session variables taken from the login screen. Training required needs to be taken from the tblCourses table. No of participants needs to be mandatory and needs to be limited to 20. Validation for dates needs to be done. On click of the submit button the details need to be saved into the tblnewtrainings table.

Das könnte Ihnen auch gefallen