0% found this document useful (0 votes)
53 views

Wad Questions

This document contains a list of topics and practical programming exercises related to ASP.NET. The topics include common controls, validation controls, data binding controls, master pages, roles and profiles. The practical programs involve designing web forms using various ASP.NET controls to perform tasks like form validation, data binding, login/registration, file uploads and role-based authorization. Some programs require connecting to databases and performing CRUD operations on tables.

Uploaded by

rockpaper12000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Wad Questions

This document contains a list of topics and practical programming exercises related to ASP.NET. The topics include common controls, validation controls, data binding controls, master pages, roles and profiles. The practical programs involve designing web forms using various ASP.NET controls to perform tasks like form validation, data binding, login/registration, file uploads and role-based authorization. Some programs require connecting to databases and performing CRUD operations on tables.

Uploaded by

rockpaper12000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

SEM 5 : WAD Question List

Types of coding models


Common properties of ASP controls
Application configuration files
Built-In directories App_data, Bin and App_Code
Literal and Label control
Webclient and Web server model
Features of ASP.Net
Features of IDE
FCL and CLR
Querystring method, Session, Application and cookies
Types of buttons
Radiobutton and Checkbox with example.
AdRotator control, ImageMap control
Listbox, Dropdownlist
Fileupload
Calender control
Master Page
Navigation Controls
Compare Validation, Range Validator
Dataset, Gridview, Detailsview, DataList, DataAdapter
Login and Loginview control
Command object
Role class
Profile class
Membership class

Practical Programs
1.
Design a class file having two methods to do sum and multiplication, which takes two arguments. Design a web page
having two textboxes to take integer number from the user. Place two buttons to invoke sum and multiplication method.
Print the resultant value in the label control placed on the web page.
(Use of App_code directory). OR (Use of Bin directory)
Note:
1. Both textbox should accept only numbers and not negative numbers.
2. Keep button which apply yellow color and red border to result label.

2.
Create an application Hit counter, which count the total number of users visited the page. (Using global.asax). Display
your name on the page depending on above counter number using code render block.

3.
Design .aspx web page which prints “Gujarat University” for 5 times, each in a new row with increasing font size by 1
each time. (Use loop in c# using code render block).

4.
Using calendar control, allow user to select date from that. Display students whose birthday falls on that date (use
database).
5.
Create a RadioButtonList that displays the names of some colors in two columns. Add a button to the Web Form which
when clicked changes the color of the Form to the color selected from the list.

6.
Create a web page having checkboxlist control shows different products. Web page should have a button and a label.
On the click event of the button shows the message “Thank You for placing the order of following items” and then list
1
of all products selected by the user in the checkboxlist server control. Each selected product should be displayed on
the page.

7.
Accept ItemNo, ItemName, Qty and its price from user. Store all information in cookie and display same on next page.
Note :
1. Item No is compulsoty and accept input as “I23/???” i.e. I23/111, I23/112…..
2. Itemname atleast 6 characters
3. Qty should accept only numbers in 2 digits only.
4. Price not more than 550.

8.
Display name of country in dropdown list when page is loaded. Allow the user to select the country and display the
name of states of that country selected by user in another dropdown list. (Use DataReader)

9.
Write code to upload only image files (.bmp, .jpg, .gif) in folder “Image-Folder” and should be less than 2 kb. Also
display uploaded files in Datalist control

10.
Take 2 radiobutton list. One for items and another for colors. If user selects any item display that item with font color as
selected from 2nd list.

11.
Take single image having 3 rectangle shapes horizontally having text “Home”, “Product” and “Services” written in the
boxes. When user clicks on the first rectangle Home.aspx page should be opened. Similarly, when user clicks on the
Product rectangle the product.aspx and Service rectangle then service.aspx should be opened. Use ImageMap control.
Note:
Home page should accept username and password with submit button.
Product page displays list of items using radiobuttonlist
Services page displays various services using checkboxlist

12.
Using AdRotator control, display 3 images of car and when user clicks on it, open website of it. Load the advertisement
details from the XML file as well as database.

13.
Create two tables Doctor and Patient. Display details of doctor in first grid view. When user selects doctor from the first
grid view, display the details of all patients of that doctor in second grid view.

14.
Design a site for “Gujarat University”. Design master page. From sitemap, provide links to various pages (Use
Treeview, Menu and Sitemappath controls)

15.
Design a web site which allows user to login. Create a page which can be opened only by authenticated users, also
create a page which can be opened on by that user who belongs to „Admin‟ role. On the home page display Welcome
message base on the type of user. For example, for anonymous user show “Welcome Visitor”, for User show
“Welcome <UserName>” and for any user belongs to admin role, show “Welcome Administrator”.

16.
Create one registration page and perform the following validations.
∙ To validate email_id
∙ To compare new password and retype password
∙ The rollno should contain first 3 characters BCA. Example BCA01, BCA02
∙ Restrict the user to enter only date in textbox and it must not accept date greater than current date. ∙
Age should be between 18 to 35
∙ Name field is compulsory
∙ Mobile number must be of 10 digits only
∙ Give demo of validation summary
2
17.
Design a webpage which allow user to perform Select, Insert, Update and Delete record operation to the Employee
database table (EmpNo, Empname, Desig, Salary) using ADO.NET code.

18.
Create a database with two tables as StudentInfo, which contain rollno, name and year of a student and StudentScore
which contain marks of three subjects for each student. Display name of all the students in a DropDownList and
according to user‟s choice, particular student‟s score record should display in a FormView/DetailView control.

19.
Create an application to display all records from an Employee table with proper formatting. (Use Repeater Control).

20.
Create a product table having field (ProductCode, Name, Price, Description, CategoryName, ProductURL etc.). Design
a web page which shows hyperlink for each unique category. When user click on specific hyperlink pass that category
to another page called ProductList.aspx. This page lists the entire product which belongs to the category selected by
the user on the previous page. The page has small image of the product and price only. When user clicks on small
product image then user will be redirected to ProductDetails.aspx page which shows all the details of the product with
larger image.

21.
Create a database with two tables as StudentInfo, which contain rollno, name and year of a student and StudentScore
which contain marks of three subjects for each student. Display name of all the students in a DropDownList and
according to user‟s choice, particular student‟s score record should display in a FormView/DetailView control.

22.
Design a website having login and registration page. In the registration form modify “CreateUserWizard” control to take
personal details of the user live FirstName, LastName, Favourite color and photo (Using FileUpload Control) etc.
Divide CreateUserWizard having 3 steps (LoginDetails, Personal Info and Complete). Store the personal details in the
profile. Design a profile.aspx page which can be accessible by only authenticated user. After login when user opens
profile page then, user can see his/her photo, and first name and last name in the label with his/her favourite color as
background color.

23.
Develop a web application to reserve online in a hotel. The user should enter date of arrival, number of days, room
type, number of persons etc. He would be able to confirm booking and allowed to pay advance on confirmation.

24.
Create four tables as given:
∙ Customer (CustomerCode, Name, Address)
∙ Product (ProductCode, ProductName, Price, Qty)
∙ SalesMaster (InvoiceNumber, CustomerCode, DateofInvoice)
∙ SalesDetails (InvoiceNumber, ProductCode, Qty, UnitPrice)

Design a webpage to generate Invoice details in which Customer name, Product name, and Line total (Unit price *
Quantity) is shown using FormView and GridView.

25.
Take to linkbuttons showing „New Member‟ , „Existing Member‟ and „Change Title‟. When user clicks on the „New
Member‟ link button panel1 becomes visible, having user name, password, confirm password and email as inputs.
When user clicks on „Existing Member‟ link button then only panel2 becomes visible having user name and password
as inputs). Set proper property of the textbox to mask the password. When user clicks on „Change Title‟, Show only
Panel3, accept string and current date from user and on button click, display both on titlebar using Literal control
3

You might also like