Aptech Asp.net Assignments (3)

Chapters: 8, 9, 10

Chapter 8:

  1. Open form Depts.aspx in previous chapter and modify the interface as below:

    Depts.aspx

    Depts.aspx

  2. When Page_Load list box Department should be filled with data in Depts table
  3. When select each item in list Department, the appropriate data should be filled in text box control beside
  4. Create a web form name Repeater.aspx as below (using Repeater control):

    Repeater.aspx

    Repeater.aspx

  5. When Page_Load, two DropDownList should be filled with data in table Customer and Room
  6. When click button Show data , the Repeater control will display the data in table Bookings according to selection in DropDownList. If user choose radio button All, display all data in table Bookings. If user choose radio button Customer, display all data in table Bookings according to Customer choose in DropDownList Customers. If user choose radio button Room, display all data in table Bookings according to Room choose in DropDownList Rooms.

Chapter 9:

  1. Create form name EmpsSearch.aspx as below:
    EmpsSearch.aspx

    EmpsSearch.aspx

    – Check all validation in form if necessary, From birthday and To birthday must be date.
    – When Page_Load, load data from table Depts to DropDownList Department.

  2. When click Search:
    – Check whether user enter search condition in Employee name, From birthday and To birthday. If not, search only with sex and department condition, otherwise search with condition user enter.
    – When click Search, fill the result in DataList.
  3. When click Update, link to Emps.aspx and fill all data corresponding with employee.
    After edit data, click Save to update data to table Employees.

Chapter 10:

  1. Create new Class Library name DataHandling. Change name of Class1 to DataConn.
  2. Write some method to interaction with database:
    –    A method to add new booking room.
    –    A method to update booking room.
    –    A method to delete booking room.
    –    A method to set datasource for dropdown list.
    –    A method to get price of a room.
  3. Create form name Bookings.aspx as below:

    Bookings.aspx

    Bookings.aspx

  4. Make reference to above Class Library.
  5. In PageLoad, set datasource for Customer and Room.
  6. In Save button click, before saving, check from date must be greater than current date, to date must be greater than from date, and Price must be greater than or equal price for room in database.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s