Lab Manual ASP
Lab Manual ASP
3 Create an application that allows the user to enter a number in the textbox named ‘getnum’. Check
whether the number in the textbox ‘getnum’ is palindrome or not. Print the message accordingly in the
label control named lbldisplay when the user clicks on the button ‘check’.
Design Output
4 Create an application which will ask the user to input his name and a message, display the two items
concatenated in a label, and change the format of the label using radio buttons and check boxes for
selection, the user can make the label text bold, underlined or italic and change its color. Include buttons
to display the message in the label, clear the text boxes and label and exit.
Design Output
1
5 List of employees is available in Listbox. Write an application to add selected records from Listbox to
the textbox.
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. When the user enters the quantity in the textbox and clicks the button, the total
cost is evaluated and displayed in another label.
7 Create following website using CheckListBox, ListBox and Label Controls. On selecting courses from
CheckListBox they should added to the ListBox and number of courses displayed in Green Color. If
none of the course is selected then it will display in red color that 0 course(s) selected.
2
8 Perform following numeric operation according to user selection of radio button using RadioButtonList
control.
1. HoverNodeStyle
2. LeafNodeStyle
3. RootNodeStyle
4. SelectedNodeStyle
5. ImageSet
10 Create a website for a bank and include types of navigation by creating web.sitemap file.
3
11 Create following web page using File Upload Control. Provide following restrictions on it.
1. If user doesn’t select a file and press submit button then message should be display “Please
select file to upload...” in red color.
2. It allows only Image file with extension .jpg or .jpeg
3. Max file size is 2 MB to upload.
12 Create a website that displays two advertisements alternately. When the user clicks on one of
the advertisements, he/she is redirected to “www.amazon.com”, and the other advertisement
redirects the user to “www.sony.com”. The weightage of the amazon advertisement is 50 and that
of the other one is 40. The advertisement should be centered horizontally and should cover 60% of the
width of the screen. Its height should be 80 units. The width of the border should be 5 units.
13 Program using ASP.NET Validation controls. Create the application that accepts name, password, age,
email id, and user id. All the information entry is compulsory. Password should be reconfirmed. Age
should be within 21 to 30. Email id should be valid. User id should have at least a capital letter and digit
as well as length should be between 7 and 20 characters.
4
14 Using all validation controls.
15 Develop following program using Textbox, ImageButton and calendar control. When user clicks on
calendar ImageButton, Calendar should be displayed. Selected a date should be displayed in a textbox.
User can select only days of displayed month. User cannot select days displayed of previous month and
next month. Also weekend (Saturday and Sunday) cannot be selected. Display unselected dates with
Red color.
16 By using a PlaceHolder control dynamically add Image by clicking Add Image button.
Design Output
5
17 Create Master Page with menu control and content place holder.
18 Count number of clicks when user press Count Clicks button in a Textbox using ViewState.
19 Send the information from one page to another page using QueryString.
Page 1 Page 2
20 Send the information from one page to another page using QueryString.
Page 1 Page 2
6
21 Start a new web site with two web forms. Let Default.aspx and Success.aspx are two web forms. Design
Default.aspx page with fields Employee name, address, contact no, email id and a submit button. After
filling all information, it should be displayed on Success.aspx page using Session state management
technique.
22 Create a Form that receives the user name, address, date, nationality, country preferred for working and
skill sets from the user and stores the user name on the client side using cookies. The country preferred
data should appear in a dropdownlist, whereas others should be entered in a textbox. By Clicking
submit button all information should be display on another web page in different label controls. Store
cookies on client machine for 10Days.
23 Create a Login page which adds Username and Password in the database. Username in the database
should be a primary key.
24 Create Customer Entry page. On clicking submit button customer should be inserted into SQL Server
database.
7
25 Fill the form and submit data. After submitting, it store and retrieve the data from the SQL Server
database.
26 Design following web page. On selecting particular author all the information should be displayed in
following textboxes. So that user can update or delete that author information. If user wants to add new
author then it can be possible with Insert New Button. lblResults should show appropriate message on
update, delete and inserting an Author.
27 Create a Web App to display all the Empname and Deptid of the employee from the database and bind
it to GridView . Database fields are(DeptId, DeptName, EmpName, Salary).
8
28 Create a web application to insert records in a table having following fields( DeptId, DeptName,
EmpName, Salary). Provide Update and delete operation for records.
9
31 Design following page with Repeater Control.
10