Post on 22-Oct-2014
Online Exam System
1
A Project Report on
ONLINE EXAM SYSTEM
Undertaken at
Submitted To
PUNE
As a Partial Fulfillment of Master in Information Technology
(MBA IT 2007-2011)
Submitted by
Mr. Mayank Sharma
Online Exam System
SCDL, PUNE
Master in Information Technology, 2007-2011
Certificate
This is to certify that Mr. Mayank Sharma is pursuing MBA IT form Symbiosis Center for Distance Learning, Pune. He had completed the projects entitled “Online Exam System as Fourth semester requirement for award of degree of Master in Information Technology during the academic year 2007-2011.
Place: Delhi Director, SCDL, PUNE
2
Online Exam System
Project
ONLINE EXAM SYSTEM
3
Online Exam System
CONTENTS
Certificate
Acknowledgement
PrefaceOnline Exam System
Chapter 1: Introduction 1.1 Existing system1.2 Problem Definition1.3 Project Model 1.4 Project scope / Requirement
Chapter 2: Proposed System 2.1 Proposed System2.2 Objective of System
Chapter 3: System Analysis3.1 Context diagram3.2 Data flow diagram Level I3.3 Data flow diagram Level II
3.4 Data flow diagram Level III3.6 Functional decomposition Diagram
Chapter 4: Design 4.1 ER diagram 4.2 Data Dictionary 4.3 Table Design 4.4 Input forms Design 4.5 Report Layout
Chapter 5: Validation/Future Expansion5.1 Data Validation/ Validation Results5.2 Sample Code5.3 Quality of Code 5.4 Input Data Validation5.5 Quality Report5.6 Code Design
Chapter 6: Miscellaneous/References
4
Online Exam System
CERTIFICATE
This is to certify that this is a bona fide record of the Project entitled Online Exam System was done satisfactory. This report had not been submitted for any other examination and does not form part of any other course undergone by the candidate.
Place: Delhi
5
Online Exam System
ACKNOWLEDGEMENT
It is a fortune to find opportunity to express my deep sense of gratitude to all those people who helped us with their guidance and assistance, without which the project would not be possible. Their contribution has been invaluable.
First I would like to extend my heart-felt gratitude and respect, to our parents, who have always been a tremendous source of encouragement and inspiration for me.
Last but not the least, I would like to thank the Almighty without whose blessing, I would not have reached the goal.
Mr. Mayank SharmaM.B.A. IT 2009-2011SCDL, Pune
6
Online Exam System
PREFACE
The well planned, properly executed and evaluated industrial training helps a lot in inoculating good work culture. It provides linkage between the student and the industry in order to develop the awareness of industrial approach to problem solving based on broad understanding of plant, process, product and mode of operations of industrial organization.
The utility titled “Payroll System” is being developed with the intent to provide easy excess to Payroll System. This will help to track requirement of emp. easy to maintain emp. record.
These projects have been developed using ASP.NET (C#) with SQL 2005. This is user friendly, easy to use, understandable and satisfies all user requirements.
There is no doubt that in spite of strenuous efforts, errors might remain in the text. I truly apologize for that.
7
Online Exam System
Chapter I
Introduction
1.1 Existing System
Currently lots of online examination software available in the market. These online tests are
in the field of aptitude test. It has extra feature admin can create test according his
requirement. If admin think that he/she can to create a new test and give the time slot also.
The aim of this project i.e. ONLINE EXAM SYSTEM is all about the education. In this
software you can teach the take the online test. It has one more extra feature admin can
easily add the question, update the question and answer and delete also. Admin can make the
admin and delete also.
1.2 Problem Definition
In existing system multiple problems persist. As multiples student record are other course
missed. Due to no track record company is unable to find student. Out of huge collection
now only left 100 students. One more problem with existing system is if any student need
give new test urgently then without admin it is not possible.
1.2 Project scope / Requirement
Project should have following functionality/features
It should keep maintain record of all student
It should keep record of tests of student.
The student can make the id and give the test.
8
Online Exam System
Identify current deficiencies in the current user’s environment:
This will usually consist of simple narrative lists of all functions that are missing or
operating unacceptably in the current system. The process of identifying deficiencies may also
throw up the need for modifications/ enhancements to the existing system like it’s very difficult
to manage and maintain all the details about student, which is till now maintained manually on
the papers which leads to more chances of information lost.
1 Operating Environment.
Hardware Requirement
Hardware is the term given to machinery itself and to various individual pieces of equipment.
It refers to the physical devices of a computer system. Thus the input, storage, processing control
and output devices are hardware.
Minimum Hardware Requirement of Client Side:
Processor : Any Pentium IV or Equivalent Machine
RAM : 512 MB
HDD : 40 GB
FDD : 1.44 MB
CD-ROM : 52X
15 inches Color Monitor
104 Keys Keyboards
Printer : DeskJet 670 C
Software Requirement
Software means a collection of program where the objective is to enhance the capabilities of the
hardware machine.
Minimum Software Requirement of Client Side:
9
Online Exam System
Operating System : Windows 2000/XP
Database : SQL SERVER 2005
10
Online Exam System
Chapter 2
Proposed System
2.1 Proposed System
Project should have following functionality/features
It has one more feature student enter his enrollment no. and then easily check the his/her
result.
Admin can easily update the question and delete also.
Admin can make the faculty id and set the password and details then faculty can easily
login his/her id.
The main concern of this project is to improve the efficiency and effectiveness of the
whole system.
System Requirement
The system on which the online exam system is installed must have Microsoft
windows OS in it.
2.2 OBJECTIVE OF THE PROJECT
The main objectives of using Relational Database Management System are as follows: -
1. CONTROL REDUNDANCY : The System should identify existence of common data
and avoid duplicate recording relationships of pointers should be used to locate data which
are used many times selective redundancy is sometimes allowed to improve performance or
far better reliability.
2. DATA INTEGRITY : Consistency of data values and relationships must be preserved in
order to achieve this the system must ensure validity of data by using good editing,
11
Online Exam System
synchronize updating and propagating changes to other related data element it also involves
maintaining audit trails to enable recovery if errors are deleted.
3. DATA SECURITY : This is concerned with protecting access to data protection is needed
at many levels for access, modification, deletion or display access restriction may be for
individual data items or group of items.
4. DATABASE PERFORMANCE : The system should be able to provide timely information
as required. The cost of storing and retrieving the data should be commensurate with the
value of information provided.
5. MANAGEMENT CONTROL : As the dependence of an organization on a data base
increases positive management controls should be exercised over addition, deletion, changes
and disposition of data must be protected to start legal accounting and auditing
requirements.
This may also be a narrative list consisting of existing functions that need to be re-implemented,
new functions that need to be added, and performance criteria for the new system.
Main Objectives are:-
Provide an innovative, cost efficient and effective online examination system.
Increase the quality and quantity of applicants applying for exam.
Offer immediate cost savings on exam system with substantial long term saving over a
prolong period.
Dramatically reduce paper work and administrative work.
Streamline the recruitment process and reduce the corporate overall examination cycle.
12
Online Exam System
The main concern of this project is to improve the efficiency and effectiveness of the
whole system.
Chapter 3
Analysis
1.3 Context diagram
The context diagram shown on this screen represents a book lending library. The library
receives details of books, details of member form librarian. Books may be issue / return to
member. If book not available then librarian will give data on which book will be
available.
13
Online Exam System
1.4 Data flow diagram Level I
The 0’ level DFD shows the entire system under Investigation.
14
User test
User test report
User Course
ONLINE EXAM SYSTEM
User Registration
Online Exam System
1 ST ‘level DFD (ONLINE EXAM SYSTEM)
The level 1 of DFD shows the main functionality areas of the system. Each of this process can be broken in to further process until you reach.
Non registered Student
Correct Login Details
Forgot Password
15
ONLINE EXAM SYSTEM
Has
Registered Student
Login
Create New Student
Incorrect Login Details
Forgot Password
Student Home
HasSelect Course
Test
Result
Online Exam System
2nd ‘level DFD (ONLINE EXAM SYSTEM)
16
Admin
Login
FUNCTIONALTY
ADD QUESTION ADD
FACULTY
ADD COURSE
CREATE TEST
Online Exam System
1.5 Functional decomposition Diagram
17
Online Exam System
Chapter 4
Design
E-R DIAGRAM
18
Online Exam System
Has
Registered User
Add
TestHas
Question
U_fname
Q_nameQ_id
u_dobU_pass
t_name
U_id
Q_opt3
Q_opt2
t_id
t_Dis
t_timeQ_opt1
Course
Q_opt4
c_idc_name
C_des
Online Exam System
4.2 Data Dictionary
Introduction to data dictionary:
Data dictionaries are an integral component of structured analysis, since data flow diagrams by
themselves do not fully describe the subject of the investigation. The data flow diagrams provide
the additional details about the project/system.
Data Dictionary (Definition):
A data dictionary is a catalog- a repository- of the elements in a system. These elements center
on the data and the way they are structured to meet user requirements and organization needs. A
data dictionary consists of a list of all the elements composing the data flowing through a system.
The major elements are data flows, data stores, and processes. The data dictionary stores details
and descriptions of these elements.
Describing Data Elements:
Each entry in the data dictionary consists of a set of details describing the data used or produced
in the system. Each item is identified by a data name, description, alias, and length and has
specific values that are permissible for it in the system being studied.
4.3 Table Design
Table Structure
1. tbltest table2. tblquestion Table3. tblstudent Table4. tblcourse Table5. tbllogin Table6. tbladmin Table
19
Online Exam System
1. Faculty table
Field Name Data Typeid Int(Primary key)fname varchar(20)qualification varchar(20)experties textphoto varchar(MAX)
2. dcap Table
Field Name Data Typeqid Int(Primary key)question textop1 textOp2 textOp3 textOp4 text
3. Course Table
Field Name Data Typecourse_id Int(Primary key)course_name varchar(15)duration varchar(10)fee int
4. Admin Table
Field Name Data Typeadmin_name varchar(20)password varchar(20)
5. Ansd Table
20
Online Exam System
Field Name Data Typequs_no varchar(5)ans text
6. Login2 table
Field Name Data Typest_roll int(Primary key)stname varchar(10)password varchar(10)address varchar(10)dob varchar(10)gender varchar(10)course varchar(10)fee intduration varchar(10)marks intU_block CharU_no int
7. Question table
Field Name Data Typeqid int(Primary key)question textopt1 textOpt2 textOpt3 textOpt4 textcorrectans varchar(MAX)
8. Result Table
Field Name Data Typeenroll int(Primary key)marks int
21
Online Exam System
9.test Table
Field Name Data Typeid numeric(18, 0) (Primary key)test_name varchar(250)test_des varchar(1000)
22
Online Exam System
4.4 Input Forms Design
Home Page
23
Online Exam System
Company profile
24
Online Exam System
Education
25
Online Exam System
Institutes
26
Online Exam System
Examination
27
Online Exam System
Faculties
28
Online Exam System
Result
29
Online Exam System
Sign up
30
Online Exam System
Performance Appraisal Page
31
Online Exam System
4.5 Report Layout
The future of the Project looks more promising.
The aim of this project i.e. Online Exam System is all about the education. In this software you
can teach the take the online test. It has one more extra feature admin can easily add the question,
update the question and answer and delete also. Admin can make the admin id and delete also.
Admin has one more authority. He/ She can make the faculty id.
In future, we can have the SMS facility for the Student and Student search engine that can
provide the result on the basis of different criteria to search. We can also have one more module
of implementing this project on web.
32
Online Exam System
Chapter 5
Validation/Future Expansion
5.1 Data Validation
A crucial phase in the system life cycle is the successful implementation of the new system
design. Implementation simply means converting a new system design into operation. This
involves creating computer compatible files, training the operating staff and installing hardware,
terminals, communication network before the system is up and running. A critical factor in
conversion is not disrupting the functioning of the organization.
Following conversion, it is desirable to review the performance of the system and to evaluate it
against established criteria. Software maintenance follows conversion to the extent that changes
are necessary to maintain satisfactory operation relative to changes in the user’s environment.
Maintenance often includes minor enhancement or correction to problems that surface late in the
system’s operation.
5.2 Sample Code
Last October I blogged about our plan to release the source code to the .NET Framework
libraries, and enable debugging support of them with Visual Studio 2008. Today I'm happy to
announce that this is now available for everyone to use. Specifically, you can now browse and
debug the source code for the following .NET Framework libraries:
.NET Base Class Libraries (including System, System.CodeDom, System.Collections,
System.Component Model, System.Diagnostics, System.Drawing, System.Globalization,
System.IO, System.Net, System.Reflection, System.Runtime, System.Security,
System.Text, System.Threading, etc).
ASP.NET (System.Web, System.Web.Extensions)
Windows Forms (System.Windows.Forms)
33
Online Exam System
Windows Presentation Foundation (System.Windows)
ADO.NET and XML (System.Data and System.Xml)
We are in the process of adding additional framework libraries (including LINQ, WCF and
Workflow) to the above list. I'll blog details on them as they become available in the weeks and
months ahead.
5.3 Quality of Code
In the ASP.NET world for instance, there are some very sophisticated tools to manage the
quality of the source code, and that cover more than one dimension, such as: Coding Rules
Comments Complexity Unit testing Code coverage etc.
These tools are very useful to manage the technical debt. They connect to a repository of source
code and scan it. They can be triggered automatically just by the fact of committing the source
code.
We have a large number of ASP.NET applications to maintain and evolve, and have continuous
flow of demands for new ones to be created. We know that we have a technical debt, but we are
facing some challenges of identifying it and having it under control.
I am wondering if there are some tools to manage the source code quality in ASP.NET
applications like those mentioned above.
5.4 Input Data Validations
No system design is ever perfect. Communication problems, programmer’s negligence or time
constraints create errors that must be eliminated. A system is tested for on line response, volume
of transactions, stress, recovery and failure and usability. First, the system is tested with the
sample data and then with the live data.
34
Online Exam System
Testing was done at two levels:
By programmer
By user
Programmer level testing started at the time of development. Each and every form/report
designed was thoroughly tested with multiple sets of data satisfying various conditions. User was
involved at each level of development, as to avoid interface problems. Then, once the system
was complete it was tested with the test data, taken from the old system. A series of tests were
conducted. Errors incurred were removed simultaneously until users are satisfied.
After in house testing on the sample data the system was installed at users end. Some of the
problems faced were removed simultaneously.
35
Online Exam System
5.5 Quality Report
QUALITY TEST REPORT BY SYSTEM ANALYST/PROGRAMMER
TEST REPORT WITH TEST DATA
(To be filled by System Analyst/Programmer)
Project Name : Payroll System
S No. Testing Parameter Observations
A. INTERFACE TESTING
1) User-friendliness
2) Consistent menus
OK
NA
C. VALIDATION TESTING
1) Check for erroneous initialization or default values OK
D. DATA INTEGRITY/SECURITY TESTING
1) Boundary condition (Underflow, Overflow
Exception)
2) Check for unauthorized access of data
3) Check for data availability
OK
OK
OK
E. EFFICIENCY TESTING
1) Response time of the system
2) Online disk storage required by the system
4) Primary memory required by the system
OK
OK
OK
Remarks:
PREPARED BY: ………….. VERIFIED BY:
………………………
DATE:
36
Online Exam System
5.6 Code Design
In future this project can be enhanced to integrate with existing company/organization
management system.
We can have the SMS facility for the student and student search engine that can provide
the result on the basis of different criteria to search
Home.aspx
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
End Sub</script>
<html><head><title>educationgroom.com</title><meta http-equiv=content-type content="text/html; charset=windows-1252"><meta content="mshtml 6.00.2900.3429" name=generator><meta content=frontpage.editor.document name=progid><link href="" type=text/css rel=stylesheet><style>a {
color: black; text-decoration: none}a:hover {
color: #ff0000; text-decoration: underline}</style><script language="javascript" type="text/javascript"><!--
function C1() {document.fgColor="red";}function C2() {document.fgColor="BLACK";}
37
Online Exam System
// --></script></head><body> <form runat="server"><table cellspacing="0" cellpadding="0" width="786" border="0" align="center"> <tbody> <tr> <td bgcolor="#5293e3" height="34" style="width: 770px"> </td></tr> <tr> <td valign="top" style="width: 770px"> <table cellspacing="0" cellpadding="0" width="786" border="0"> <tbody> <tr> <td bgcolor="#808080" height="1" style="width: 780px"></td></tr> <tr> <td class="verysmall" style="height: 21px; width: 780px;"> <p style="margin-left: 8px; margin-right: 5px"><font color="#808080"> <asp:HyperLink ID="HyperLink1" runat="server" Style="left: 0px; position: relative; top: 0px" NavigateUrl="~/companyprofile.aspx">company profile</asp:HyperLink>| <asp:HyperLink ID="HyperLink2" runat="server" Style="position: relative" NavigateUrl="~/education.aspx">education</asp:HyperLink> | <asp:HyperLink ID="HyperLink3" runat="server" Style="position: relative" NavigateUrl="~/contact.aspx">institutes</asp:HyperLink> | <asp:HyperLink ID="HyperLink4" runat="server" Style="position: relative" NavigateUrl="~/signin.aspx">examination</asp:HyperLink> | <asp:HyperLink ID="HyperLink5" runat="server" Style="position: relative" NavigateUrl="~/faculty.aspx">Faculties</asp:HyperLink> | <asp:HyperLink ID="HyperLink6" runat="server" Style="position: relative" NavigateUrl="~/result.aspx" Visible="true">result</asp:HyperLink> |<asp:HyperLink ID="HyperLink8" runat="server" NavigateUrl="~/s.aspx" Style="position: relative">sign up</asp:HyperLink> |<asp:HyperLink ID="HyperLink7" runat="server" NavigateUrl="~/signin.aspx" Style="position: relative">SingIn</asp:HyperLink> |<asp:HyperLink ID="HyperLink9" runat="server" NavigateUrl="~/adminlogin.aspx" Style="position: relative">AdminSignIn</asp:HyperLink>--%></font></p></td></tr> <tr> <td bgcolor=#808080 style="width: 780px; height: 1px;"></td></tr> <tr> <td style="width: 780px"></td></tr></tbody></table></td></tr>
38
Online Exam System
<tr> <td height=32 style="width: 770px"></td></tr> <tr> <td style="width: 770px"><!-- imageready slices (headhome.psd) --> <table cellspacing=0 cellpadding=0 width=779 border=0> <tbody> <tr> <td rowspan=5><img height=183 alt="" src="" width=1></td> <td colspan=4 rowspan=2 style="text-align: center"> <span style="font-size: 48pt; font-family: Algerian"><span style="font-size: 32pt;" onmouseover="C1()" onmouseout="C2()"> WORK IS WORKSHIP</span></span></td> <td colspan=3><img height=72 alt="" src="image/HeadHome_03.jpg" width=96></td> </tr> <tr> <td rowspan=2 style="width: 29px"><img height=3 alt="" src="" width=2></td> <td colspan=2 rowspan=4><img height=111 alt="" src="image/HeadHome_05.jpg" width=94></td> <td><img height=2 alt="" src="" width=1></td></tr> <tr> <td colspan=3><img height=1 alt="" src="" width=343></td> <td rowspan=3><img height=109 alt="" src="image/HeadHome_07.jpg" width=339></td> <td><img height=1 alt="" src="" width=1></td></tr> <tr> <td colspan=2 rowspan=2><img height=108 alt="" src="image/HeadHome_08.jpg" width=342></td> <td><img height=2 alt="" src="" width=1></td> <td rowspan=2 style="width: 29px"><img height=108 alt="" src="" width=2></td> <td><img height=2 alt="" src="" width=1></td></tr> <tr> <td><img height=106 alt="" src="" width=1></td> </tr> <tr> <td colspan=7 rowspan=2><img height=23 alt="" src="image/HeadHome_09.gif" width=776></td>
39
Online Exam System
<td><img height=3 alt="" src="" width=3></td> <td><img height=3 alt="" src="" width=1></td></tr> <tr> <td><img height=20 alt="" src="" width=1></td></tr> <tr> <td colspan=3><img height=1 alt="" src="" width=343></td> <td colspan=3 rowspan=2><img height=92 alt="" src="image/HeadHome_16.gif" width=342></td> <td><img height=1 alt="" src="" width=91></td> <td><img height=1 alt="" src="" width=1></td></tr> <tr> <td colspan=2><img height=91 alt="" src="" width=2></td> <td><img height=91 alt="" src="image/HeadHome_19.gif" width=341></td> <td><img height=91 alt="" src="image/HeadHome_20.gif" width=91></td> </tr> <tr> <td><img height=1 alt="" src="" width=1></td> <td><img height=1 alt="" src="" width=1></td> <td><img height=1 alt="" src="" width=341></td> <td><img height=1 alt="" src="" width=1></td> <td><img height=1 alt="" src="" width=339></td> <td style="width: 29px"><img height=1 alt="" src="" width=2></td> <td><img height=1 alt="" src="" width=91></td> <td></td></tr></tbody></table><!-- end imageready slices --></td></tr> <tr> <td bgcolor=#5293e2 height=15 style="width: 770px"></td></tr></tbody></table>
<table cellspacing=0 cellpadding=0 width=786 border=0 align="center"> <tbody> <tr>
40
Online Exam System
<td class=verysmall bgcolor=#5293e2 style="height: 34px"> <p align=center><font color=#ffffff>this site is designed for 800 x 600 resolution for ie 7.0 and above<br>copyright © 2009 educationgroom<a href="http://www.dewsoftoverseas.com/"><font color=#ffffff>.com</font></a> all rights reserved.<br>site designed and developed RAVI KANTH</font></p></td></tr></tbody></table></form></body></html>
Home.aspx.cs
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;
public partial class homepage : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {
}}
41
Online Exam System
companyprofile.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="companyprofile.aspx.cs" Inherits="companyprofile" %>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"><html><head><title>educationgroom.com</title>
<style>a {color: black; text-decoration: none
}a:hover {
color: #ff0000; text-decoration: underline}</style></head><body leftmargin=0 topmargin=0 style="font-size: 12pt"><form runat="server" id="f1"><br /><table cellspacing=0 cellpadding=0 width=781 border=0 align="center" style="height: 797px"> <tbody> <tr> <td valign=bottom align=right width=781 bgcolor=#5293e2 height=40> <p style="margin-right: 12px"><a href="http://www.dewsoftoverseas.com/default.asp"></a> </p></td></tr> <tr> <td valign=top style="height: 759px"> <table height=467 cellspacing=0 cellpadding=0 width=781 border=0> <tbody> <tr> <td bgcolor=#808080 colspan=2 height=15></td></tr> <tr> <td class=verysmall colspan=2 style="height: 21px"> <p style="margin-left: 8px; margin-right: 5px"><font color=#808080> <asp:HyperLink ID="HyperLink7" runat="server" NavigateUrl="~/companyprofile.aspx" Style="position: relative">company profile</asp:HyperLink> | <asp:LinkButton ID="LinkButton1" runat="server" Style="position: relative">education</asp:LinkButton> | <asp:HyperLink ID="HyperLink1" runat="server" Style="position: relative">institutes</asp:HyperLink> | <asp:HyperLink ID="HyperLink2" runat="server" Style="position: relative">faculties</asp:HyperLink>
42
Online Exam System
| <asp:HyperLink ID="HyperLink3" runat="server" Style="position: relative">contact us</asp:HyperLink> | <asp:HyperLink ID="HyperLink4" runat="server" Style="position: relative">achievements</asp:HyperLink> | <asp:HyperLink ID="HyperLink5" runat="server" Style="position: relative">contact us</asp:HyperLink> | <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl="~/homepage.aspx" Style="position: relative">home </asp:HyperLink> </font><font color=#808080> </font></p></td></tr> <tr> <td bgcolor=#808080 colspan=2 height=20></td></tr> <tr> <td width=299 height=40> <p style="margin-left: 12px" align=left><img src="image/company profile.GIF" border=0></p></td> <td class=verysmall width=482 height=40> </td></tr> <tr> <td colspan=2 height=365> <table cellspacing=0 cellpadding=0 width=780 border=0> <tbody> <tr> <td valign=top width=195 bgcolor=#e4e4e4> <table style="border-right: #fed801 1px solid; border-top: #fed801 1px solid; border-left: #fed801 1px solid; border-bottom: #fed801 1px solid" cellspacing=3 cellpadding=0 width=195 bgcolor=#ffffff border=0> <tbody> <tr> <td valign=top style="width: 9px"></td> <td class=bottomsmall style="width: 207px"><img src="image/Overview.gif" border=0></td></tr> <tr> <td valign=top align=right style="width:12px"><img src="image/dot.gif" border=0></td> <td class=bottomsmall style="text-align: justify; width: 207px;"> <span style="font-size: 11pt">incorporated on the 1 of december 2000 with the registrar of companies, nct delhi, india, we are a young, dynamic, technology driven
43
Online Exam System
organization working in a healthy and competitive environment to contribute to the very existence of the society. …the society which instills desire to continually innovate, improvise, succeed, flourish, and enjoy the very existence of mankind.</span></td></tr></tbody></table> <table style="border-right: #f97b28 1px solid; border-top: #f97b28 1px solid; border-left: #f97b28 1px solid; border-bottom: #f97b28 1px solid" cellspacing=3 cellpadding=0 width=195 bgcolor=#ffffff border=0> <tbody> <tr> <td valign=top width=9></td> <td class=bottomsmall width=180><img src="image/OurGoal.gif" border=0></td></tr> <tr> <td valign=top align=right width=9><img src="image/dot.gif" border=0></td> <td class=bottomsmall width=180 style="text-align: justify"> <span style="font-size: 11pt">to become the leading software design and development house</span></td></tr> <tr> <td valign=top align=right width=9><img src="image/dot.gif" border=0></td> <td class=bottomsmall width=180 style="text-align: justify"> <span style="font-size: 11pt">to provide each and every client with an engaging, effective, and pleasurable learning experience that increases knowledge and enhances performance and professional value in the workplace, thereby contributing to the evolution of the society. </span></td></tr></tbody></table></td> <td valign=top width=585> <table cellspacing=0 cellpadding=0 width=584 border=0> <tbody> <tr> <td width=584> <table cellspacing=0 cellpadding=0 width=583 border=0> <tbody> <tr> <td align="center" width=300 height=100 rowspan=2> <img src="image/Mid.jpg" border=0> </td>
44
Online Exam System
<td valign=top width=283 bgcolor=#5293e2> <table style="border-right: #0d7af2 1px solid; border-top: #0d7af2 1px solid; border-left: #0d7af2 1px solid; border-bottom: #0d7af2 1px solid" cellspacing=3 cellpadding=0 width=283 bgcolor=#ffffff border=0> <tbody> <tr> <td valign=top width=9></td> <td class=bottomsmall width=263><img src="image/Mission.gif" border=0></td></tr> <tr> <td valign=top align=right width=9><img src="image/dot.gif" border=0></td> <td class=bottomsmall style="text-align: justify"> <span style="font-size: 11pt">to establish itself as a global pioneer in the it industry, in research, development and training with a global market share of atleast 4% by the end of 2010.</span></td></tr> <tr> <td valign=top align=right width=9><img src="image/dot.gif" border=0></td> <td class=bottomsmall style="text-align: justify"> <span style="font-size: 11pt">to redefine and raise the standards of products, services, personal morals, etiquettes, business environment and ethics.</span></td></tr> <tr> <td valign=top align=right width=9><img src="image/dot.gif" border=0></td> <td class=bottomsmall style="text-align: justify"> <span style="font-size: 11pt">to make every contact with dewsoft an enjoyable and satisfying interaction, and to make every customer a repeat customer by delivering superior quality, excellent service, and helpful technical support , worldwide.</span></td></tr></tbody></table></td></tr> <tr> <td bgcolor=#5293e2 height=58></td></tr></tbody></table></td></tr> <tr>
45
Online Exam System
<td> <table cellspacing=0 cellpadding=0 width=584 border=0> <tbody> <tr> <td width=70 bgcolor=#83d92d height=116></td> <td width=514> <table style="border-right: #00ce00 1px solid; border-top: #00ce00 1px solid; border-left: #00ce00 1px solid; border-bottom: #00ce00 1px solid" cellspacing=3 cellpadding=0 width=514 border=0> <tbody> <tr> <td valign=top width=14></td> <td class=bottomsmall valign=top width=489><img src="image/Objective.gif" border=0></td></tr> <tr> <td valign=top align=right width=14><img src="image/dot.gif" border=0></td> <td class=bottomsmall width=489 style="text-align: justify"> <span style="font-size: 11pt">to become a knowledge community that people from walks of life choose to enhance their value to their community, to their peers, to their employers, to their family and utmost to themselves.</span></td></tr> <tr> <td valign=top align=right width=14><img src="image/dot.gif" border=0></td> <td class=bottomsmall width=489 style="text-align: justify"> <span style="font-size: 11pt">to establish and follow higher than industry standards in the products and services offered, and to continually improve upon the same, for all times to come.</span></td></tr> <tr> <td valign=top align=right width=14><img src="image/dot.gif" border=0></td> <td class=bottomsmall width=489 style="text-align: justify"> <span style="font-size: 11pt">to research and contribute to the it industry by offering exemplifying range of services based on immaculate technology and
46
Online Exam System
methodology.</span></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr> <tr> <td style="height: 21px">
<table cellspacing=0 cellpadding=0 width=780 border=0 align="center" style="left: 0px; position: relative; top: -106px"> <tbody> <tr> <td class=verysmall bgcolor=#5293e2 height=45> <p align=center><font color=#ffffff>this site is designed for 800 x 600 resolution for ie 4.0 and above<br>copyright © 2000 educationgroom<a href="http://www.dewsoftoverseas.com/"><font color=#ffffff>.com</font></a> all rights reserved.<br>site designed and developed by RAVI KANTH</font></p></td></tr></tbody></table></td></tr> </tbody></table>
</form></body></html>
companyprofile.aspx.cs
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;
public partial class companyprofile : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {
}}
47
Online Exam System
education.aspx
<%@ Page Language="C#" MasterPageFile="~/education.master" AutoEventWireup="true" CodeFile="education.aspx.cs" Inherits="education" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table> <tr> <td><br /><br /><asp:TreeView runat="server" ID="tv1" DataSourceID="SiteMapDataSource1" ShowLines="True"></asp:TreeView> <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" /> </td> </tr> </table></asp:Content>
education.aspx.cs
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;
public partial class education : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {
}}
48
Online Exam System
contact.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="contact.aspx.cs" Inherits="contact" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"><html><head><title>dewsoftoverseas.com</title><meta http-equiv=content-type content="text/html; charset=windows-1252"><meta content="mshtml 6.00.5730.13" name=generator><meta content=frontpage.editor.document name=progid><link href="http://www.dewsoftoverseas.com/stylesheet1.css" type=text/css rel=stylesheet><style>a {
color: black; text-decoration: none}a:hover {
color: #ff0000; text-decoration: underline}</style></head><body leftmargin=0 topmargin=0><table cellspacing=0 cellpadding=0 width=780 border=0 align="center"> <tbody> <tr> <td valign=bottom align=right bgcolor=green height=40> <p style="margin-right: 12px"> </p></td></tr> <tr> <td valign=top> <table cellspacing=0 cellpadding=0 width=780 border=0> <tbody> <tr>
49
Online Exam System
<td bgcolor=#808080 height=1></td></tr> <tr> <td class=verysmall style="height: 21px"> <p style="margin-left: 8px; margin-right: 5px"><font color=#808080> <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/companyprofile.aspx" Style="position: relative">company profie</asp:HyperLink> | | | <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/education.aspx" Style="position: relative">education</asp:HyperLink> | | | | <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/homepage.aspx" Style="position: relative">homepage</asp:HyperLink></font><a href="http://www.dewsoftoverseas.com/contact.asp"></a><font color=#808080> | </font></p></td></tr> <tr> <td bgcolor=#808080 height=1></td></tr> <tr> <td height=60> <p style="margin-left: 15px"><img src="image/contactus.bmp" border=0></p></td></tr> <tr> <td> <table cellspacing=0 cellpadding=0 width=780 border=0> <tbody> <tr> <td bgcolor="lightblue" style="width: 78px"> <asp:Image ID="Image1" runat="server" Style="left: 2px; position: relative; top: 0px" Height="652px" ImageUrl="~/image/EDUCATION.jpg" Width="81px" /></td> <td width=639> <div align=center> <center> <table cellspacing=3 cellpadding=0 width=600 border=0> <tbody> <tr> <td valign=top align=right width=580 colspan=4> <p style="margin-bottom: 15px; margin-left: 5px" align=left><img src="image/indiat.bmp" border=0> <img height=29 src="image/20456fl_india.gif" width=43></p></td></tr> <tr>
50
Online Exam System
<td valign=top align=right width=18><img src="image/arrow.bmp" border=0></td> <td class=verysmall valign=top width=276 align="left"><b><font color=#226cc8>registered office:</font></b></td> <td class=verysmall align=right width=19 height=21><img src="image/arrow.bmp" border=0></td> <td class=verysmall width=267 height=21 align="left"><b><font color=#226cc8>customer care center:</font></b></td></tr> <tr> <td valign=top align=right width=18 style="height: 152px"></td> <td class=verysmall valign=top width=276 align="left" style="height: 152px"> 1011, gagandeep, rajendra place<br>new delhi-110008, india<br>+91-11-32954077<br>+91-11-32952663<br>+91-11-41538644,45<br>+91-11-25766743,44<br>fax: +91-11-25716839<br>url: www.educationgroom.com</td> <td class=verysmall width=19 style="height: 152px"></td> <td class=verysmall width=267 align="left" style="height: 152px"> 3051-306DE, gagandeep, rajendra place,<br>new delhi-110008, india<br>+91-11-32954077<br>+91-11-32952663<br>+91-11-41538644,45<br>+91-11-25766743,44<br>fax: +91-11-25716839<br> url: www.educationgroom.com</td></tr> <tr> <td valign=top align=right width=18></td> <td valign=top width=276></td> <td class=verysmall width=19 height=21></td> <td class=verysmall width=267 height=21></td></tr> <tr> <td valign=top align=right width=18><img src="image/arrow.bmp" border=0></td> <td class=verysmall valign=top width=276 align="left"><b><font color=#226cc8>corporate office:</font></b></td> <td class=verysmall align=right width=19 height=21><img src="image/arrow.bmp" border=0></td> <td class=verysmall width=267 height=21 align="left"><b><font color=#226cc8>training center:</font></b></td></tr> <tr> <td valign=top align=right width=18></td> <td class=verysmall valign=top width=276 align="left"> 402420, gagandeep
51
Online Exam System
, rajendra place,<br>new delhi-110008, india<br>+91-11-32954077<br>+91-11-32952663<br>+91-11-41538644,45<br>+91-11-25766743,44<br>fax: +91-11-25716839<br /> url: www.educationgroom.com</td> <td class=verysmall width=19 height=21></td> <td class=verysmall width=267 height=21 align="left"> 10200, gagandeep, rajendra place, new<br>delhi-110008, india<br>+91-11-32954077<br>+91-11-32952663<br>+91-11-41538644,45<br>+91-11-25766743,44<br>fax: +91-11-25716839<br> url: www.educationgroom.com</td></tr> <tr> <td valign=top align=right width=18></td> <td valign=top width=276></td> <td class=verysmall width=19 height=21></td> <td class=verysmall width=267 height=21></td></tr> <tr> <td valign=top align=right width=18><img src="image/arrow.bmp" border=0></td> <td class=verysmall valign=top width=276 align="left"><font color=#226cc8><b>institute operations:</b></font></td> <td class=verysmall align=right width=19 height=21></td> <td class=verysmall width=267 height=21></td></tr> <tr> <td valign=top align=right width=18 style="height: 152px"></td> <td class=verysmall valign=top width=276 align="left" style="height: 152px"> 101111, gagandeep, rajendra place<br>new delhi-110008, india<br>+91-11-32954077<br>+91-11-32952663<br>+91-11-41538644,45<br>+91-11-25766743,44<br>fax: +91-11-25716839<br>url: www.educationgroom.com</td> <td class=verysmall width=19 style="height: 152px"></td> <td class=verysmall width=267 style="height: 152px"></td></tr> </tbody></table></center></div></td></tr></tbody></table></td></tr></tbody></table></td></tr> <tr> <td bgcolor=#5293e2 height=15></td></tr></tbody></table><table cellspacing=0 cellpadding=0 width=780 border=0 align="center"> <tbody> <tr> <td class=verysmall bgcolor=#5293e2 height=45> <p align=center><font color=#ffffff>this site is designed for 800 x 600
52
Online Exam System
resolution for ie 4.0 and above<br>copyright © 2000 educationgroom<font color=#ffffff>.com</font> all rights reserved.<br>site designed and developed by shashi Bhushan kumar</font></p></td></tr></tbody></table></body></html>
contact.aspx.cs
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;
public partial class contact : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {
}}
53
Online Exam System
signin.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="signin.aspx.cs" Inherits="signin" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table style="width: 100%"> <caption style="font-size: 14pt; color: #660033"> -----Student Login----</caption> <tr style="font-size: 12pt"> <td colspan="3"> </td> </tr> <tr style="font-size: 12pt"> <td style="font-size: 10pt; width: 100px"> Student Id</td> <td style="width: 20px; font-size: 12pt;"> <asp:TextBox ID="tb1" runat="server" Width="152px" Font-Bold="True" Font-Size="Large"></asp:TextBox></td> <td style="width: 161px; font-size: 12pt;"> </td> </tr> <tr style="font-size: 12pt"> <td style="font-size: 10pt; width: 100px; height: 26px;"> Password</td> <td style="width: 20px; height: 26px;"> <asp:TextBox ID="tb2" runat="server" Width="152px" style="position: relative" Font-Bold="True" Font-Size="Large" TextMode="Password"></asp:TextBox></td> <td style="width: 161px; height: 26px;"> </td> </tr> <tr> <tr style="font-size: 12pt"> <td style="font-size: 10pt; width: 100px; height: 26px;"> </td> <td style="width: 20px; height: 26px;"> </td> </tr> <tr style="font-size: 12pt"> <td style="width: 100px; height: 26px"> </td> <td style="width: 20px; height: 26px"> <asp:Button ID="b1" runat="server" style="left: 18px; position: relative; top: 0px" OnClick="b1_Click" Text="login" /> </td>
54
Online Exam System
<td style="width: 161px; height: 26px"> </td> </tr> <tr style="font-size: 12pt"> <td style="width: 100px; height: 21px;"> <asp:Label ID="lb1" runat="server" Font-Size="Medium" ForeColor="Red" Width="303px"></asp:Label></td> <td style="width: 20px; height: 21px;"> </td> <td style="width: 161px; height: 21px;"> </tr> </table> <br /> <br /> <br /> <br /></asp:Content>
signin.aspx.cs
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.SqlClient;public partial class signin : System.Web.UI.Page{ protected void b1_Click(object sender, EventArgs e) {
Session["m"] = tb1.Text; if(tb1.Text.Equals("")) { lb1.Text="please enter name"; return; } if(tb2.Text.Equals(""))
55
Online Exam System
{ lb1.Text="please enter password"; return; } try { DataSet ds = global.loginst(tb1.Text); if (ds != null && ds.Tables[0].Rows.Count > 0) { Response.Redirect("testlist.aspx"); lb1.Text = ""; } else { lb1.Text = "No student found for entered search criteria";
return; } } catch (Exception ex) { lb1.Text = (ex.Message.ToString()); return; } } protected void Page_Load(object sender, EventArgs e) {
}}
faculty.aspx
56
Online Exam System
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="faculty.aspx.cs" Inherits="faculty" %>
<asp:Content ID="c1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <asp:DataList ID="DataList1" runat="server" CellPadding="3" DataKeyField="id" DataSourceID="SqlDataSource1" Style="position: relative" RepeatDirection="Horizontal" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellSpacing="2" GridLines="Both"> <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" /> <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" /> <ItemTemplate> <pre><b>Faculty Id :<asp:Label ID="idLabel" runat="server" Text='<%# Eval("id") %>'></asp:Label><br />Faculty Name :<asp:Label ID="fnameLabel" runat="server" Text='<%# Eval("fname") %>'></asp:Label><br />Qualification :<asp:Label ID="qualificationLabel" runat="server" Text='<%# Eval("qualification") %>'></asp:Label><br />Experties :<asp:Label ID="expertiesLabel" runat="server" Text='<%# Eval("experties") %>'></asp:Label><br />Photo:<asp:Image ID="im1" runat="server" ImageUrl='<%# Eval("photo") %>' Height="100px" Width="100px"></asp:Image><br /><br /></b></pre> </ItemTemplate> <ItemStyle BackColor="#FFF7E7" ForeColor="#8C4510" /> <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" /> </asp:DataList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:eg %>" SelectCommand="SELECT * FROM [faculty]"></asp:SqlDataSource></asp:Content>
faculty.aspx.cs
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;
57
Online Exam System
using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;
public partial class faculty : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {
}}
result.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="result.aspx.cs" Inherits="result" Title="Untitled Page" %><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table style="width: 100%"> <tr> <td style="width: 170px; font-size: 12pt; height: 26px;"> Eenrollment<asp:TextBox ID="tb1" runat="server" Style="position: relative; left: 21px; top: 0px;" Width="49px" ></asp:TextBox> <td><asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Style="position: relative; left: 14px; top: 0px;" Text="SUBMIT" /></td> <td><asp:Label ID="lblmsg" runat="server" Style="position: relative; left: 52px; top: 0px;" Text=" " Width="435px" ForeColor="Red" Font-Bold="True" Font-Size="10pt"></asp:Label></td> </tr> </table>
58
Online Exam System
<asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Style="position: relative" Visible="False"> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <EditRowStyle BackColor="#999999" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> </asp:GridView></asp:Content>
result.aspx.cs
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.SqlClient;
public partial class result : System.Web.UI.Page{
protected void Page_Load(object sender, EventArgs e) {
if (!IsPostBack) {
global.type = "0"; DataSet ds = global.searchstudent(tb1.Text); if ((ds != null) && (ds.Tables[0].Rows.Count > 0)) {
DataView dw = new DataView(ds.Tables[0]); GridView1.DataSource = dw;
59
Online Exam System
GridView1.DataBind();
} else { lblmsg.Text = "No student found for entered search criteria";
}
}
} protected void Button1_Click(object sender, EventArgs e) {
try { DataSet ds = global.searchstudent(tb1.Text); if (ds != null && ds.Tables[0].Rows.Count > 0) { GridView1.Visible = true; DataView dw = new DataView(ds.Tables[0]); dw.AllowEdit = false; dw.AllowDelete = false; dw.AllowNew = false; GridView1.DataSource = dw; GridView1.DataBind(); lblmsg.Text = ""; } else { GridView1.Visible = false; lblmsg.Text = "No student found for entered search criteria";
return; } } catch (Exception ex) { lblmsg.Text = (ex.Message.ToString()); return; }
60
Online Exam System
} protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { GridViewRow row = GridView1.SelectedRow; global.studentname = row.Cells[0].Text; global.student_name = row.Cells[1].Text; }}
s.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="s.aspx.cs" Inherits="s" Title="Untitled Page" %><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><asp:Table runat="server" align="center" ID="t2" Border="0" style="position: relative; left: -73px; top: 7px;" Height="377px" Width="521px" BorderStyle="None"> <asp:TableRow ID="TableRow1" runat="server" HorizontalAlign="Left"> <asp:TableHeaderCell ID="TableHeaderCell1" runat="server">Student id</asp:TableHeaderCell> <asp:TableHeaderCell ID="TableHeaderCell2" runat="server"><asp:TextBox runat="server" ID="tbid" /></asp:TableHeaderCell> </asp:TableRow> <asp:TableRow ID="TableRow2" runat="server" HorizontalAlign="Left">
61
Online Exam System
<asp:TableHeaderCell ID="TableHeaderCell3" runat="server">Student name</asp:TableHeaderCell> <asp:TableHeaderCell ID="TableHeaderCell4" runat="server"><asp:TextBox runat="server" ID="tb1" /></asp:TableHeaderCell> </asp:TableRow> <asp:TableRow ID="TableRow3" runat="server" HorizontalAlign="Left"> <asp:TableHeaderCell ID="TableHeaderCell5" runat="server">Password</asp:TableHeaderCell> <asp:TableHeaderCell ID="TableHeaderCell6" runat="server"><asp:TextBox ID="Tb2" runat="server" TextMode="Password"/></asp:TableHeaderCell> </asp:TableRow> <asp:TableRow ID="TableRow4" runat="server" HorizontalAlign="Left"> <asp:TableHeaderCell ID="TableHeaderCell7" runat="server">Address</asp:TableHeaderCell> <asp:TableHeaderCell ID="TableHeaderCell8" runat="server"><asp:TextBox ID="Tb3" runat="server" TextMode="MultiLine"/></asp:TableHeaderCell> </asp:TableRow> <asp:TableRow ID="TableRow5" runat="server" HorizontalAlign="Left"> <asp:TableHeaderCell ID="TableHeaderCell9" runat="server">D_O_B</asp:TableHeaderCell> <asp:TableHeaderCell ID="TableHeaderCell10" runat="server"><asp:TextBox ID="Tb4" runat="server"/></asp:TableHeaderCell> </asp:TableRow> <asp:TableRow ID="TableRow6" HorizontalAlign="Left" runat="server"> <asp:TableHeaderCell ID="TableHeaderCell11" runat="server">Course</asp:TableHeaderCell> <asp:TableHeaderCell ID="TableHeaderCell12" runat="server"><asp:DropDownList ID="dl1" runat="server"></asp:DropDownList></asp:TableHeaderCell> </asp:TableRow> <asp:TableRow ID="TableRow7" runat="server" HorizontalAlign="Left"> <asp:TableHeaderCell ID="TableHeaderCell13" runat="server">Duration</asp:TableHeaderCell> <asp:TableHeaderCell ID="TableHeaderCell14" runat="server"><asp:DropDownList ID="dl2" runat="server"></asp:DropDownList></asp:TableHeaderCell> </asp:TableRow> <asp:TableRow ID="TableRow8" HorizontalAlign="Left" runat="server"> <asp:TableHeaderCell ID="TableHeaderCell15" runat="server">Fee</asp:TableHeaderCell> <asp:TableHeaderCell ID="TableHeaderCell16" runat="server"><asp:DropDownList ID="dl3" runat="server"></asp:DropDownList></asp:TableHeaderCell> </asp:TableRow> <asp:TableRow ID="TableRow9" runat="server" HorizontalAlign="Left"> <asp:TableHeaderCell ID="TableHeaderCell17" runat="server">Gender</asp:TableHeaderCell> <asp:TableHeaderCell ID="TableHeaderCell18" runat="server">
62
Online Exam System
<asp:RadioButton ID="rb1" runat="server" GroupName="g1" Text="male" OnCheckedChanged="rb1_CheckedChanged"/> <asp:RadioButton ID="rb2" runat="server" GroupName="g1" Text="female" OnCheckedChanged="rb2_CheckedChanged"/> </asp:TableHeaderCell> </asp:TableRow> <asp:TableRow ID="TableRow10" runat="server" HorizontalAlign="Left"> <asp:TableHeaderCell ID="TableHeaderCell19" runat="server">Hobbies</asp:TableHeaderCell> <asp:TableHeaderCell ID="TableHeaderCell20" runat="server"><asp:CheckBox id="cb1" runat="server" Text="Reading" /> <asp:CheckBox id="cb2" runat="server" Text="Dancing" /> <asp:CheckBox ID="cb3" runat="server" Text="Gardening" /> <asp:CheckBox ID="cb4" runat="server" Text="Boxing" /> </asp:TableHeaderCell> </asp:TableRow> <asp:TableRow ID="TR11" runat="server" HorizontalAlign="Left"> <asp:TableHeaderCell ID="thc1" runat="server">Message</asp:TableHeaderCell> <asp:TableHeaderCell ID="thc2" runat="server"><asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Red" Style="left: 0px; position: relative; top: -6px" Text=" "/></asp:TableHeaderCell> </asp:TableRow> </asp:Table> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Style="left: 677px; position: relative; top: -293px" Text="Submit" /> <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Style="left: 615px; position: relative; top: -262px" Text="Reset" Width="57px" /></asp:Content>
s.aspx.cs
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;
63
Online Exam System
using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.SqlClient;
public partial class s : System.Web.UI.Page{ SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["eg"].ConnectionString); SqlDataReader dr; SqlDataAdapter da; SqlCommand cmd; DataSet ds = new DataSet(); string str; protected void Page_Load(object sender, EventArgs e) { da = new SqlDataAdapter("select * from course", con); if (!IsPostBack) { da.Fill(ds, "course"); dl1.DataSource = ds.Tables["course"]; dl1.DataTextField = "course_name"; dl1.DataValueField = "course_name"; dl1.DataBind(); dl2.DataSource = ds.Tables["course"]; dl2.DataTextField = "duration"; dl2.DataValueField = "duration"; dl2.DataBind(); dl3.DataSource = ds.Tables["course"]; dl3.DataTextField = "fee"; dl3.DataValueField = "fee"; dl3.DataBind(); } } protected void Button1_Click1(object sender, EventArgs e) { if (tbid.Text.Equals("")) { Label1.Text = "Enter Name"; return; } if (tb1.Text.Equals("")) { Label1.Text = "Enter Name"; return; } if (Tb2.Text.Equals(""))
64
Online Exam System
{ Label1.Text = "Enter Password"; return; } if (Tb3.Text.Equals("")) { Label1.Text = "Enter Address"; return; } if (Tb4.Text.Equals("")) { Label1.Text = "Enter Date Of Birth"; return; } try { cmd = new SqlCommand("insert into login2 values(@a,@b,@c,@d,@e,@f,@g,@h,@i,@j)", con); cmd.Parameters.AddWithValue("@a", tbid.Text); cmd.Parameters.AddWithValue("@b", tb1.Text); cmd.Parameters.AddWithValue("@c", Tb2.Text); cmd.Parameters.AddWithValue("@d", Tb3.Text); cmd.Parameters.AddWithValue("@e", Tb4.Text); cmd.Parameters.AddWithValue("@f", str); cmd.Parameters.AddWithValue("@g", dl1.SelectedValue); cmd.Parameters.AddWithValue("@h", dl3.SelectedValue); cmd.Parameters.AddWithValue("@i", dl2.SelectedValue); cmd.Parameters.AddWithValue("@j", global.countScore()); tbid.Text = ""; tb1.Text = ""; Tb2.Text = ""; Tb3.Text = ""; Tb4.Text = ""; rb1.Checked = false; rb2.Checked = false; cb1.Checked = false; cb2.Checked = false; cb3.Checked = false; cb4.Checked = false; con.Open(); cmd.ExecuteNonQuery(); con.Close(); Response.Redirect("Homepage.aspx"); } catch (Exception ex) {
65
Online Exam System
Label1.Text = (ex.Message.ToString()); } } protected void rb1_CheckedChanged(object sender, EventArgs e) { if (rb1.Checked == true) { rb2.Checked = false; str = rb1.Text; } } protected void rb2_CheckedChanged(object sender, EventArgs e) { if (rb2.Checked == true) { rb1.Checked = false; str = rb2.Text; } } protected void Button2_Click(object sender, EventArgs e) { Response.Redirect("s.aspx"); }}
66
Online Exam System
Chapter 6
Miscellaneous/References
Bibliography
I used several books and web-sites during the development of this project. Details of
some books and web-sites are given below:-
Books:
ASP.NET UNLEASHED……………………………….Stephen Walther.
Mastering in Sql Server.………..………………………….Brad McGehee
Web References
http://opensmpp.logica.com/introhtml/menu.htm
www.devshock.com
www.msdn.com
http://www.asp.net/
http://msdn.microsoft.com/netframework/windowsforms/
www.sas.com
www.bonrix.net
67