You are on page 1of 5

Lab-1 Web Server Controls and Validation Controls

1) To create a website, select


Start->All Programs->Microsoft Visual Studio 2010->Visual Studio 2010
2) Then select File->New->Web Site.
3) Select template ASP.NET Empty Web Site.

4) Right click on Website in Solution Explorer, select Add New Item. Select Web
Form. Select language as Visual C#.

1
5) Design the page as below using web controls from toolbox. Provide all controls
appropriate IDs.

6) On Submit button click event handler, write the code as below:

7) Build the solution. Right click on page and select View in browser.

2
Assignments to be done in this session:
1) Design a Registration.aspx form with the following fields:

a) Name
b) Stu_Id(should autogenerated with custom code)
c) Gender
d) Age
e) Address
f) Date of Birth
g) Email ID
h) Contact No
i) Qualification
j) Techology
k) Course Done
l) Upload Resume File(Use FileUpload Control)
m) Modules Completed
n) User Name
o) Password
p) Role
q) Submit Button to submit data.
r) At right side of Registration form Show the Adds of All Reputed IT MNC
Companies with their links(use AdRotator)
s) Insert logo of Profound Edutech left corner of form

Apply appropriate validations. Display error messages using validation


summary.

3
2) Design Details.aspx Form To show the details of students with following
controls

a) ListBox to show Details

b) ListBox To show Resume

4
c) Button To start Exam

3) Design The Exam.aspx Form to start exam

a) Show time within to finish exam

b) Show Current time

c) Show Student Name

d) Show Current Question with Options(Use MultiView Control)

e) Previous and Next Button to navigate Question bank

f) Once reach the last question enable Finish Button to redirect Score
page

g) Once exam hours finish automatically redirect to score page

4) Design the Score.aspx Page to show the score with following

a) Label to show Score and to Congratulate for Successful exam

b) Button to redirect on home page

You might also like