Create an ASP.NET Web Forms application using simple server controls. a. Design a Student Registration Form using the following ASP.NET controls: i. Label and TextBox to accept Student Name ii. RadioButton to select Gender (Male/Female) iii. DropDownList to select Course (BSc IT, BSc CS, BCA) iv. CheckBox for accepting Terms & Conditions v. Calendar control to select Date vi. Button control to submit the form vii. Label control to display the output b. Create a Registration form to demonstrate use of various Validation controls. c. Create Web Form to demonstrate use of Adrotator Control.
Loading
Cynthia SathuragiriPosted Jun 22, 2026, 2:23 PM
ASP.NET Web Forms Application Using Server Controls
a) Student Registration Form
The Student Registration Form can be designed using the following ASP.NET server controls:
Label and TextBox to enter Student Name.
RadioButton controls (Male/Female) to select Gender.
DropDownList to choose a Course (BSc IT, BSc CS, BCA).
CheckBox to accept Terms & Conditions.
Calendar control to select a Date.
Button control to submit the form.
Label control to display the registration details after submission.
On clicking the Submit button, the entered details are displayed in the output label.
b) Registration Form with Validation Controls
A registration form can be created using the following validation controls:
RequiredFieldValidator – Ensures mandatory fields are not left blank.
RangeValidator – Validates values within a specified range (e.g., Age 18–60).
RegularExpressionValidator – Validates formats such as Email ID.
CompareValidator – Compares Password and Confirm Password fields.
ValidationSummary – Displays all validation error messages in one place.
These controls help ensure that users enter valid and complete information before submission.
c) AdRotator Control Demonstration
The AdRotator control is used to display advertisements dynamically. An XML file (Ads.xml) stores advertisement details such as:
Image URL
Navigate URL
Alternate Text
Impressions
The AdRotator control reads the XML file and displays advertisements randomly based on the specified impression values, providing an easy way to rotate banner ads on a web page.