31-10-2016, 11:33 AM
1462358566-asp.netprograms.pdf (Size: 486.96 KB / Downloads: 9)
Visual Programming & Server Side Programming (Pr)
IT- 316
L T P
- - 3
Practical exam: 40
Sessional: 60
This lab manual is designed for three server side programming languages viz. php, python and
ASP.net. ASP.NET is the next generation ASP, it's not an upgraded version of ASP. ASP.NET
is an entirely new technology for server-side scripting. This lab manual focuses on different
aspects of these languages and each experiment is further explored into four to five variants.
Experiment 1 (Web forms in ASP)
I. Write a program to display a feedback form. The different options for the list box must
be ASP-XML, DotNET, JavaPro and Unix, C, C++. When the Submit Form button is
clicked after entering the data, a message must be displayed.
II. Write a simple ASP.NET program to display the following Web Controls:
1. A button with text “click me”. The button control must be in the center of
the form.
2. A label with a text hello
3. A checkbox.
The form name must be Web Controls.
III. Write a program to display “Welcome To Radiant” in the form when the “click” button
is clicked. The form title must be ASP.NET.
IV. Write a program that displays a button in green color and it should change into yellow
when the mouse moves over it.
V. Write a program containing the following controls:
1. A ListBox
2. A Button
3. An Image
4. A Label
The listbox is used to list items available in a store. When the user clicks on an item in
the listbox, its image is displayed in the image control. When the user clicks the
button,the cost of the selected item is displayed in the control.
Experiment 2 (Validators in ASP)
I. Write a program to get a user input such as the boiling point of water and test it to the
appropriate value using CompareValidator.
II. Write a program that uses a textbox for a user input name and validate it for
RequiredField Validation.
III. Write a program that gets user input such as the user name, mode of payment,
appropriate credit card.After the user enters the appropriate values the Validation button
must validates the values entered.
IV. Declare one TextBox control, one Button control, one Label control, and one
RegularExpressionValidator control in an .aspx file. The submit() function checks if the
page is valid. If it is valid, it returns "The page is valid!" in the Label control. If it is not
valid, it returns "The page is not valid!" in the Label control. If validation fails, the text
"The zip code must be 5 numeric digits!" will be displayed in the
RegularExpressionValidator control.
V. Check the length of the string in the TextBox using CustomValidator.