You are on page 1of 3

ASP.

NET LAB ASSIGNMENT

Exercise 1:
Create college database in sqlserver.
(Tables: students, staff, subject, sem etc.)

Exercise 2:
Display records in Gridview with sqldatasource(Connected arch.)

Create one table in database.


Table Name: Book
Fields : book_no(auto), title, subject, author, publication, price.
Add 5-10 records in table.
Exercise 3:
Select records from book table with connected architecture.
 Use Dropdown for book number. Textbox for others.
 When page loads first time, all book number should be displayed
in dropdown.
 When any number select in dropdown, all related data (title,
subject, author, publication, price) should be displayed.

Exercise 4:
Insert records in book table with connected architecture.
 Record (title, subject, author, publication, price) should be
inserted in book table when click on Insert button.

Exercise 5:
Update records in book table with connected architecture.
 Complete exercise 3
 When data is displayed in textboxes, change its value and update
it with update button.

Exercise 6:
Delete records from book table with connected architecture.
 Complete exercise 3
 Add one button – “delete”
 When click on delete button selected record should be deleted.

Exercise 7:
Search records from book table with connected architecture.
 Enter book number in textbox and click on search button. Related
data should be displayed.
Exercise 8:
Search records from book table with connected architecture.
 Enter subject name in textbox and click on search button. Related
data should be displayed in Gridview.

You might also like