You are on page 1of 15

Exercise 1 (10 Marks)

Create a simple ASP.NET Web application. The web page should have a textbox to
retrieve the name of the person, a combo box to select the category of the person, a
calendar control to select the date, a button, and a label. Clicking the button should
display the following message on a label:
“Hi name! You have selected <selected_category> on <selected_date>”.

Submit a document containing:


_ The program
_ Output screenshot

Evaluation Parameter & Weightage


1. Expected Output: 4
2. Adherence To Coding Standards: 4
3. Code Efficiency: 2
Total 10
Exercise 2 (5 Marks)
Create a simple ASP .NET web application that displays the current date and time in a
browser as shown below.

Submit a document containing:


_ The program code
_ Output screenshot

Evaluation Parameter & Weightage


1. Expected Output 2
2. Adherence To Coding Standards 2
3. Code Efficiency 1
Total 5
Exercise 3 (10 Marks)
Create a simple user registration form using ASP.NET.
The registration form should have firstname, lastname, password, confirm password,
address, city, state, postal code, country, telephone number, and email fields. The form
should display a Welcome message when registration is successful. To register
successfully, the user must provide user name and password.
Use validation controls in day 1 to validate all the fields like telephone number, email,
user name, and other details.

Submit a document containing:


_ The program code
_ output screenshot

Evaluation Parameter & Weightage


1. Expected Output 4
2. Adherence To Coding Standards 4
3. Code Efficiency 2
Total 10
Exercise 4 (10 Marks)
a) Create the User Control to display as a header for your Academy Web application
as shown:
On clicking of it add the message to be displayed on label “ASP .NET Training”.
b) Create the sample Web application to use this control.
Try other two ways of creating custom controls:
Create a derived custom control by deriving from an existing control.
Create a composite control by grouping existing controls together into a new compiled
control.

Submit a document containing:


_ The program code
_ Output screenshot

Evaluation Parameter & Weightage


1. Expected Output 3
2. Adherence To Coding Standards 3
3. Code Efficiency 2
4. Code Readability 2
Total 10
Exercise 5 (10 Marks)
Complete the following assignment:
i. Create the ASP .NET Web application called “Avlon Academy”. This
application will display the list of all students enrolled in a class. (Schema for
student table is provided at the end of this exercise document)
ii. On selection of a student from the list, display following details (Use the
controls specified in bracket for displaying its values):
_ Students list (Datagrid)
_ ID (TextBox)
_ Standard (Drop-down list box)
_ Name (Text Box)
_ Gender (Radio button)
_ Date of birth (Calendar rich text box)
_ Photo (Image)
_ Clear (Button)
_ Message (Button): Set the message label as “Hello” &StudentName.
iii. Add one method in code behind to access student database and populate a
Datatable from the database. Bind the Datatable to DataGrid
iv. Modify the above exercise to give functionality of sorting and paging. Add one
more button on the Web form to export all the data displayed in the DataGrid
in to an XML file.

Submit a document containing:


_ The program code
_ Output screenshot

Evaluation Parameter & Weightage


1. Expected Output 3
2. Adherence To Coding Standards 3
3. Code Efficiency 2
4. Code Readability 2
Total 10
Exercise 6 (10 Marks)
Complete the following assignment:
i. Create an ASP .NET application with DataGrid that displays all the students
available from the Student table created in previous exercise.
ii. Use a DataSet that retrieves the Student table and binds it to the DataGrid.

Submit a document containing:


_ The program code
_ Output screenshot

Evaluation Parameter & Weightage


1. Expected Output 3
2. Adherence To Coding Standards 3
3. Code Efficiency 2
4. Code Readability 2
Total 10
Exercise 7 (10 Marks)
Complete the following assignment:
i. In the “Aptech Limited” Web application, add the functionality to add,
update, and delete the new students. Create a simple Web form that displays
one record at a time as shown below:

ii. Add necessary buttons to perform add, update, and delete operation. Also, add
four buttons that provide navigation for viewing First, Next, Previous, and
Last Records. Use the dataset to perform all the operations.

Submit a document containing:


_ The program code
_ Output screenshot

Evaluation Parameter & Weightage


1. Expected Output 3
2. Adherence To Coding Standards 3
3. Code Efficiency 2
4. Code Readability 2
Total 10
Exercise 8 (10 Marks)
You have to develop a Patient Information System. This software can be used to keep
track of the patients registering in a hospital or clinic. In addition, this system supports
accessing the previous visit histories of any patient, search for patients by name and
other properties.

Patient Information System – Requirements


_ PIS will support registering patients.
_ Users of this software can search for patients by name, admission date, and
discharge date.
_ Users can view the previous visit histories of any patient.
_ System can maintain the list of doctors in the hospital.
_ PIS can maintain the list of beds/rooms available in the hospital.
_ Patients are categorized into "In Patients" and "Out Patients".
The first step is to identify the different entities in the system. The following entities
are identified in PIS:
_ Patient - a patient is the person who visit the hospital for
treatment/consultation
_ Doctor - a doctor will be assigned to each patient.
_ Bed - if patient type is "In Patient", a bed will be assigned to the user.
_ Visit - a patient can visit the hospital any number of times.
Database design:

Following are the tables that can be used:


Table Name: Patient
When a new patient arrives in a hospital and register; a record will be added to this
table. A patient will have only one record in this table.
Fields:
Field Name Type
Id Auto Number
Name varchar (50)
Address varchar (255)
DateOfBirth DateTime
Phone varchar (20)
EmergencyContact varchar (255)
DateOfRegistration DateTime
Table Name: Doctor
This is a master table, where the list of all available doctors in the hospital is
maintained.
Fields:
Field Name Type
Id Auto Number
Name varchar (50)
Address varchar (255)
Phone varchar (20)
Table Name: Bed
This is a master table where the list of all beds (rooms) in the hospital is maintained.
Before a bed is assigned to a patient, entries for all available beds in the hospital must
be created.
Fields:
Field Name Type
Id Auto Number
BedName varchar (50)
RatePerDay Number
BedType varchar (50)
Table Name: Visit
This is a detail table where a record for each visit of each patient is created.
Fields:
Field Name Type Remarks
Id Auto Number
PatientType Number 0 - In patient, 1 - Out Patient
DoctorId Number
For each visit, a doctor will be assigned to the patient.
BedId Number
If the patient type is "In Patient", a bed will be assigned to the user.
DateofVisit DateTime
The date on which the patient visited the hospital
DateofDischarge DateTime
Date on which patient is discharged from the hospital. If the patient type is "Out Patient",
DateofDischarge will be same as DateofVisit

Submit a document containing:


_ The program code
_ Output screenshot

Evaluation Parameter & Weightage


1. Expected Output 3
2. Adherence To Coding Standards 3
3. Code Efficiency 2
4. Code Readability 2
Total 10
Tracing

Exercise 9 (10 Marks)


Complete the following assignment:
i. The Web application “Cognizant Academy” created for adding the details to
the database is not working properly. The application does not give an error,
but new records are not being added to the database. Therefore the application
needs to be debugged. You need to:
_ Enable trace in web.config
_ Enable trace through code
_ Write your own message in trace
_ Explore trace.axd file
ii. Modify the above exercise to display customized error messages.
iii. Whenever the application encounters a runtime error, a customized error
message should be displayed.

Submit a document containing:


_ The program code
_ output screenshot

Evaluation Parameter & Weightage


1. Expected Output 3
2. Adherence To Coding Standards 3
3. Code Efficiency 2
4. Code Readability 2
Total 10
Exercise 11 (10 Marks)
a) The company “xyz” receives raw materials from various suppliers and they are
issued to the internal production department. The raw materials have the following
attributes:
_ Item code
_ Item name
_ Quantity
_ Price
b) The stock is updated whenever material is received or issued.
c) Assume Itemcode and Item name are maintained in the database in
ItemMasterTable (need not be implemented in the program; only for
developing test cases)
d) You are required to:
i. Write the maximum possible Test Cases for the above scenario.
ii. Create a C# program implementing the above specifications.
iii. Test the program with help of the above Test Cases.

Submit a document containing:


_ Test Case document in the provided template along with the test results
_ The program code
Security

Exercise 12 (10 Marks)


You have to design a Library Management System. You have to implement the
following features in it. Each feature will be developed as a separate web page which
will contain links to move to other pages

a) Registration
i. Registration of new members should be allowed.
ii. Registration form should contain textboxes to accept user input like Name,
Address, Email, phone number, and date of registration of the member. Each
piece of information is mandatory. In addition, check that the user makes only
valid entries.
iii. You should be able to add/edit/delete members in the system.
iv. You should user validation controls to validate the entries made by the user
Table Schema:
Id: Integer
Name: varchar (50)
Address: varchar (100)
Email: varchar(50)
DateOfRegistration : DateTime

b) Item Management
i. Information about any item (Book, CD etc) in the library, such as Name,
Author, Publisher Name, and Category should be stored.
Table Schema
Id: Integer(Autonumber)
Name : varchar(50)
Count : Integer
Publisher Name: varchar(50)
Book Category: varchar(50)

c) Lending
i. Only registered members should be allowed to lend an item from the system.
ii. Allow a member to take a book from library.
iii. Return a book to the library
Table Schema
Id: Integer(Autonumber)
BookId: Integer - This is the ID of the book
UserId : Integer - Id of the member who lend the book
DateOfLend : DateTime
DateOfReturn : DateTime - this field will filled only at the time of return

d) Search for Books


i. Search for Books form will be called from other screens like Lending screen
etc.
ii. A user should be able to search for books by Book Name or author name. The
results should be displayed using a DataGrid.
iii. User can select a record and press the Select button. When a record is
selected, this form should be closed and the selected Books ID should be
populated in the appropriate field in the calling form (like lending form).

e) Search for Members


i. You can design a similar screen as for Searching books to search for members.

Submit a document containing:


_ The program code
_ output screenshot

Evaluation Parameter & Weightage


1. Expected Output 3
2. Adherence To Coding Standards 3
3. Code Efficiency 2
4. Code Readability 2
Total 10
Web Services and Caching

Exercise 13 (10 Marks)


a) Create a Web application that displays the details of the employees working in an
organization:
i. Create a table Employee which contains Emp_Id (Primary Key), Emp_Name,
Hiredate, Gender, Department.
ii. Employee Id, Employee Name, and Hiredate should be displayed in text
boxes, Gender in radio buttons, Departments in combo boxes.
iii. You should have Add, Modify, and Delete buttons on the Web form to add
an employee into the database, modify the details of an employee, and to delete
the details of an employee.
iv. You should have a DataGrid on this screen that displays all the employees
available from the Employee table.

b) Create a simple Web service called DataProcessingService that has


following methods:
i. addData – Takes inputs based on the column number and adds the data to
the datatable.
ii. modData –Takes appropriate parameters and modifies the data
iii. delData – Takes one input (ID column) and deletes the record based on the
id
iv. dispData – Returns the data to the client as dataset

c) Use collection or dataset to pass data in between Web form and Web service layer.
For example:
NameValueCollection NVL = new NameValueCollection();
NVL.Add(“Empid”,”1”);
d) In your Web application:
i. Create a page that displays data from the Web service.
ii. On PageLoad, call the DispData() to display the first record on the page.
iii. Update the code in Add, Modify, Delete buttons on the Web form and
perform the operation by calling the Web service methods.

Submit a document containing:


_ The program code
_ Output screenshot

Evaluation Parameter & Weightage


1. Expected Output 4
2. Adherence To Coding Standards 4
3. Code Efficiency 2
Total 10
Exercise 14 (10 Marks)
Create a Web application that fetches details of the authors and their resident states
from the database and displays it into a DataGrid. Set the @ OutputCache directive
to 30 second so that the server will not generate the dynamic contents if the user
refreshes the page within 30 seconds. Validate the scenario by changing the data in the
database.

Submit a document containing:


_ The program code
_ output screenshot

Evaluation Parameter & Weightage


1. Expected Output 4
2. Adherence To Coding Standards 4
3. Code Efficiency 2
Total 10

You might also like