Sunteți pe pagina 1din 144

Online Examination System

A Project work submitted to the

DEPARTMENT OF BACHLER OF COMPUTER APPLICATIONS


D.S COLLEGE KATIHAR

Submitted by
------------

BCA-3rd year
D.S COLLEGE KATIHAR

Guided by

----------------------------------------

TABLE OF CONTENTS

ACKNOWLEDGEMENT

CERTIFICATE
TITLE OF THE PROJECT
INTRODUCTION
o

Basic introduction of Project

Objective and Scope

Project Section

Tools and Technologies used

SYSTEM ANALYSIS
o

Preliminary analysis & Information gathering

Input/outputs

Feasibility Study

System Requirements Specification

Software Engineering Model Used

Cost Estimation

Project Scheduling

SYSTEM DESIGN
o

Project Planning

Modules

Data Flow Diagram

E-R Diagram

Data Base Design

Screen Shots

TESTING
IMPLEMENTATION & MAINTENANCE

REFERENCES

Acknowledgement

I would like to express my sincere gratitude and regards to my


external guide Mr..------------------------------------ for his/her constant
inspiration, supervision and invaluable guidance during the
training. I would also like to thank Ms.. .of (name
of organization) for giving me such an opportunity to continue my
training in the (name of organization) and providing the facility.
At last I would also like to extend my sincere gratitude to
all my faculty members and specially Mr. .

(Internal

Guide) for giving their valuable suggestions.


With regards
Signature of Student

(Sign of HOD)

(Sign of Internal Guide)

CERTIFICATE

This is to certify that the project entitled Online Exam System has been developed
by
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------. He has worked on the project Online
Exam System. He has used JAVA, HTML, JSP, JAVASCRIPT and MS.ACCESS as
Database for the project. His work is satisfactory.

I wish him all the best for his bright future.

Dated:-9/JULY/2010
Project Incharge

Mr.Prashant Dubey

TITLE OF THE PROJECT

Project Name: - Online


Examination System

Introduction
This project assesses students by conducting online objective tests. The tests would be highly
customizable. This project will enable educational institutes to conduct test and have automated
checking of answers based on the response by the candidates.
Online Test System will provide a basis for effective fulfillment of conducting online
tests as a replacement for the paper based tests which are conducted during the internals
in the college. The only necessary condition for the usage of this software is that there
should be following users:
Administrator: He is the person who will be responsible for maintaining the whole
system. He will have access to the profile of every student which will give the record
of the performance of that student in various tests he gave. He will be provided with
the effective test system supervision.
Faculty: He is the person who will be responsible for incorporating new questions of
different levels in the database. He will be given options for modifying as well as
deleting the already existing questions. Further, he will be supposed to decide the
question paper pattern, the marking scheme and the duration.
Student: He is the person who will be appearing in the test which will be conducted
online by the faculty. He will know his result instantaneously. Also, he will get the
answers of the paper. Before all this, he will have to register himself or fill login-id
and password if already registered.

Scope
This project would be very useful for educational institutes where regular
evaluation of students is required. Further it can also be useful for anyone who
requires feedback based on objective type responses.

Benefits:
This website reduces the manual work, maintaining accuracy, increasing efficiency
and saving time. Also institutes need not go to develop new software each
time; instead they just register and conduct a test. For students, it saves time
of going to far away centers and also they can view their result then and
there.

Objective

It provides a less expensive as well as an effective method of performing


examinations.
It provides best facilities for the students to answer the question only with a
single click.
It saves time as well as money.

Section of project: Student Aspect:


1. Requesting registration
2. Logging into the system.
3. Edit user information.
4. Selecting the test.
5. Selecting whether the test to be taken in practice mode where the
correct answer is shown immediately after the candidate selects
an option.
6. Appearing for the examination.
7. Printing the result at the end of the examination.
8. Reviewing the given responses.
9. Changing password.
10.Resetting of forgotten password

Admin
1. Authenticating users based on username and password
2. Keeping session track of user activity
3. Recording candidates responses to every question
4. Checking whether the given response is correct or not
5. Keeping history of test reports of all users

Faculty Aspect
6. Logging into the system.
7. Creating a test
8. Posting questions in the above test
9. Posting multiple options to respective question
10.Marking correct answer within the given options
11.Set negative marks for wrong responses

FRONT END
ASP. NET
1. The pages developed using asp.net are compiled, providing better
performance than with scripting languages.
2. It provides a programming model, and infrastructure to create scalable,
secure and stable applications faster as well as more easily than with
previous web technologies.
3. It is more than the next version of Active Server Pages, it is a unifies web
development platform that provide the services necessary for developers to
build enterprise- class web applications
4. It is a compiled, .NET based environment.
5. Accessing database is made easier.

BACK END
MICROSOFT SQL SERVER
Microsoft SQL Server is a relational database management system developed by
Microsoft. It provides an environment used to generate databases that can be
accessed from workstations, the web or other media such
Its primary query languages are MS-SQL and T- SQL SQL Server supports different
data types, including primary types such as integer decimal, float , char (including
character strings), Varchar (variable length character strings), binary, Text (for
textual data) among others.Storage space allocated to a database is divided into
sequentially numbered pages, each 8 KB in size.
SQL Server allows multiple clients to use the same database concurrently. As such,
it needs to control concurrent access to shared data, to ensure data integrity - when
multiple clients update the same data, or clients attempt to read data that is in the
process of being changed by another client.The main mode of retrieving data from
an SQL Server database is querying for it.

External Software Description

Visual Studio 2008 or 10 or 12

Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is


used to develop computer programs for Microsoft Windows, as well as web sites, web
applications and web services. Visual Studio uses Microsoft software development platforms such
as Windows API, Windows Forms, Windows Presentation Foundation, Windows
Store and Microsoft Silver light. It can produce both native code and managed code.
Visual Studio supports different programming languages and allows the code editor and debugger
to support (to varying degrees) nearly any programming language, provided a language-specific
service exists. Built-in languages include C,[6] C++ and C++/CLI (via Visual C+
+), VB.NET (via Visual Basic .NET), C# (via Visual C#), and F#

SQL Server 2008


Microsoft SQL Server is a relational database management system developed by Microsoft. As a
database, it is a software product whose primary function is to store and retrieve data as requested
by other software applications, be it those on the same computer or those running on another
computer across a network (including the Internet). There are at least a dozen different editions of
Microsoft SQL Server aimed at different audiences and for workloads ranging from small singlemachine applications to large Internet-facing applications with many concurrent users. Its primary
query languages are T-SQL and ANSI SQL.

.Net

framework 3.5 or 4.0

.NET Framework (pronounced dot net) is a software framework developed by Microsoft that runs
primarily on Microsoft Windows. It includes a large class library known as Framework Class
Library (FCL) and provides language interoperability (each language can use code written in
other languages) across several programming languages. Programs written for .NET Framework
execute in a software environment (as contrasted to hardware environment), known as Common
Language Runtime (CLR), an application virtual machine that provides services such as
security, memory management, and exception handling. FCL and CLR together constitute .NET
Framework.

HARDWARE REQUIREMENTS:
Processor: Intel dual core or above
Processor Speed:1.0GHZ or above
RAM: 1 GB RAM or above
Hard Disk: 20 GB hard disk or above

System Analysis:
FUNCTIONAL REQUIREMENTS
It deals with the functionalities required from the system
which are as follows:
The website will help the colleges/organizations/companies
to conduct Their online exams.
Only authorized person can access related details.
The organization will register themselves on the website for
conducting Their exams.
Organizations can change their information regarding
themselves.
The students can login through TEST-ID and PASSWORD and
give their exams.
Administrator will be responsible for updating the site.
The Faculty can change questions and test papers
whenever they want.

NON FUNCTIONAL REQUIREMENTS


They are the quality requirements that stipulate how well a
software does what it has to do.
Performance
No. of terminals to be supported is dependent on the server that
we will use at the time of deployment. The web application server
used should provide good performance and ability to manage
performance with techniques such as support for caching. After
completing the exam, the entire score of the student will be
calculated as per the rules in less than a second.
Availability Online Examination site has 24*7 availability.
It can be accessed for 24 hours a day. For this UPS support must
be on the server site with a backup of at least 8 hours in case of
power failure. Students can take exam only during the previously
allotted time slots, however can open site anytime to access other
information. Colleges can register for the exam anytime.
Reliability
It means the extent to which program performs with required
precision. The website developed should be extremely reliable and
secure so that information about any questions etc. is not leaked
before the actual exam is held.
Usability

The website should be user friendly and should require least effort
to operate.
Portability
The website is made using HTML, JSP etc.which are platform
independent and can be transported to other servers with
minimum effort.
Flexibility
It is effort required to modify operational program. The whole
website should be made using independent modules so that any
changes done in 1 module should not affect the other one and
new modules can be added easily to increase functionality.
FEASIBILITY STUDY
Feasibility study defines all the requirements to performance
characteristics of system.
For system to be feasible, the design needs to undertake various
factors or performance requirements by which the system will be
operated.
A feasibility study is short, focused study which aims at selecting
the best system that meets performance requirements.
Information is gathered regarding the general requirements of the
proposed system.
If feasibility study is to serve as the decision document, it answers
a number of questions.
Like
Is it beneficial?
Does it save time and money?
Can it be integrated with other systems already in place?
Planning resources is a very vast concept and we are beginners,
thus including each and every aspects of web, Integrate and
automate them in every respect was not feasible for us. Hence we
perform feasibility study to make our project compatible for
present environment.
Technical feasibility
Technical feasibility takes of the all the issues concerned with the
design and the development part of the project. It concerns itself
with the software, hardware and the platform related issues. The
following are the technical specifications for our project. The
project would require a lot of space for storage of static as well as
dynamic content.
As the number of project available increases the space required
for storing them increases.
Economic feasibility
It provides an efficient and reliable platform to work upon.
It saves time and is thus a faster means of examination.
It is less costly than the other means of examination.
MODULES AND THEIR DESCRIPTOIN

Administrator: He is the person who will be responsible for maintaining the whole
system. He will have access to the profile of every student which will give the
record of the performance of that student in various tests he gave. He will be
provided with the effective test system supervision.
Faculty: He is the person who will be responsible for incorporating new questions
of different levels in the database. He will be given options for modifying as well as
deleting the already existing questions. Further, he will be supposed to decide the
question paper pattern, the marking scheme and the duration.
Student: He is the person who will be appearing in the test which will be conducted
online by the faculty. He will know his result instantaneously. Also, he will get the
answers of the paper. Before all this, he will have to register himself or fill login-id
and password if already registered.

E-R DIAGRAM

DFD - Data Flow Diagram for Online Examination System

Database Design:
Admin Login Table

Allanswer Table

All Class Table

All Qusetion table

All Subject

All User

Examhead Table

Given Answer Table

Notice Table

Student Registration

Test Result

View result

Screenshot:-

Code:Design Code

Aboutus.aspx
<%@ Page Language="C#" MasterPageFile="~/Home1.Master" AutoEventWireup="true"
CodeBehind="Aboutus.aspx.cs" Inherits="FINALONLINETESTPORTAL.WebForm3"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.style3
{
width: 80%;
border: 3px solid #c0c0c0;
margin:0px auto;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<tr>

<table cellpadding="2" class="style3">

<td align="center" colspan="2">


<img alt="txt-url"
src="Administrator/image/new_icon.gif"
style="width: 47px; height: 24px" /><img
alt="txt-url"
src="Administrator/image/blinking_new.gif" style="width: 40px; height: 20px"

/><marquee>WELCOME&nbsp;&nbsp;&nbsp; TO&nbsp;&nbsp;&nbsp;
STUDENT</td></marquee>
</tr>
<tr>
<td align="center" colspan="2">
WELCOME</td>
</tr>
<tr align="center" valign="top">
<td height="300">
Today, in this computer era,DS COLLEGE&nbsp;
KATIHAR Computer Education
providing all types of computer&#39;s ShortTerms, Long- Terms, Programming Learning
Packages Under a single roof. We are
providing our computer learning services
from last 3 yrs. We upgrade our Hardware as
well as Software system time to
time. Also upgrade the teaching staff with
latest technology according to
today&#39;s demands. Our Organization
provides the best learning envir ment as per
institution level. Our business is not only
to provide computer learning, it&#39;s
also our passion to mentain quality and sat
isfaction. We understand the entire
process, from top-level assessments through
learning management. In this way, we
can offer solutions that fit our
student&#39;s need and satisfaction. We also give
the best way to use their investments in
learning and education in our
</td>
<td height="100" width="100">
<img alt="TXT-URL"
src="Administrator/image/1e3adc38d979adaada613795bf2bdf9b.gif"
style="width: 100px; height: 100px" />
</td>
</tr>
</table>
</asp:Content>

Collegelist.apx
<%@ Page Language="C#" MasterPageFile="~/Home1.Master" AutoEventWireup="true"
CodeBehind="collegelist.aspx.cs" Inherits="FINALONLINETESTPORTAL.WebForm7"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.style3
{
width: 100%;

border: 3px solid #c0c0c0;


}
.style13
{
width: 100%;
border: 3px solid #c0c0c0;
}
</style>
</asp:Content>
<asp:Content ID="Content2" runat="server"
contentplaceholderid="ContentPlaceHolder1">
<table cellpadding="2" class="style13" width="300">
<tr>
<td height="50" width="300">
We are associate with main in India&nbsp; ,and&nbsp; an we
provide&nbsp; and&nbsp;
to focus&nbsp; to that&nbsp; college&nbsp; ,our&nbsp;
list&nbsp; is:-</td>
<td width="300">
</td>
<td width="300">
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</asp:Content>

Contactus.apx
<%@ Page Language="C#" MasterPageFile="~/Home1.Master" AutoEventWireup="true"
CodeBehind="Contactus.aspx.cs" Inherits="FINALONLINETESTPORTAL.WebForm1"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.style3
{
width: 651px;
border: 3px solid #c0c0c0;
height: 200px;
margin:0px*0px*0px*0px;
}
.style5
{
width: 651px;
border:3px solid #c0c0c0;

height:200px;
margin:0px*0px*0px*0px;
}
.style6
{
width: 847px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style3" align="center" style="height: 463px">
<tr>

<td align="center"

style="text-decoration: underline; font-family: 'Bookman Old


Style'; font-size: medium; font-weight: bold; font-style: italic; fontvariant: normal; text-transform: capitalize; color: #000000"
height="200" valign="middle" class="style6">
CONTACT&nbsp;&nbsp;&nbsp; INFORMATION&nbsp;&nbsp;&nbsp;
<br />
<br />
<br />
Monday&nbsp; -Saturday :9:30 Am to 6:30 pm<br />
<br />
Address : D.S&nbsp; College&nbsp;&nbsp; Road ,Katihar854105<br />
<br />
phone:+91-98112211828, +91-9873177078<br />
<br />
Fax:+91--11-26388387, 88,89<br />
<br />
<a
href="mailto:Email:info@dscollege.in">Email:info@dscollege.in</a>,
<a
href="mailto:student@dscollege.in">student@dscollege.in</a><br />
<br />
</td>
<td align="center"
style="text-decoration: underline; font-family: 'Bookman Old
Style'; font-size: medium; font-weight: bold; font-style: italic; fontvariant: normal; text-transform: capitalize; color: #000000"
height="200" valign="middle" class="style5">
<br />
Contact&nbsp;&nbsp;&nbsp; us<br />
<br />
Leave&nbsp; Us&nbsp; a&nbsp; message<br />
<br />
&nbsp;<asp:TextBox ID="TextBox1" runat="server" Height="20px"
Width="200px">Name:</asp:TextBox>
<br />
<br />

<asp:TextBox ID="TextBox2" runat="server" Height="20px"


Width="200px">Email:</asp:TextBox>
<br />
<br />
<asp:TextBox ID="TextBox3" runat="server" Height="20px"
Width="200px">Phone No:</asp:TextBox>
<br />
<br />
<asp:TextBox ID="TextBox4" runat="server" Height="30px"
TextMode="MultiLine"
Width="200px">Message:</asp:TextBox>
<br />
<br />
<asp:Button ID="Button1" runat="server" Height="20px"
Text="SEND Message"
Width="200px" />
<br />
<br />
</td>
</tr>
</table>
</asp:Content>

Default.apx
<%@ Page Language="C#" MasterPageFile="~/Home1.Master" AutoEventWireup="true"
CodeBehind="Default.aspx.cs" Inherits="FINALONLINETESTPORTAL.Default"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1">
<tr style="color: #FFFFFF; background-color: #000000;">
<td class="style2" align="center" height="200">
<asp:Login ID="lgnstudent" runat="server"
onauthenticate="lgnstudent_Authenticate"
TitleText="Student login"
Font-Bold="True" Height="203px">
<TextBoxStyle BorderColor="#400020"
BorderWidth="4px" />
<LoginButtonStyle BackColor="#004284"
BorderColor="#400020" />
<InstructionTextStyle Font-Size="15pt" FontStrikeout="False"
Font-Underline="False" />
<LabelStyle Font-Size="15pt" />
<FailureTextStyle Font-Size="15pt" />
<TitleTextStyle BackColor="#004284"
BorderColor="#400020" BorderStyle="Solid"
Font-Bold="True" Font-Size="15pt"
Height="30px" Wrap="True" />
<HyperLinkStyle Font-Size="15pt" />
</asp:Login>
</td>

<td class="style2" align="center" height="150">


<asp:Login ID="lgnfaculty" runat="server"
TitleText="Faculty Login"
onauthenticate="lgnfaculty_Authenticate"
Height="203px">
<TextBoxStyle BackColor="White"
BorderColor="#400020" BorderStyle="Solid"
BorderWidth="4px" />
<LoginButtonStyle BackColor="#004284"
BorderColor="#400020" />
<LabelStyle Font-Size="15pt" />
<TitleTextStyle BackColor="#004284"
BorderColor="#400020" BorderStyle="Solid"
Font-Bold="True" Font-Size="15pt"
Height="30px" />
</asp:Login>
</td>
<td class="style2" align="center" height="150">
<asp:Login ID="lgnadmin" runat="server"
TitleText="Admin Login"
onauthenticate="admin_Authenticate"
Height="203px">
<TextBoxStyle BorderColor="#400020"
BorderWidth="4px" />
<LoginButtonStyle BackColor="#004284"
BorderColor="#400020" />
<LabelStyle Font-Size="16pt" />
<TitleTextStyle BackColor="#004284"
BorderColor="#400020" BorderStyle="Solid"
Font-Bold="True" Font-Size="15pt"
Height="30px" />
</asp:Login>
</td>
</tr>
</table>
</asp:Content>

Gridviewclass1.aspx
<%@ Page Language="C#" AutoEventWireup="true"
CodeBehind="Gridviewclass1.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Gridviewclass1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
.style1
{
width: 100%;
border: 3px solid #c0c0c0;
}

</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False"
onselectedindexchanged="GridView1_SelectedIndexChanged">
<Columns>
<asp:TemplateField HeaderText="Question Detail ">
<ItemTemplate>
<table cellpadding="2" class="style1">
<tr>
<td>
<asp:Label ID="lblEnterName"
runat="server" Text='<%#Bind("EnterName") %>'></asp:Label>
</td>
<td>
<asp:Label ID="Label2" runat="server"
Text="Label"></asp:Label>
</td>
<td>
<asp:Label ID="Label3" runat="server"
Text="Label"></asp:Label>
</td>
<td>
<asp:Label ID="Label4" runat="server"
Text="Label"></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label5" runat="server"
Text="Label"></asp:Label>
</td>
<td>
<asp:Label ID="Label6" runat="server"
Text="Label"></asp:Label>
</td>
<td>
<asp:Label ID="Label7" runat="server"
Text="Label"></asp:Label>
</td>
<td>
<asp:Button ID="btnshownow" runat="server"
onclick="btnshownow_Click"
Text="Shownow" />
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>

</div>
</form>
</body>
</html>

Home1.Master
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Home1.master.cs"
Inherits="FINALONLINETESTPORTAL.Home1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Online Test Home Page</title>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>

<style type="text/css">
.style1
{
width:100%;
border:3px solid #c0c0c0;

}
#menu1 ul
{
margin: 0px;
padding: 0px;
height: 50px;
width: 100%;
background-color:black ;
}
#menu1 ul li
{
list-style-type: none;
float: left;
height: 50px;
margin: 0px;
padding: 0px;
}
#menu1 ul li a
{
display: block;
text-decoration: none;
line-height: 20px;
padding: 15px 10px;
color: white;
font-family: Iskoola Pota;
font-weight: bold;
border-right:solid 2px red;
}

#menu1 ul li ul
{
display: none;
width: 150px;
height: auto;
position:relative;
z-index:1000;
}
#menu1 ul li:hover ul
{
display: block;
height:auto;
}
#menu1 ul li ul li
{
height:50px;
background-color:Teal;
width:150px;
}
#menu1 ul li a:hover
{
background:white;
color: Black;
}
.style1
{
width: 1314px;
}
.style3
{
height: 115px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
<table cellpadding="2" class="style1">
<tr>
<td>
<table cellpadding="2" class="style1">
<tr bgcolor="#8080FF">
<td width="200" style="border: medium solid #000000"
class="style3"
bgcolor="#79A5FF">
<img alt="txt-url"
src="Administrator/image/dslogo.png"
style="width: 200px; height: 115px" /></td>
<td
style="border-top-style: solid; border-bottomstyle: solid; border-top-width: thick;

border-bottom-width: thick; border-top-color:


#000000; border-bottom-color: #000000;"
class="style3">
<img alt="txt-url"
src="Administrator/image/slide1.png"
style="width: 1078px; height: 150px" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="60px" id="menu1" bgcolor="#996633">
<ul>
<li><a href="Default.aspx">Home </a></li>

/>-->

<li><a href="StudentRegistration.aspx">Registration</a>
<ul>
<li><a href="#">Faculty</a></li>
<li><a href="StudentRegistration.aspx">Student</a></li>
</ul>
</li>
<li><a href="Aboutus.aspx">About Us </a>
<ul>
<li><a href="#">Profile</a></li>
<li><a href="#">MissionVission</a></li>
</ul>
</li>
<li><a href="Notification.aspx">Notification </a></li>
<li><a href="Result.aspx">Result </a></li>
<li><a href="#">Topper List </a></li>
<li><a href="collegelist.aspx">Listed College</a></li>
<li><a href="imagegallery.aspx">Image Gallery </a></li>
<li><a href="Latestnotice.aspx">Latest Notice </a></li>
<li><a href="Contactus.aspx">Contact Us</a>
</li>
</ul>
</td>
</tr>
<tr>
<td height="150">
&nbsp;&nbsp;
<!--<img alt="txt-url" src="Administrator/image/slide4.jpg"
style=" margin:0px auto; width: 1300px; height: 400px";

<!-- Start cssSlider.com -->


<!-- Generated by cssSlider.com 2.0 -->
<link rel="stylesheet"
href="cssslider_files/csss_engine1/style.css">
<!--[if IE]><link rel="stylesheet"
href="cssslider_files/csss_engine1/ie.css"><![endif]-->
<!--[if lte IE 9]><script type="text/javascript"
src="cssslider_files/csss_engine1/ie.js"></script><![endif]-->

<div class="csslider1 autoplay ">


<input name="cs_anchor1" id="cs_slide1_0" type="radio"
class="cs_anchor slide">
<input name="cs_anchor1" id="cs_slide1_1" type="radio"
class="cs_anchor slide">
<input name="cs_anchor1" id="cs_slide1_2" type="radio"
class="cs_anchor slide">
<input name="cs_anchor1" id="cs_slide1_3" type="radio"
class="cs_anchor slide">
<input name="cs_anchor1" id="cs_play1" type="radio"
class="cs_anchor" checked="">
<input name="cs_anchor1" id="cs_pause1_0" type="radio"
class="cs_anchor pause">
<input name="cs_anchor1" id="cs_pause1_1" type="radio"
class="cs_anchor pause">
<input name="cs_anchor1" id="cs_pause1_2" type="radio"
class="cs_anchor pause">
<input name="cs_anchor1" id="cs_pause1_3" type="radio"
class="cs_anchor pause">
<ul>
<li class="cs_skeleton"><img
src="cssslider_files/csss_images1/slide1.jpg" style="width: 100%;"></li>
<li class="num0 img slide"> <img
src="cssslider_files/csss_images1/slide1.jpg" alt="slide1"
title="slide1"></li>
<li class="num1 img slide"> <img
src="cssslider_files/csss_images1/slide3.jpg" alt="slide3"
title="slide3"></li>
<li class="num2 img slide"> <img
src="cssslider_files/csss_images1/slide4.jpg" alt="slide4"
title="slide4"></li>
<li class="num3 img slide"> <img
src="cssslider_files/csss_images1/slide5.jpg" alt="slide5"
title="slide5"></li>
</ul><div class="cs_engine"><a href="http://cssslider.com">angular
carousel</a> by cssSlider.com v2.0</div>
<div class="cs_description">
<label class="num0"><span class="cs_title"><span
class="cs_wrapper">slide1</span></span></label>
<label class="num1"><span class="cs_title"><span
class="cs_wrapper">slide3</span></span></label>
<label class="num2"><span class="cs_title"><span
class="cs_wrapper">slide4</span></span></label>
<label class="num3"><span class="cs_title"><span
class="cs_wrapper">slide5</span></span></label>
</div>
<div class="cs_play_pause">
<label class="cs_play"
for="cs_play1"><span><i></i><b></b></span></label>
<label class="cs_pause num0"
for="cs_pause1_0"><span><i></i><b></b></span></label>
<label class="cs_pause num1"
for="cs_pause1_1"><span><i></i><b></b></span></label>
<label class="cs_pause num2"
for="cs_pause1_2"><span><i></i><b></b></span></label>
<label class="cs_pause num3"
for="cs_pause1_3"><span><i></i><b></b></span></label>

</div>
<div class="cs_arrowprev">
<label class="num0"
for="cs_slide1_0"><span><i></i><b></b></span></label>
<label class="num1"
for="cs_slide1_1"><span><i></i><b></b></span></label>
<label class="num2"
for="cs_slide1_2"><span><i></i><b></b></span></label>
<label class="num3"
for="cs_slide1_3"><span><i></i><b></b></span></label>
</div>
<div class="cs_arrownext">
<label class="num0"
for="cs_slide1_0"><span><i></i><b></b></span></label>
<label class="num1"
for="cs_slide1_1"><span><i></i><b></b></span></label>
<label class="num2"
for="cs_slide1_2"><span><i></i><b></b></span></label>
<label class="num3"
for="cs_slide1_3"><span><i></i><b></b></span></label>
</div>
<div class="cs_bullets">
<label class="num0" for="cs_slide1_0"> <span
class="cs_point"></span>
<span class="cs_thumb"><img
src="cssslider_files/csss_tooltips1/slide1.jpg" alt="slide1"
title="slide1"></span></label>
<label class="num1" for="cs_slide1_1"> <span
class="cs_point"></span>
<span class="cs_thumb"><img
src="cssslider_files/csss_tooltips1/slide3.jpg" alt="slide3"
title="slide3"></span></label>
<label class="num2" for="cs_slide1_2"> <span
class="cs_point"></span>
<span class="cs_thumb"><img
src="cssslider_files/csss_tooltips1/slide4.jpg" alt="slide4"
title="slide4"></span></label>
<label class="num3" for="cs_slide1_3"> <span
class="cs_point"></span>
<span class="cs_thumb"><img
src="cssslider_files/csss_tooltips1/slide5.jpg" alt="slide5"
title="slide5"></span></label>
</div>
</div>
<!-- End cssSlider.com -->

</td>
</tr>
<tr>
<td height="150" bgcolor="#8080FF">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
<tr>
<td height="50" style="font-family: Arial; font-size: 20px; fontstyle: italic; color: #FFFFFF;
background-color: #000000">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
href="mailto:coyright@2015..Desigend">coyright@2015..Desigend</a>&nbsp; and
developed by Team:&#39;H&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;
<td><marquee scrollamount = "4</td> Online Test Home Page
Developed by Team H&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

imagegallery.aspx
<%@ Page Language="C#" MasterPageFile="~/Home1.Master" AutoEventWireup="true"
CodeBehind="imagegallery.aspx.cs" Inherits="FINALONLINETESTPORTAL.WebForm6"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
</asp:Content>

Latestnotice.aspx
<%@ Page Language="C#" MasterPageFile="~/Home1.Master" AutoEventWireup="true"
CodeBehind="Latestnotice.aspx.cs" Inherits="FINALONLINETESTPORTAL.WebForm9"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.style4
{
width: 100%;

border: 3px solid #c0c0c0;


}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style4">
<tr>
<td align="center">
D.S College
<br />
NOTICE<br />
13 June 2015....<br />
COLLEGE&nbsp; HOLIDAY<br />
The&nbsp; College&nbsp; will&nbsp; remain&nbsp; closed&nbsp;
for&nbsp; a week&nbsp;
from&nbsp; 18 June...to 24 June ...for&nbsp;&nbsp; the&nbsp;
Commonwealth&nbsp;&nbsp;
Games&nbsp; in&nbsp; New&nbsp; Delhi.<br />
Dr.Pawan Kr. Jha<br />
Principal</td>
</tr>
</table>
</asp:Content>

Notification.aspx
<%@ Page Language="C#" MasterPageFile="~/Home1.Master" AutoEventWireup="true"
CodeBehind="Latestnotice.aspx.cs" Inherits="FINALONLINETESTPORTAL.WebForm9"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.style4
{
width: 100%;
border: 3px solid #c0c0c0;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style4">
<tr>
<td align="center">
D.S College
<br />
NOTICE<br />
13 June 2015....<br />
COLLEGE&nbsp; HOLIDAY<br />
The&nbsp; College&nbsp; will&nbsp; remain&nbsp; closed&nbsp;
for&nbsp; a week&nbsp;
from&nbsp; 18 June...to 24 June ...for&nbsp;&nbsp; the&nbsp;
Commonwealth&nbsp;&nbsp;
Games&nbsp; in&nbsp; New&nbsp; Delhi.<br />
Dr.Pawan Kr. Jha<br />

Principal</td>
</tr>
</table>
</asp:Content>

Onlinetest.cs
using
using
using
using
using
using
using
using
using
using
using

System;
System.Data;
System.Configuration;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.HtmlControls;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Xml.Linq;

using System.Data.SqlClient;
namespace FINALONLINETESTPORTAL
{
public class onlinetest
{
public String pqr()
{
String path = @"Data Source = .\SQLEXPRESS;" + @"AttachDbFilename
=C:\Users\Ints\Desktop\bcaaaaaaaaaaaaa\TEAM
H\FINALONLINETESTPORTAL\App_Data\Alluser.mdf; Integrated Security = True; User
Instance=True";
return path;
}
}
}

Results.apx
<%@ Page Language="C#" MasterPageFile="~/Home1.Master" AutoEventWireup="true"
CodeBehind="Result.aspx.cs" Inherits="FINALONLINETESTPORTAL.WebForm8"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.style4
{
width: 100%;
border: 3px solid #c0c0c0;
}
</style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"


runat="server">
<table cellpadding="2" class="style4">
<tr>
<td>
&nbsp;</td>
</tr>
</table>
</asp:Content>

Student_registration_slip.aspx
<%@ Page Language="C#" AutoEventWireup="true"
CodeBehind="Student_registration_slip.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Student_registration_slip" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div style="height: 347px">
<table align="center" cellpadding="2" class="style1">
<tr>
<td colspan="2">
Great You are registered Successfully to participate in
online Test.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Kindly Keep
following Details for future Use..<br />
</td>
</tr>
<tr>
<td class="style3">
Your&nbsp; Name</td>
<td>
<asp:Label ID="lblname" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td class="style3">
Your UserId</td>
<td>
<asp:Label ID="lbluid" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td class="style3">
Your Password</td>

<td>

<asp:Label ID="lblpwd" runat="server"></asp:Label>


</td>
</tr>
<tr>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</div>
</form>
</body>
</html>

StudentRegistration.aspx
<%@ Page Language="C#" MasterPageFile="~/Home1.Master" AutoEventWireup="true"
CodeBehind="StudentRegistration.aspx.cs"
Inherits="FINALONLINETESTPORTAL.WebForm2" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">

.style3
{
font-size: x-large;
font-weight: bold;
}

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1" align="center" bgcolor="#33CCFF"
frame="border"
style="border-style: none; border-width: medium; height: 595px; width:
863px;"
border="1">
<tr>
<td align="center" colspan="4" class="style3">
Student registration form..</td>
</tr>
<tr>
<td align="center" style="font-size: large" colspan="4">

Personal Details of Students&nbsp; :-</td>


</tr>
<tr>
<td style="font-size: large"align="right">
<asp:Label ID="lblname" runat="server" Text="Enter Your
Name"></asp:Label>
: </td>
<td style="font-size: large; left: auto;"align="left">
<asp:TextBox ID="txtname0" runat="server"
ontextchanged="txtname_TextChanged"></asp:TextBox>
</td>
<td style="font-size: large"align="right">
<asp:Label ID="lblfathername0" runat="server" Text="Enter
Father's Name"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtfathername0" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="font-size: large" align="right">
<asp:Label ID="lbladdress0" runat="server"
Text="Address"></asp:Label>
</td>
<td style="font-size: large">
<asp:TextBox ID="txtaddress0" runat="server"></asp:TextBox>
</td>
<td style="font-size: large" align="right">
<asp:Label ID="lblGender0" runat="server"
Text="Gender"></asp:Label>
</td>
<td align="left">
<asp:DropDownList ID="ddlGender0" runat="server">
<asp:ListItem>Female</asp:ListItem>
<asp:ListItem>Male</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="font-size: large" align="right">
<asp:Label ID="lblDOB0" runat="server">Date of
Birth</asp:Label>
</td>
<td style="font-size: large">
<asp:DropDownList ID="ddldate0" runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>6</asp:ListItem>
<asp:ListItem>7</asp:ListItem>
<asp:ListItem>8</asp:ListItem>
<asp:ListItem>9</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>

<asp:ListItem>12</asp:ListItem>
<asp:ListItem>13</asp:ListItem>
<asp:ListItem>14</asp:ListItem>
<asp:ListItem>15</asp:ListItem>
<asp:ListItem>16</asp:ListItem>
<asp:ListItem>17</asp:ListItem>
<asp:ListItem>18</asp:ListItem>
<asp:ListItem>19</asp:ListItem>
<asp:ListItem>20</asp:ListItem>
<asp:ListItem>21</asp:ListItem>
<asp:ListItem>22</asp:ListItem>
<asp:ListItem>23</asp:ListItem>
<asp:ListItem>24</asp:ListItem>
<asp:ListItem>25</asp:ListItem>
<asp:ListItem>26</asp:ListItem>
<asp:ListItem>27</asp:ListItem>
<asp:ListItem>28</asp:ListItem>
<asp:ListItem>29</asp:ListItem>
<asp:ListItem>30</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlmonth0" runat="server">
<asp:ListItem>jan</asp:ListItem>
<asp:ListItem>feb</asp:ListItem>
<asp:ListItem>mar</asp:ListItem>
<asp:ListItem>apr</asp:ListItem>
<asp:ListItem>may</asp:ListItem>
<asp:ListItem>june</asp:ListItem>
<asp:ListItem>july</asp:ListItem>
<asp:ListItem>aug</asp:ListItem>
<asp:ListItem>sep</asp:ListItem>
<asp:ListItem>oct</asp:ListItem>
<asp:ListItem>nov</asp:ListItem>
<asp:ListItem>dec</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlyear0" runat="server">
<asp:ListItem>2000</asp:ListItem>
<asp:ListItem>2001</asp:ListItem>
<asp:ListItem>2002</asp:ListItem>
<asp:ListItem>2003</asp:ListItem>
<asp:ListItem>2004</asp:ListItem>
<asp:ListItem>2005</asp:ListItem>
<asp:ListItem>2006</asp:ListItem>
<asp:ListItem>2008</asp:ListItem>
<asp:ListItem></asp:ListItem>
<asp:ListItem>1990</asp:ListItem>
<asp:ListItem>1991</asp:ListItem>
<asp:ListItem>1992</asp:ListItem>
<asp:ListItem>1993</asp:ListItem>
<asp:ListItem>1994</asp:ListItem>
<asp:ListItem>1995</asp:ListItem>
<asp:ListItem>1996</asp:ListItem>
<asp:ListItem>1997</asp:ListItem>
<asp:ListItem>1998</asp:ListItem>
<asp:ListItem>1999</asp:ListItem>
<asp:ListItem>2000</asp:ListItem>

<asp:ListItem></asp:ListItem>
</asp:DropDownList>
</td>
<td style="font-size: large" align="right">
<asp:Label ID="lblmobileno0" runat="server"
Text="mobileno"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtmobileno" runat="server"
ontextchanged="txtmobileno_TextChanged"></asp:TextBox>
&nbsp;<asp:RegularExpressionValidator
ID="RegularExpressionValidator1"
runat="server" ControlToValidate="txtmobileno"
Display="Dynamic"
ErrorMessage="Not in Formate"
ValidationExpression="^([0]|\+91)?\d{10}"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td style="font-size: large"align="right">
EmailId</td>
<td style="font-size: large"align="left">
<asp:TextBox ID="txtemailid0" runat="server"></asp:TextBox>
&nbsp;<asp:RegularExpressionValidator
ID="RegularExpressionValidator2"
runat="server" ControlToValidate="txtemailid0"
Display="Dynamic"
ErrorMessage="Not in Formate"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+
([-.]\w+)*"></asp:RegularExpressionValidator>
</td>
<td style="font-size: large"align="center">
&nbsp;</td>
<td align="left">
&nbsp;</td>
</tr>
<tr>
<td style="font-size: large">
</td>
<td style="font-size: large">
</td>
<td style="font-size: large">
</td>
<td align="left">
&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr>
<td style="font-size: large" align="center" colspan="4">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Educational&nbsp;&nbsp; Details of
Student:-</td>
</tr>
<tr>
<td style="font-size: large" align="right">

<asp:Label ID="lblstudies0" runat="server" Text="Are you


Studies in"></asp:Label>
</td>
<td style="font-size: large">
<asp:TextBox ID="txtstudies" runat="server"></asp:TextBox>
</td>
<td style="font-size: large" align="right">
<asp:Label ID="lblcollege1" runat="server"
Text="College/School Name"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtcollege0" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="font-size: large" align="right">
<asp:Label ID="lblcollege2" runat="server"
Text="UploadResume"></asp:Label>
</td>
<td style="font-size: large">
<asp:FileUpload ID="Filemypicture" runat="server" />
</td>
<td style="font-size: large">
Upload Image</td>
<td align="left">
<asp:FileUpload ID="UploadImage" runat="server" />
</td>
</tr>
<tr>
<td style="font-size: large">
&nbsp;</td>
<td style="font-size: large">
&nbsp;</td>
<td style="font-size: large">
&nbsp;</td>
<td align="left">
&nbsp;</td>
</tr>
<tr>
<td align="center" style="font-size: large" colspan="4">
Contact Address Details&nbsp; :-</td>
</tr>
<tr>
<td style="font-size: large" align="right">
<asp:Label ID="lblcountery" runat="server" Text="Country
Name"></asp:Label>
</td>
<td style="font-size: large">
<asp:TextBox ID="txtcontryname0" runat="server"></asp:TextBox>
&nbsp;</td>
<td style="font-size: large" align="right">
<asp:Label ID="lblstatename0" runat="server" Text="State
Name"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtstatename0" runat="server"></asp:TextBox>
</td>

</tr>
<tr>
<td style="font-size: large" align="right">
<asp:Label ID="lbldistricname0" runat="server" Text="District
Name"></asp:Label>
</td>
<td style="font-size: large">
<asp:TextBox ID="txtdstname" runat="server"></asp:TextBox>
</td>
<td style="font-size: large" align="right">
<asp:Label ID="lblpsname" runat="server" Text="P.S
Name"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtps" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="font-size: large" align="right">
<asp:Label ID="lblpo" runat="server" Text="P.O"></asp:Label>
</td>
<td style="font-size: large">
<asp:TextBox ID="txtpo" runat="server"></asp:TextBox>
</td>
<td style="font-size: large" align="right">
<asp:Label ID="lblpincode" runat="server" Text="Pin
Code"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtpincode" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="font-size: large">
&nbsp;</td>
<td style="font-size: large">
&nbsp;</td>
<td style="font-size: large">
&nbsp;</td>
<td align="left">
&nbsp;</td>
</tr>
<tr>
<td align="center" style="font-size: large" colspan="4">
Login Details of Student&nbsp; :-</td>
</tr>
<tr>
<td style="font-size: large" align="right">
Userid</td>
<td style="font-size: large">
<asp:TextBox ID="txtuid" runat="server"></asp:TextBox>
</td>
<td style="font-size: large" align="right">
Password</td>
<td align="left">
<asp:TextBox ID="txtpwd" runat="server"
TextMode="Password"></asp:TextBox>

</td>
</tr>
<tr>
<td style="font-size: large">
&nbsp;</td>
<td style="font-size: large">
&nbsp;</td>
<td style="font-size: large">
Date</td>
<td align="left">
<asp:TextBox ID="txtdate" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">
<asp:Button ID="btnsubmit" runat="server" Text="Submit"
onclick="btnsubmit_Click" />
</td>
<td align="right">
&nbsp;</td>
<td align="right">
&nbsp;</td>
<td>
<asp:Label ID="lblsubmit" runat="server"
Text="submit"></asp:Label>
</td>
</tr>
</table>
</asp:Content>

Topperlisted.apx
<%@ Page Language="C#" MasterPageFile="~/Home1.Master" AutoEventWireup="true"
CodeBehind="Topperlisted.aspx.cs" Inherits="FINALONLINETESTPORTAL.WebForm5"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
</asp:Content>

Web.config
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions"
type="System.Web.Configuration.SystemWebExtensionsSectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35">

<sectionGroup name="scripting"
type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler"
type="System.Web.Configuration.ScriptingScriptResourceHandlerSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices"
type="System.Web.Configuration.ScriptingWebServicesSectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization"
type="System.Web.Configuration.ScriptingJsonSerializationSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="Everywhere"/>
<section name="profileService"
type="System.Web.Configuration.ScriptingProfileServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
<section name="authenticationService"
type="System.Web.Configuration.ScriptingAuthenticationServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
<section name="roleService"
type="System.Web.Configuration.ScriptingRoleServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings/>
<connectionStrings/>
<system.web>
<!-Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>

<!-The <authentication> section enables configuration


of the security authentication mode used by
ASP.NET to identify an incoming user.
-->

<authentication mode="Windows"/>
<!-The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI"
assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp"
namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule"
type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs"
warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>

</system.codedom>
<!-The system.webServer section is required for running ASP.NET AJAX
under Internet
Information Services 7.0. It is not necessary for previous version of
IIS.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler"
type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx"
preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*"
path="*_AppService.axd" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode"
verb="GET,HEAD" path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions"
publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0"
newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design"
publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0"
newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

Admin

Addstaff.apx

<%@ Page Language="C#" MasterPageFile="~/Head.Master" AutoEventWireup="true"


CodeBehind="WebForm1.aspx.cs"
Inherits="Taslima_Nasrin_ONLINE_JOB_PORTAL.WebForm1" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
</asp:Content>

Admin.master

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="ADMIN.master.cs"


Inherits="FINALONLINETESTPORTAL.Administrator.ADMIN" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Admin section</title>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style1
{
width: 100%;
border: 3px solid #c0c0c0;
}

#menu1 ul
{
margin: 0px;
padding: 0px;
height: 50px;
width: 100%;
background-color:black ;
}
#menu1 ul li
{
list-style-type: none;
float: left;
height: 50px;
margin: 0px;
padding: 0px;
}
#menu1 ul li a

display: block;
text-decoration: none;
line-height: 20px;
padding: 15px 10px;
color: white;
font-family: Iskoola Pota;
font-weight: bold;
border-right:solid 2px red;

}
#menu1 ul li ul
{
display: none;
width: 150px;
height: auto;
position:relative;
z-index:1000;
}
#menu1 ul li:hover ul
{
display: block;
height:auto;

}
#menu1 ul li ul li
{
height:50px;
background-color:Teal;
width:150px;
}
#menu1 ul li a:hover
{
background:white;
color: Black;
}

#menu1 ul
{
margin: 0px;
padding: 0px;
height: 50px;
width: 100%;
background-color:black ;
}
#menu1 ul li
{
list-style-type: none;
float: left;
height: 50px;
margin: 0px;
padding: 0px;
}
#menu1 ul li a

display: block;
text-decoration: none;
line-height: 20px;
padding: 15px 10px;
color: white;
font-family: Iskoola Pota;
font-weight: bold;
border-right:solid 2px red;

}
#menu1 ul li ul
{
display: none;
width: 150px;
height: auto;
position:relative;
z-index:1000;
}
#menu1 ul li:hover ul
{
display: block;
height:auto;

}
#menu1 ul li ul li
{
height:50px;
background-color:Teal;
width:250px;
}
#menu1 ul li a:hover
{
background:white;
color: Black;
}
</style>
</head>
<body >
<form id="form1" runat="server">
<div>
</div>
<table cellpadding="2" class="style1" style="border: medium solid
#000000">
<tr>
<td width="50" bgcolor="Black">
&nbsp;
</td>
<td style="border-style: solid; border-width: inherit; bordercolor: #000000">
<table cellpadding="2" class="style1">
<tr>
<td style="background-color: #000000;" height="70">
<table cellpadding="2" class="style1">
<tr style="height: 70px">

<td height="60" width="150" style="border:


medium solid #330000; height: 70px;">
&nbsp;<img alt="TXT-URL"
src="image/dslogo.png" style="width: 100px; height: 70px" /></td>
<td align="center" height="60"
style="border-top-style: solid;
border-bottom-style: solid; border-top-width: thin; border-bottom-width: thin;
border-color: #002B00; font-size: 20px; font-weight: bold; font-style: italic;
color: #FFFFFF;">
<img alt="txt-url" src="image/slide1.png"
style="width: auto; height: 70px" /></td>
<td align="center" height="60" width="150"
style="border: medium solid #330000">
<asp:Button ID="btnlogout"
runat="server" Text="logout" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="60" color="pink" id="menu1"
bgcolor="#996633"
style="border: medium solid #2B0015">
<ul>
<li><a href="Home.aspx">Home </a></li>
<li><a href="editStudentSection.aspx">Edit
</a></li>
<li><a href="#">Add</a>
<ul>
<li><a href="Addstaff.aspx">Add Staff
</a></li>
</ul>
</li>
</a></li>

Student</a></li>
Question</a></li>
Answer</a></li>
</a></li>

<li><a href="ViewResult.aspx">ViewResult
<li><a href="#">Report </a>
<ul>
<li><a href="allstaff.aspx">All
Faculty </a></li>
<li><a href="allstudent.aspx">All Registered
<li><a href="allquestion.aspx">All Uploaded
<li><a href="allanswer.aspx">All Uploaded
<li><a href="testreport.aspx">Test Report
</ul>

</li>

History</a>

<li><a href="TestHistory.aspx">Test

</li>
<li><a
href="Uploadnotice.aspx">Uploadnotice</a></li>
</ul>
</td>
</tr>
<tr>
<td height="300" bgcolor="#538CC6" style="border:
medium solid #2B0015">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
<p>
&nbsp;</p>
</asp:ContentPlaceHolder>
</td>
</tr>
<tr>
<td height="50" bgcolor="Black"
style="border: medium solid #2B0015; color:
#FFFFFF;">
&nbsp;<marque>Copyreight&nbsp; @
2015&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;
Desigend&nbsp;&nbsp; and&nbsp;&nbsp;
developed&nbsp;&nbsp; by&nbsp; Team&nbsp;
H.</marque>
</td>
</tr>
</table>
</td>
<td width="50" bgcolor="Black">
&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

Allanswer.apx
<%@ Page Language="C#" MasterPageFile="~/Administrator/ADMIN.Master"
AutoEventWireup="true" CodeBehind="allanswer.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Administrator.WebForm8" Title="Untitled Page"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<asp:GridView ID="GridView1" runat="server"
onselectedindexchanged="GridView1_SelectedIndexChanged">

</asp:GridView>
</asp:Content>

Allquestion.apx
<%@ Page Language="C#" MasterPageFile="~/Administrator/ADMIN.Master"
AutoEventWireup="true" CodeBehind="allquestion.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Administrator.WebForm4" Title="Untitled Page"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<asp:GridView ID="GridView1" runat="server"
onselectedindexchanged="GridView1_SelectedIndexChanged">
</asp:GridView>
</asp:Content>

Allstaff.apx
<%@ Page Language="C#" MasterPageFile="~/Administrator/ADMIN.Master"
AutoEventWireup="true" CodeBehind="allstaff.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Administrator.allstaff" Title="Untitled Page"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<asp:GridView ID="GridView1" runat="server"
onselectedindexchanged="GridView1_SelectedIndexChanged">
</asp:GridView>
</asp:Content>

Allstudent.apx
<%@ Page Language="C#" MasterPageFile="~/Administrator/ADMIN.Master"
AutoEventWireup="true" CodeBehind="allstudent.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Administrator.WebForm2" Title="Untitled Page"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<asp:GridView ID="GridView1" runat="server"
onselectedindexchanged="GridView1_SelectedIndexChanged">
</asp:GridView>
</asp:Content>

editStudentSection.aspx

<%@ Page Language="C#" MasterPageFile="~/Administrator/ADMIN.Master"


AutoEventWireup="true" CodeBehind="editStudentSection.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Administrator.editStudentSection"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td style="margin-left: 40px">
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False" BackColor="White"
BorderColor="#3366CC" BorderStyle="None"
BorderWidth="1px" CellPadding="4" Width="459px"
AutoGenerateDeleteButton="True"
AutoGenerateEditButton="True" AutoGenerateSelectButton="True"
OnRowCancelingEdit="GridView1_RowCancelingEdit"
OnRowDeleting="GridView1_RowDeleting"
OnRowEditing="GridView1_RowEditing"
OnRowUpdating="GridView1_RowUpdating"
OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
<Columns>
<asp:TemplateField HeaderText="Name">
<EditItemTemplate>
<asp:TextBox ID="txtname" runat="server"
Text='<%#Bind("EnterName") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblname" runat="server"
Text='<%#Bind("EnterName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="FatherName">
<EditItemTemplate>
<asp:TextBox ID="txtFatherName"
runat="server" Text='<%#Bind("EnterYourFatherName") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblFatherName"
runat="server" Text='<%#Bind("EnterYourFatherName") %>'></asp:Label>
</ItemTemplate>

</asp:TemplateField>
<asp:TemplateField HeaderText="userId">
<ItemTemplate>
<asp:Label ID="lbluserId" runat="server"
Text='<%#Bind("userId") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Address">
<EditItemTemplate>
<asp:TextBox ID="txtAddress"
runat="server" Text='<%#Bind("Address") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblAddress" runat="server"
Text='<%#Bind("Address") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DOB">
<EditItemTemplate>
<asp:TextBox ID="txtDOB" runat="server"
Text='<%#Bind("DOB") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblDOB" runat="server"
Text='<%#Bind("DOB") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="MobileNo">
<EditItemTemplate>
<asp:TextBox ID="txtMobileNo"
runat="server" Text='<%#Bind("MobileNo") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblMobileNO" runat="server"
Text='<%#Bind("MobileNo") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="email">
<EditItemTemplate>
<asp:TextBox ID="txtemail" runat="server"
Text='<%#Bind("email") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblemail" runat="server"
Text='<%#Bind("email") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="StateName">
<EditItemTemplate>
<asp:TextBox ID="txtStateName"
runat="server" Text='<%#Bind("StateName") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblStateName"
runat="server" Text='<%#Bind("StateName") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DistrictName">
<EditItemTemplate>
<asp:TextBox ID="txtDistrictName"
runat="server" Text='<%#Bind("DistrictName") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblDistrictName"
runat="server" Text='<%#Bind("DistrictName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="ps">
<EditItemTemplate>
<asp:TextBox ID="txtps" runat="server"
Text='<%#Bind("ps") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblps" runat="server"
Text='<%#Bind("ps") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#99CCCC" ForeColor="#003399"
/>
<HeaderStyle BackColor="#003399" Font-Bold="True"
ForeColor="#CCCCFF" />
<PagerStyle BackColor="#99CCCC" ForeColor="#003399"
HorizontalAlign="Left" />
<RowStyle BackColor="White" ForeColor="#003399" />
<SelectedRowStyle BackColor="#009999" Font-Bold="True"
ForeColor="#CCFF99" />
</td>
</tr>
</table>
</asp:Content>

</asp:GridView>

Home.apx

<%@ Page Language="C#" MasterPageFile="~/Administrator/ADMIN.Master"


AutoEventWireup="true" CodeBehind="Home.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Administrator.Home" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
</asp:Content>

Testhistoty.apx

<%@ Page Language="C#" MasterPageFile="~/Administrator/ADMIN.Master"


AutoEventWireup="true" CodeBehind="TestHistory.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Administrator.TestHistory" Title="Untitled
Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1">
<tr>
<td align="center">
<asp:Label ID="lblselectclass" runat="server" Text="Select
Class"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="ddlselectclass" runat="server"
onselectedindexchanged="ddlselectclass_SelectedIndexChanged" Height="17px"
Width="122px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center">
<asp:Label ID="lblselectsubject" runat="server" Text="Select
Subject"></asp:Label>
&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="ddlselectsubject" runat="server"
onselectedindexchanged="DropDownList2_SelectedIndexChanged"
style="height: 22px" Height="29px" Width="125px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center">
<asp:Label ID="lblexamid" runat="server" Text="Exam
Id"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="ddlexamid" runat="server"
onselectedindexchanged="ddlexamid_SelectedIndexChanged"
Height="16px"
Width="117px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="btnfind" runat="server"
onclick="btnfind_Click" Text="find"
Width="87px" />
</td>
</tr>
<tr>

<td align="center">
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</td>
</tr>
</table>
</asp:Content>

Testreport.apx
<%@ Page Language="C#" MasterPageFile="~/Administrator/ADMIN.Master"
AutoEventWireup="true" CodeBehind="testreport.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Administrator.testreport" Title="Untitled
Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<asp:GridView ID="GridView1" runat="server"
onselectedindexchanged="GridView1_SelectedIndexChanged">
</asp:GridView>
</asp:Content>

Uploadimage.apx
<%@ Page Language="C#" MasterPageFile="~/Administrator/ADMIN.Master"
AutoEventWireup="true" CodeBehind="Uploadimage.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Administrator.WebForm6" Title="Untitled Page"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
</asp:Content>

Uploadnoticee.apx
<%@ Page Language="C#" MasterPageFile="~/Administrator/ADMIN.Master"
AutoEventWireup="true" CodeBehind="Uploadnotice.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Administrator.WebForm7" Title="Untitled Page"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.style2
{
width: 961px;
text-align: left;
}
.style3
{

width: 468px;
text-align: right;
}
.style4
{
width: 961px;
text-align: left;
}
.style5
{
width: 468px;
text-align: left;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1" align="center"
style="height: 196px; width: 70%; margin-left: 277px; margin-bottom:
0px">
<tr>
<td class="style3">
<asp:Label ID="lblenterheadingname" runat="server" Text="Enter
heading Name"></asp:Label>
</td>
<td class="style4">
<asp:TextBox ID="txtenterheadingname" runat="server"
Width="196px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style3">
Enter date</td>
<td class="style4">
<asp:TextBox ID="txtdate" runat="server"
Width="196px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style3">
<asp:Label ID="lblenterdiscriptionname" runat="server"
Text="Enter discription Name"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td class="style4">
<asp:TextBox ID="txtenterdiscriptionname" runat="server"
Height="104px"
TextMode="MultiLine" Width="312px"></asp:TextBox>
</td>
</tr>
<tr>
<td align="center" class="style5">
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;

<asp:Label ID="lblupdate" runat="server"


Text="Update"></asp:Label>
</td>
<td align="center" class="style2">
<asp:Button ID="btnfind" runat="server" onclick="btnfind_Click"
Text="Upload Notice" style="text-align: left" Width="156px" />
</td>
</tr>
</table>
</asp:Content>

Viewresult.apx
<%@ Page Language="C#" MasterPageFile="~/Administrator/ADMIN.Master"
AutoEventWireup="true" CodeBehind="ViewResult.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Administrator.WebForm3" Title="Untitled Page"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1">
<tr>
<td>
<table cellpadding="2" class="style1">
<tr align="center">
<td style="font-size: large">
<asp:Label ID="lbldate" runat="server"
Text="Select date"></asp:Label>
</td>
<td>
<asp:DropDownList ID="DropDownList1"
runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>6</asp:ListItem>
<asp:ListItem>7</asp:ListItem>
<asp:ListItem>8</asp:ListItem>
<asp:ListItem>9</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="DropDownList2"
runat="server">
<asp:ListItem>jan</asp:ListItem>
<asp:ListItem>feb</asp:ListItem>
<asp:ListItem>march</asp:ListItem>
<asp:ListItem>may</asp:ListItem>
<asp:ListItem>june</asp:ListItem>
<asp:ListItem>july</asp:ListItem>
<asp:ListItem></asp:ListItem>

&nbsp;
runat="server">

</asp:DropDownList>
<asp:DropDownList ID="DropDownList3"

<asp:ListItem>1990</asp:ListItem>
<asp:ListItem>1992</asp:ListItem>
<asp:ListItem>1993</asp:ListItem>
<asp:ListItem>1994</asp:ListItem>
<asp:ListItem>1995</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellpadding="2" class="style1">
<tr align="center">
<td style="font-size: large">
<asp:Label ID="lblselectclass" runat="server"
Text="Select Class"></asp:Label>
</td>
<td>
<asp:DropDownList ID="DropDownList4"
runat="server">
<asp:ListItem>BCA</asp:ListItem>
<asp:ListItem></asp:ListItem>
<asp:ListItem>BBA</asp:ListItem>
<asp:ListItem>MBA</asp:ListItem>
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellpadding="2" class="style1">
<tr align="center">
<td style="font-size: large">
<asp:Label ID="lblselectsubject" runat="server"
Text="Select Subject"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">

<asp:Button ID="btnfind" runat="server" Text="Find"


onclick="btnfind_Click" />
</td>
</tr>
<tr>
<td align="center" height="200">
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False"
CellPadding="4" ForeColor="#333333" GridLines="None">
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
<Columns>
<asp:TemplateField HeaderText="Examid">
<EditItemTemplate>
<asp:TextBox ID="txtExamid" runat="server"
Text='<%#Bind("Examid") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblExamid" runat="server"
Text='<%#Bind("Examid") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Qid">
<EditItemTemplate>
<asp:TextBox ID="txtQid" runat="server"
Text='<%#Bind("Qid") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblQid" runat="server" Text='<
%#Bind("Qid") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Ans">
<EditItemTemplate>
<asp:TextBox ID="txtAns" runat="server"
Text='<%#Bind("Ans") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblAns" runat="server" Text='<
%#Bind("Ans") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#990000" Font-Bold="True"
ForeColor="White" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333"
HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True"
ForeColor="Navy" />
<HeaderStyle BackColor="#990000" Font-Bold="True"
ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</td>
</tr>
<tr>
<td>
&nbsp;</td>

</tr>
</table>
</asp:Content>

Faculty
AllUploadAnswer2.aspx
<%@ Page Language="C#" MasterPageFile="~/Faculty/FacultyDesign.Master"
AutoEventWireup="true" CodeBehind="AllUploadAnswer2.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Faculty.WebForm6" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1">
<tr>
<td align="center">
<asp:Label ID="lblSelectClass" runat="server"
Text="SelectClass"></asp:Label>
<asp:DropDownList ID="ddlselectclass" runat="server"
AutoPostBack="True"
Height="20px"
onselectedindexchanged="ddlselectclass_SelectedIndexChanged"
Width="200px">
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center">
<asp:Label ID="lblSelectSubject" runat="server"
Text="SelectSubject"></asp:Label>
<asp:DropDownList ID="ddlselectsubject" runat="server"
onselectedindexchanged="ddlselectsubject_SelectedIndexChanged"
Height="20px" Width="200px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center">
<asp:Button ID="btnfind" runat="server"
onclick="btnfind_Click" Text="find"
Height="20px" Width="100px" />
</td>
</tr>
<tr>
<td align="center">
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</td>
</tr>
</table>
</asp:Content>

AllUploadqQuestion.aspx

<%@ Page Language="C#" MasterPageFile="~/Faculty/FacultyDesign.Master"


AutoEventWireup="true"
CodeBehind="AllUploadqQuestion.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Faculty.WebForm1"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1">
<tr>
<td align="center" height="50">
<asp:Label ID="lblselectclass" runat="server" Text="Select
Class"></asp:Label>
&nbsp;:-&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="ddlselectclass" runat="server"
AutoPostBack="True" Height="20px"
OnSelectedIndexChanged="ddlselectclass_SelectedIndexChanged" Width="131px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center" height="50">
<asp:Label ID="lblselectsubject" runat="server"
Text="selectsubject"></asp:Label>
&nbsp;:-&nbsp;&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="ddlselectsubject" runat="server"
Height="20px" OnSelectedIndexChanged="ddlselectsubject_SelectedIndexChanged"
Width="138px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center" height="50">
<asp:Button ID="btnfind" runat="server"
OnClick="Button1_Click" Text="Find" Width="68px" />
</td>
</tr>
<tr>
<td align="center">
<asp:GridView ID="GridView1" runat="server"
OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
</asp:GridView>
</td>
</tr>
<tr>
<td>
&nbsp;

</td>
</tr>
</table>
</asp:Content>

Class.apx

<%@ Page Language="C#" MasterPageFile="~/Faculty/FacultyDesign.Master"


AutoEventWireup="true" CodeBehind="Class.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Faculty.WebForm2" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1" width="50">
<tr>
<td align="center" style="font-size: large">
<asp:Label ID="lblenterclass" runat="server" Text="Enter
Class"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtenterclass" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
<asp:Button ID="btnadd0" runat="server" Text="ADD"
onclick="btnadd_Click" />
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td align="left">
<asp:Label ID="lbladd" runat="server" Text="Add"></asp:Label>
</td>
</tr>
</table>
</asp:Content>

Home.apx
<%@ Page Language="C#" MasterPageFile="~/Faculty/FacultyDesign.Master"
AutoEventWireup="true" CodeBehind="Home.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Faculty.Home" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;
Welcome to Faculty Secssion</p>
</asp:Content>

Subject.apx
<%@ Page Language="C#" MasterPageFile="~/Faculty/FacultyDesign.Master"
AutoEventWireup="true" CodeBehind="Subject.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Faculty.WebForm3" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1">
<tr>
<td align="center" style="font-size: large">
<asp:Label ID="lblselectclass" runat="server" Text="Select
Class"></asp:Label>
</td>
<td align="left">
<asp:DropDownList ID="ddlselectclass" runat="server">
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
<asp:ListItem>BCA</asp:ListItem>
<asp:ListItem>BBA</asp:ListItem>
<asp:ListItem>MCA</asp:ListItem>
<asp:ListItem>MBA</asp:ListItem>
<asp:ListItem>BSCIT</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center" style="font-size: large">
<asp:Label ID="lblentersubject" runat="server" Text="Enter
Subject"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtentersubject"
runat="server"></asp:TextBox>
</td>
</tr>

<tr>

<td>
&nbsp;</td>

<td>

<asp:Button ID="btnadd0" runat="server" Text="Add"


onclick="btnadd_Click1" />
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td align="left" style="font-size: xx-large">
<asp:Label ID="lbladd" runat="server" Text="Add"></asp:Label>
</td>
</tr>
</table>
</asp:Content>

Testhistory.apx
<%@ Page Language="C#" MasterPageFile="~/Faculty/FacultyDesign.Master"
AutoEventWireup="true" CodeBehind="FStudentHistory.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Faculty.WebForm7" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1">
<tr>
<td align="center">
<asp:Label ID="lblselectclass" runat="server" Text="Select
Class"></asp:Label>
&nbsp;&nbsp;
<asp:DropDownList ID="ddlselectclass" runat="server"
onselectedindexchanged="ddlselectclass_SelectedIndexChanged">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center">
<asp:Label ID="lblselectsubject" runat="server" Text="Select
Subject"></asp:Label>
&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="ddlselectsubject" runat="server"
onselectedindexchanged="DropDownList2_SelectedIndexChanged"
style="height: 22px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center">

<asp:Label ID="lblexamid" runat="server" Text="Exam


Id"></asp:Label>
&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="ddlexamid" runat="server"
onselectedindexchanged="ddlexamid_SelectedIndexChanged">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center">
<asp:Button ID="btnfind" runat="server"
onclick="btnfind_Click" Text="find"
Width="55px" />
</td>
</tr>
<tr>
<td align="center">
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</td>
</tr>
</table>
</asp:Content>

Uploadanswer.apx
<%@ Page Language="C#" MasterPageFile="~/Faculty/FacultyDesign.Master"
AutoEventWireup="true" CodeBehind="UploadAnswer.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Faculty.WebForm5" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.style2
{
text-align: center;
}
.style3
{
text-align: left;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1" align="center" style="width: 62%">
<tr>
<td style="font-size: large" class="style2" colspan="2">
Kindly Fill Following Details very carefully</td>
</tr>
<tr>
<td style="font-size: large" class="style2">
<asp:Label ID="lblselectclass" runat="server" Text="Select
Class"></asp:Label>
</td>
<td class="style3">

Height="23px"

<asp:DropDownList ID="ddlselectclass" runat="server"


Width="135px" AutoPostBack="True"

onselectedindexchanged="ddlselectclass_SelectedIndexChanged">
<asp:ListItem>MCA</asp:ListItem>
<asp:ListItem>MBA</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="font-size: large" class="style2">
<asp:Label ID="lblselectsubject" runat="server" Text="Select
Subject"></asp:Label>
</td>
<td class="style3">
<asp:DropDownList ID="ddlselectsubject" runat="server"
Height="23px"
Width="133px" AutoPostBack="True"
onselectedindexchanged="ddlselectsubject_SelectedIndexChanged">
<asp:ListItem>C</asp:ListItem>
<asp:ListItem>c++</asp:ListItem>
<asp:ListItem>VB</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="font-size: large" class="style2">
ExamId</td>
<td class="style3">
<asp:DropDownList ID="ddlexamid" runat="server" Height="26px"
Width="133px"
AutoPostBack="True"
onselectedindexchanged="ddlexamid_SelectedIndexChanged">
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="font-size: large" class="style2">
<asp:Label ID="lblselectquestion" runat="server" Text="Select
QuestionID"></asp:Label>
</td>
<td class="style3">
<asp:DropDownList ID="ddlselectquestionid" runat="server"
AutoPostBack="True"
onselectedindexchanged="ddlselectquestionid_SelectedIndexChanged"
Height="24px" Width="131px">
</asp:DropDownList>
</td>

</tr>
<tr>
<td style="font-size: large" class="style2">
Question Details are:-</td>
<td class="style3">
<asp:TextBox ID="txtquestionname" runat="server" Height="58px"
Width="259px"></asp:TextBox>
</td>
</tr>
<tr>
<td style="font-size: large" class="style2">
<asp:Label ID="lblselectans" runat="server" Text="Select
Ans"></asp:Label>
</td>
<td class="style3">
<asp:DropDownList ID="ddlanswer" runat="server" Height="23px"
Width="109px">
<asp:ListItem>A</asp:ListItem>
<asp:ListItem>B</asp:ListItem>
<asp:ListItem>C</asp:ListItem>
<asp:ListItem>D</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
<asp:Button ID="btnadd0" runat="server"
onclick="Button1_Click" Text="Add"
Width="116px" />
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td align="center">
<asp:Label ID="lbladd" runat="server" Text="ADD"></asp:Label>
</td>
</tr>
</table>
</asp:Content>

Uploadquestion.apx
<%@ Page Language="C#" MasterPageFile="~/Faculty/FacultyDesign.Master"
AutoEventWireup="true" CodeBehind="UploadQuestion.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Faculty.WebForm4" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1" align="center" border="1"
style="width: 52%">
<tr>

<td align="center" style="font-size: large">


Exam id</td>
<td align="left">
<asp:TextBox ID="txtexamid" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="center" style="font-size: large">
<asp:Label ID="lblselectclass" runat="server" Text="Select
Class"></asp:Label>
</td>
<td align="left">
<asp:DropDownList ID="ddlselectclass" runat="server"
Height="33px"
Width="141px" AutoPostBack="True"
onselectedindexchanged="ddlselectclass_SelectedIndexChanged">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center" style="font-size: large">
<asp:Label ID="lblselectsubject" runat="server" Text="
Subject"></asp:Label>
</td>
<td align="left">
<asp:DropDownList ID="ddlselectsubject" runat="server"
Height="23px"
Width="142px"

Select

onselectedindexchanged="ddlselectsubject_SelectedIndexChanged">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center" style="font-size: large">
Enter Chapter Name</td>
<td align="left">
<asp:TextBox ID="txtexamname" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="center" style="font-size: large">
<asp:Label ID="lblenterquestion" runat="server" Text="Enter
question"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtenterquestion" runat="server"
TextMode="MultiLine"
Height="72px" Width="201px"></asp:TextBox>
</td>
</tr>
<tr>
<td align="center" style="font-size: large">

<asp:Label ID="lblans1" runat="server" Text="Enter


Ans1"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtans1" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="center" style="font-size: large">
<asp:Label ID="lblans2" runat="server"
Text="Ans2"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtans2" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="center" style="font-size: large">
<asp:Label ID="lblans3" runat="server"
Text="Ans3"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtans3" runat="server"></asp:TextBox>
</td>
</tr>
<tr align="center">
<td style="font-size: large">
<asp:Label ID="lblans4" runat="server"
Text="Ans4"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtans4" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lbladd" runat="server" Text="add"></asp:Label>
</td>
<td align="left">
<asp:Button ID="Button1" runat="server" Text="Add"
onclick="Button1_Click" />
</td>
</tr>
</table>
</asp:Content>

Student
Finalsubmit.apx
<%@ Page Language="C#" MasterPageFile="~/Student/StudentDesign.Master"
AutoEventWireup="true" CodeBehind="FinalSubmit.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Student.WebForm4" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1">
<tr>
<td align="center" style="font-size: large">
Your&nbsp;&nbsp; Result</td>
</tr>
<tr>
<td align="center" height="200">
<asp:GridView ID="GridView1" runat="server" BackColor="White"
BorderColor="#999999" BorderStyle="Solid"
BorderWidth="1px" CellPadding="3"
ForeColor="Black" GridLines="Vertical"
onselectedindexchanged="GridView1_SelectedIndexChanged">
<FooterStyle BackColor="#CCCCCC" />
<PagerStyle BackColor="#999999" ForeColor="Black"
HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#000099" Font-Bold="True"
ForeColor="White" />
<HeaderStyle BackColor="Black" Font-Bold="True"
ForeColor="White" />
<AlternatingRowStyle BackColor="#CCCCCC" />
</asp:GridView>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
</tr>
</table>
</asp:Content>

Home.apx
<%@ Page Language="C#" MasterPageFile="~/Student/StudentDesign.Master"
AutoEventWireup="true" CodeBehind="Home.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Student.Home" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;
Welcome to Student Secssion</p>
</asp:Content>

Questionname.apx
<%@ Page Language="C#" MasterPageFile="~/Student/StudentDesign.Master"
AutoEventWireup="true" CodeBehind="QuestionName.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Student.WebForm3" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1">
<tr>
<td align="center" style="font-size: large">
1.Question&nbsp; Name</td>
</tr>
<tr>
<td>
<table cellpadding="2" class="style1">
<tr>
<td align="center">
A.<asp:TextBox ID="txta"
runat="server"></asp:TextBox>
</td>
<td align="center">
B.<asp:TextBox ID="txtb"
runat="server"></asp:TextBox>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellpadding="2" class="style1">
<tr>
<td align="center">
C.<asp:TextBox ID="txtc"
runat="server"></asp:TextBox>
</td>
<td align="center">
D.<asp:TextBox ID="txtd"
runat="server"></asp:TextBox>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<asp:Label ID="lbladd" runat="server" Text="add"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="btnnext0" runat="server" Text="Next"
onclick="btnnext_Click" />
</td>

</tr>
</table>
</asp:Content>

Registration.apx
<%@ Page Language="C#" MasterPageFile="~/Student/StudentDesign.Master"
AutoEventWireup="true" CodeBehind="Registration.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Student.WebForm1" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"


runat="server">
</asp:Content>

Startyourtest.apx
<%@ Page Language="C#" MasterPageFile="~/Student/StudentDesign.Master"
AutoEventWireup="true" CodeBehind="StartYourTest.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Student.StartYourTest" Title="Untitled Page"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.style2
{
width: 106px;
}
.style3
{
text-align: left;
}
.style4
{
width: 823px;
text-align: center;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table>
<tr>
<td class="style4">
&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label1" runat="server"
Text="Student Name:-"></asp:Label>
<asp:Label ID="lblname" runat="server"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label5" runat="server" Text="Selected Class:-"></asp:Label>

<asp:Label ID="lblselectedclass" runat="server"></asp:Label>


</td>
<td valign="top">
&nbsp;</td>
</tr>
<tr>
<td class="style4">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label4" runat="server" Text="Your Userid:-"></asp:Label>
&nbsp;
<asp:Label ID="lbluid" runat="server"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<asp:Label ID="Label6" runat="server" Text="Selected
Subject:-"></asp:Label>
<asp:Label ID="lblselectedsubject" runat="server"></asp:Label>
</td>
<td valign="top">
&nbsp;</td>
</tr>
<tr>
<td class="style4">
Selected Chapter:-<asp:Label ID="lblexamname" runat="server"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Selected Level:-<asp:Label ID="lblexamlevel"
runat="server"></asp:Label>
</td>
<td valign="top">
&nbsp;</td>
</tr>
<tr>
<td class="style4">
<asp:Label ID="lblmessage" runat="server"></asp:Label>
</td>
<td valign="top">

&nbsp;</td>
</tr>
<tr>
<td class="style4">
<asp:Panel ID="Panel1" runat="server" style="text-align: center"
Width="870px">
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False"
onselectedindexchanged="GridView1_SelectedIndexChanged"
BackColor="White"
BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px"
CellPadding="4"
Width="632px">
<RowStyle BackColor="White" ForeColor="#330099" />
<Columns>
<asp:TemplateField HeaderText="Question Details">
<ItemTemplate>
<table cellpadding="2" class="style1">
<tr>
<td class="style3" colspan="2">
Question Id:-<asp:Label ID="lblqid" runat="server"
Text='<%# Bind("QuestionId") %>'></asp:Label>
</td>
</tr>
<tr>
<td class="style3" colspan="2">
Q.<asp:Label ID="lblquestion"
runat="server" Text='<%#Bind("Question")%>'></asp:Label>
</td>
</tr>
<tr>
<td class="style2">
<asp:RadioButton ID="rdA" runat="server" Text="A"
AutoPostBack="True"
GroupName="a" oncheckedchanged="rdA_CheckedChanged" />
</td>
<td class="style3">
<asp:Label ID="lblansA" runat="server" Text='<
%#Bind("EnterAns1")%>'></asp:Label>
</td>
</tr>
<tr>
<td class="style2">
<asp:RadioButton ID="rdB" runat="server" Text="B"
AutoPostBack="True"
GroupName="a" oncheckedchanged="rdB_CheckedChanged" />
</td>
<td class="style3">
<asp:Label ID="lblansB" runat="server" Text='<
%#Bind("EnterAns2")%>'></asp:Label>
</td>
</tr>
<tr>
<td class="style2">

AutoPostBack="True"

<asp:RadioButton ID="rdC" runat="server" Text="C"

GroupName="a" oncheckedchanged="rdC_CheckedChanged" />


</td>
<td class="style3">
<asp:Label ID="lblansC" runat="server" Text='<
%#Bind("EnterAns3")%>'></asp:Label>
</td>
</tr>
<tr>
<td class="style2">
<asp:RadioButton ID="rdD" runat="server" Text="D"
AutoPostBack="True"
GroupName="a" oncheckedchanged="rdD_CheckedChanged" />
</td>
<td class="style3">
<asp:Label ID="lblansD" runat="server" Text='<
%#Bind("EnterAns4")%>'></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
<PagerStyle BackColor="#FFFFCC" ForeColor="#330099"
HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True"
ForeColor="#663399" />
<HeaderStyle BackColor="#990000" Font-Bold="True"
ForeColor="#FFFFCC" />
</asp:GridView>

</asp:Panel>
</td>
<td valign="top">
<asp:GridView ID="GridView2" runat="server" CaptionAlign="Top"
CellPadding="4"
ForeColor="#333333" GridLines="None">
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333"
HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True"
ForeColor="Navy" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</td>
</tr>

<tr>
<td class="style4">
<asp:Button ID="btnsubmit" runat="server" onclick="btnsubmit_Click"
Text="Final Submit" />
</td>
<td valign="top">
&nbsp;</td>
</tr>
</table>
</asp:Content>

Studentdesign.master
<%@ Master Language="C#" AutoEventWireup="true"
CodeBehind="StudentDesign.master.cs"
Inherits="FINALONLINETESTPORTAL.Student.StudentDesign" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Student section</title>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style1
{
width: 100%;
border: 3px solid #c0c0c0;
}
#menu1
{
margin: 0px;
padding: 0px;
height: 60px;
width: 100%;
}
#menu1 ul
{
margin: 0px;
padding: 0px;
height: 60px;
width: 100%;
background-color: Black;

}
#menu1 ul li
{
list-style-type: none;
float: left;
height: 60px;
margin: 0px;
padding: 0px;
}
#menu1 ul li a
{
display: block;
text-decoration: none;
line-height: 30px;
padding: 15px 20px;
color: white;
font-family: @FangSong;
font-weight: bold;
border-right: solid 2px maroon;
}
#menu1 ul li ul
{
display: none;
width: 250px;
height: auto;
}
#menu1 ul li:hover ul
{
display: block;
}
#menu1 ul li ul li
{
height: 60px;
background-color: Teal;
width: 250px;
}
#menu1 ul li a:hover
{
background: pink;
color: Black;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
<table cellpadding="2" class="style1">
<tr>
<td bgcolor="Black" width="50">
&nbsp;
</td>
<td>
<table cellpadding="2" class="style1">
<tr>
<td bgcolor="#3366FF">
<table cellpadding="2" class="style1">

<tr>

<td height="70" width="200">


<img alt="txt-url"
src="../Administrator/image/dslogo.png"
style="width: 200px; height: 70px"
/></td>
<td align="center" height="70">
<img alt="txt-url"
src="../Administrator/image/slide1.png"
style="width: auto; height: 70px"
/><asp:Button ID="btnlogout" runat="server" Text="logout" />
</td>
<td align="center" height="70"
width="150">
<asp:Image ID="Image1" runat="server"
Height="100px" Width="100px" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="6color="pink" id="menu1"
bgcolor="#996633">
<ul>
<li><a href="Home.aspx"> Home</a></li>
<li><a href="TakeTest.aspx">TakeTest </a>
<li><a href="TestHistory.aspx">TestHistory</a></li>
<li><a
href="ViewStdProfile.aspx">ViewStdProfile</a></li>
</li>
</li>
<li><a href="Viewresult.aspx">View Result</a></li>
</ul>
</td>
</tr>
<tr>
<td height="300" bgcolor="#0456FF">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
<tr>
<td height="50" bgcolor="#000011" style="color:
#FFFFFF">
Copyright
2015.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;
Desigend and&nbsp; developed by&nbsp; Team&nbsp;
H;</td>
</tr>
</table>
</td>
<td bgcolor="Black" width="50">

&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

Taketest.apx
<%@ Page Language="C#" MasterPageFile="~/Student/StudentDesign.Master"
AutoEventWireup="true" CodeBehind="TakeTest.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Student.WebForm2" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.style2
{
height: 28px;
text-align: right;
}
.style3
{
text-align: left;
}
.style4
{
height: 28px;
text-align: left;
}
.style5
{
text-align: right;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1">
<tr>
<td style="font-size: large" class="style5">
You Are :-</td>
<td class="style3">
<asp:Label ID="lblname" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td style="font-size: large" class="style5">
<asp:Label ID="lblselect" runat="server" Text="Select
Date"></asp:Label>
</td>
<td class="style3">
<asp:DropDownList ID="ddlselectdate" runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>

<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>6</asp:ListItem>
<asp:ListItem>7</asp:ListItem>
<asp:ListItem>8</asp:ListItem>
<asp:ListItem>9</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
<asp:ListItem>13</asp:ListItem>
<asp:ListItem>14</asp:ListItem>
<asp:ListItem>15</asp:ListItem>
<asp:ListItem>16</asp:ListItem>
<asp:ListItem>17</asp:ListItem>
<asp:ListItem>18</asp:ListItem>
<asp:ListItem>19</asp:ListItem>
<asp:ListItem>20</asp:ListItem>
<asp:ListItem>21</asp:ListItem>
<asp:ListItem>22</asp:ListItem>
<asp:ListItem>23</asp:ListItem>
<asp:ListItem>24</asp:ListItem>
<asp:ListItem>25</asp:ListItem>
<asp:ListItem>25</asp:ListItem>
<asp:ListItem>26</asp:ListItem>
<asp:ListItem>27</asp:ListItem>
<asp:ListItem>28</asp:ListItem>
<asp:ListItem>29</asp:ListItem>
<asp:ListItem>30</asp:ListItem>
<asp:ListItem>31</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
&nbsp;
<asp:DropDownList ID="ddlselectmonht" runat="server">
<asp:ListItem>01</asp:ListItem>
<asp:ListItem>02</asp:ListItem>
<asp:ListItem>03</asp:ListItem>
<asp:ListItem>04</asp:ListItem>
<asp:ListItem>05</asp:ListItem>
<asp:ListItem>06</asp:ListItem>
<asp:ListItem>07</asp:ListItem>
<asp:ListItem>08</asp:ListItem>
<asp:ListItem>09</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
</asp:DropDownList>
&nbsp;
<asp:DropDownList ID="ddlselectyear" runat="server">
<asp:ListItem>2000</asp:ListItem>
<asp:ListItem>2016</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>

<td style="font-size: large" class="style2">


<asp:Label ID="lblselectclass" runat="server" Text="Select
Class"></asp:Label>
</td>
<td class="style4">
<asp:DropDownList ID="ddlselectclass" runat="server"
Height="16px"
Width="158px" AutoPostBack="True"
onselectedindexchanged="ddlselectclass_SelectedIndexChanged">
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="font-size: large" class="style5">
<asp:Label ID="lblselectsubject" runat="server" Text="Select
Subject"></asp:Label>
</td>
<td class="style3">
<asp:DropDownList ID="ddlselectsubject" runat="server"
Height="18px"
style="margin-left: 0px" Width="159px" AutoPostBack="True"
onselectedindexchanged="ddlselectsubject_SelectedIndexChanged">
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="text-align: right">
<b>Select Exam Name</b></td>
<td class="style3">
<asp:DropDownList ID="ddlexamname" runat="server"
Height="18px"
style="margin-left: 0px" Width="159px" AutoPostBack="True"
onselectedindexchanged="ddlexamname_SelectedIndexChanged">
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="text-align: right; font-weight: 700">
Select Exam level</td>
<td class="style3">
<asp:DropDownList ID="ddlexamlevel" runat="server"
Height="18px"
style="margin-left: 0px" Width="159px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td align="center" style="text-align: left">

<asp:Button ID="btnstart" runat="server" Text="Start"


onclick="btnstart_Click" Width="81px" />
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</asp:Content>

testcompleted.aspx
<%@ Page Language="C#" MasterPageFile="~/Student/StudentDesign.Master"
AutoEventWireup="true" CodeBehind="testcompleted.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Student.testcompleted" Title="Untitled Page"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<asp:Button ID="Button1" runat="server"
Text="Your Test has been Submitted Successfully.Click to generate
Result"
onclick="Button1_Click" Width="348px" />
<br />
<br />
<asp:GridView ID="GridView1" runat="server" BackColor="White"
ForeColor="#0000CC" Width="850px">
</asp:GridView>
</asp:Content>

Testhistory.apx
<%@ Page Language="C#" MasterPageFile="~/Student/StudentDesign.Master"
AutoEventWireup="true"
CodeBehind="Testhistory.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Student.Testhistory"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1">
<tr>
<td align="center">

<asp:Label ID="lblselectclass" runat="server" Text="Select


Class"></asp:Label>
&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="ddlselectclass" runat="server"
OnSelectedIndexChanged="ddlselectclass_SelectedIndexChanged"
AutoPostBack="True" Height="26px" Width="147px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center">
<asp:Label ID="ddlselectcl" runat="server" Text="Select
Subject"></asp:Label>
&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="ddlselectsubject" runat="server"
AutoPostBack="True"
Height="23px"
onselectedindexchanged="ddlselectsubject_SelectedIndexChanged"
Width="162px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center">
Select Exam ID<asp:DropDownList ID="ddlexamid" runat="server"
Height="23px"
onselectedindexchanged="ddlexamid_SelectedIndexChanged"
Width="156px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center">
&nbsp;&nbsp;&nbsp;
<asp:Button ID="btnfind" runat="server"
OnClick="btnfind_Click" Text="Find" />
&nbsp;
</td>
</tr>
<tr>
<td align="center">
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</td>
</tr>
</table>
</asp:Content>

Viewresults.apx
<%@ Page Language="C#" MasterPageFile="~/Student/StudentDesign.Master"
AutoEventWireup="true" CodeBehind="Viewresult.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Student.WebForm5" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<table cellpadding="2" class="style1">
<tr>

<td align="center">

<asp:Label ID="lblenteruid" runat="server" Text="Enter


Uid"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="txtuid" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="center">
<asp:Button ID="btnfind" runat="server" onclick="btnfind_Click"
Text="Find" />
</td>
<tr>
<td align="center">
<asp:GridView ID="GridView1" runat="server"
AutoGenerateSelectButton="True"
onselectedindexchanging="GridView1_SelectedIndexChanging"
AutoGenerateColumns="False"
onselectedindexchanged="GridView1_SelectedIndexChanged">
<Columns>
<asp:TemplateField HeaderText="userid">
<EditItemTemplate>
<asp:TextBox ID="txtuserid" runat="server" Text='<
%#Bind("userid") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lbluserid" runat="server" Text='<
%#Bind("userid") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="StudentName">
<EditItemTemplate>
<asp:TextBox ID="txtStudentName" runat="server"
Text='<%#Bind("StudentName") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblStudentName" runat="server"
Text='<%#Bind("StudentName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Class">
<EditItemTemplate>
<asp:TextBox ID="txtClass" runat="server" Text='<
%#Bind("Class") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblClass" runat="server" Text='<
%#Bind("Class") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Subject">
<EditItemTemplate>
<asp:TextBox ID="txtSubject" runat="server"
Text='<%#Bind("Subject") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblSubject" runat="server" Text='<
%#Bind("Subject") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Examname">
<EditItemTemplate>
<asp:TextBox ID="txtExamname" runat="server"
Text='<%#Bind("Examname") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblExamname" runat="server" Text='<
%#Bind("Examname") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Examid">
<EditItemTemplate>
<asp:TextBox ID="txtExamid" runat="server" Text='<
%#Bind("Examid") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblExamid" runat="server" Text='<
%#Bind("Examid") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="date">
<EditItemTemplate>
<asp:TextBox ID="txtdate" runat="server" Text='<
%#Bind("date") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lbldate" runat="server" Text='<
%#Bind("date") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="rowid">
<EditItemTemplate>
<asp:TextBox ID="txtrowid" runat="server" Text='<
%#Bind("rowid") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblrowid" runat="server" Text='<
%#Bind("rowid") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>

</tr>
</tr>
<tr>
<td align="center">
<br />
<br />
<asp:GridView ID="GridView2" runat="server"
onselectedindexchanging="GridView1_SelectedIndexChanging">
</asp:GridView>
</td>
</tr>
</table>
</asp:Content>

ViewStdProfile.aspx

<%@ Page Language="C#" MasterPageFile="~/Student/StudentDesign.Master"


AutoEventWireup="true" CodeBehind="ViewStdProfile.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Student.ViewStdProfile" Title="Untitled Page"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<asp:GridView ID="GridView1" runat="server"
onselectedindexchanged="GridView1_SelectedIndexChanged">
</asp:GridView>
</asp:Content>

Logic Code:Connection Class

using
using
using
using
using
using
using
using

System;
System.Data;
System.Configuration;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.HtmlControls;

using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace FINALONLINETESTPORTAL
{
public class onlinetest
{
public String pqr()
{
String path = @"Data Source = .\SQLEXPRESS;" + @"AttachDbFilename
= Databasename; Integrated Security = True; User Instance=True";
return path;
}
}
}

Default.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void admin_Authenticate(object sender, AuthenticateEventArgs
e)

{
onlinetest a = new onlinetest();

String xyz = a.pqr();


SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from Adminlogin
where userid='" + lgnadmin.UserName.ToString() + "' and Password = '" +
lgnadmin.Password.ToString() + "'", s);
DataSet ds = new DataSet();
da.Fill(ds, "Adminlogin");
DataTable dt = ds.Tables[0];
int rowcount = dt.Rows.Count;
if (rowcount == 1)
{
Response.Redirect("Administrator/Home.aspx");
}
else
{
lgnadmin.FailureText = "Wrong id and Password";
}
}
protected void lgnstudent_Authenticate(object sender,
AuthenticateEventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from
StudentRegistration where userId='"+lgnstudent.UserName.ToString()+"' and
pwd='"+lgnstudent.Password.ToString()+"'", s);
DataSet ds = new DataSet();
da.Fill(ds, "StudentRegistration");
DataTable dt = ds.Tables[0];
int rowcount = dt.Rows.Count;
if (rowcount == 1)
{
Session["uid"] = lgnstudent.UserName.ToString();
Session["student"] = lgnstudent.UserName.ToString();
Response.Redirect("Student/Home.aspx");
}
else
{

lgnstudent.FailureText = "Wrong id and Password";

protected void lgnfaculty_Authenticate(object sender,


AuthenticateEventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
string Faculty = "Faculty";
SqlDataAdapter da = new SqlDataAdapter("Select * from Alluser
where Userid= '" + lgnfaculty.UserName.ToString() + "' and Password='" +
lgnfaculty.Password.ToString() + "' and Type='" + Faculty + "'", s);

DataSet ds = new DataSet();


da.Fill(ds, "Alluser");
DataTable dt = ds.Tables[0];
int rowcount = dt.Rows.Count;
if (rowcount == 1)
{
Response.Redirect("Faculty/Home.aspx");
}
else
{
lgnfaculty.FailureText = "Wrong id and password";
}
}
}

}
Notification.asp.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL
{
public partial class Notification : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
find_all_notice();
}
private void find_all_notice()
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from
Noticetable", s);
DataSet ds = new DataSet();
da.Fill(ds, "Noticetable");
DataTable dt = ds.Tables[0];
GridView1.DataSource = ds;
GridView1.DataBind();
}

protected void GridView1_SelectedIndexChanged(object sender, EventArgs

e)

{
}

}
Result.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL
{
public partial class Result : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from examhed
where UserId='"+lbluserid.Text+"'",conn);
DataSet ds = new DataSet();
da.Fill(ds, "examhed");
DataTable dt = ds.Tables[0];
DataRow dr = dt.NewRow();

}
}

GridView1.DataSource = ds;
GridView1.DataBind();

Studentregistration.aspx.cs
using System;

using
using
using
using
using
using
using
using
using
using
using
using
using

System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;
System.IO;

namespace FINALONLINETESTPORTAL
{
public partial class Studentregistration: System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnsubmit_Click(object sender, EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from
StudentRegistration", conn);
DataSet ds = new DataSet();
da.Fill(ds, "Student");
DataTable dt = ds.Tables[0];
DataRow dr = dt.NewRow();
dr[0] = txtname0.Text;
dr[1] = txtfathername0.Text;
dr[2] = txtaddress0.Text;
dr[3] = ddlGender0.Text;
dr[4] = ddldate0.Text + "/" + ddlmonth0.Text + "/" +
ddlyear0.Text;
dr[5] = txtmobileno.Text;
dr[6] = txtemailid0.Text;
dr[7] = txtstudies.Text;
dr[8] = txtcollege0.Text;
dr[9] = uploadimage();//resume
dr[10] = txtcontryname0.Text;
dr[11] = txtstatename0.Text;
dr[12] = txtdstname.Text;
dr[13] = txtps.Text;
dr[14] = txtpo.Text;
dr[15] = txtpincode.Text;
dr[16] = txtuid.Text;
dr[17] = txtpwd.Text;
dr[18] = uploadestudentimage();
dr[19] = txtdate.Text;
dt.Rows.Add(dr);
SqlCommandBuilder cb = new SqlCommandBuilder(da);

da.Update(dt);
Session["name"] = txtname0.Text;
Session["uid"] = txtuid.Text;
Session["pwd"] = txtpwd.Text;
lblsubmit.Text = "Data has been submited";
Response.Redirect("Student_registration_slip.aspx");
}
private string uploadimage()
{
Boolean FileOK = false;
Boolean FileSaved = false;
int k = 0;
if (Filemypicture.HasFile)//if it is true means control has some
file

Session["WorkingImage"] = Filemypicture.FileName;
String FileExtension =
System.IO.Path.GetExtension(Session["WorkingImage"].ToString()).ToLower();
String[] allowedExtensions = { ".doc", ".docs",
".docsx",".png", ".jpeg", ".jpg", ".gif", ".htm" };
for (int i = 0; i < allowedExtensions.Length; i++)
{
k++;
if (FileExtension == allowedExtensions[i])
{
FileOK = true;
}
}
}
else
{
}
if (FileOK)
{
try
{
string paths = (Server.MapPath("ResumeFile")).ToString();
Filemypicture.SaveAs(paths + "/" +
Session["WorkingImage"]);
FileSaved = true;
}
catch (Exception ex)
{
FileSaved = false;
}
}
else
{
}
if (FileSaved)
{

//imgCropped.ImageUrl = "images2/" +
Session["WorkingImage"].ToString();
}
string dbfilePath;
string fileName =
Path.GetFileName(Session["WorkingImage"].ToString());
dbfilePath = @"~/ResumeFile/" + fileName;
return dbfilePath;

}
private string uploadestudentimage()
{
Boolean FileOK = false;
Boolean FileSaved = false;

int k = 0;
if (UploadImage.HasFile)//if it is true means control has some
file

Session["WorkingImage"] = UploadImage.FileName;
String FileExtension =
System.IO.Path.GetExtension(Session["WorkingImage"].ToString()).ToLower();
String[] allowedExtensions = { ".doc", ".docs", ".docsx",
".png", ".jpeg", ".jpg", ".gif", ".htm" };
for (int i = 0; i < allowedExtensions.Length; i++)
{
k++;
if (FileExtension == allowedExtensions[i])
{
FileOK = true;
}
}
}
else
{
}
if (FileOK)
{
try
{
string paths = (Server.MapPath("ourimges")).ToString();
UploadImage.SaveAs(paths + "/" + Session["WorkingImage"]);
FileSaved = true;
}
catch (Exception ex)
{
FileSaved = false;
}

}
else

{
}
if (FileSaved)
{
//imgCropped.ImageUrl = "images2/" +
Session["WorkingImage"].ToString();
}
string dbfilePath;
string fileName =
Path.GetFileName(Session["WorkingImage"].ToString());
dbfilePath = @"~/ourimges/" + fileName;
return dbfilePath;

}
protected void txtname_TextChanged(object sender, EventArgs e)
{
}
protected void txtmobileno_TextChanged(object sender, EventArgs e)
{
}

QuestionName.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Student
{
public partial class WebForm3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void btnnext_Click(object sender, EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from
questionname", conn);
DataSet ds = new DataSet();
da.Fill(ds, "questionname");
DataTable dt = ds.Tables[0];
DataRow dr = dt.NewRow();
dr[0] = txta.Text;
dr[1] = txtb.Text;
dr[2] = txtc.Text;
dr[3] = txtd.Text;
dt.Rows.Add(dr);
SqlCommandBuilder cb = new SqlCommandBuilder(da);
da.Update(dt);
lbladd.Text = "Data has been successfully added";
}
}
}

StartYourTest.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Student
{
public partial class StartYourTest : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)

if (!IsPostBack)
{
string selectedclass = Session["class"].ToString();
string selectedsubject = Session["subject"].ToString();
string name = Session["name"].ToString();
string userid = Session["uid"].ToString();

string examname=Session["examname"].ToString();
string examlevel=Session["examlevel"].ToString();
lblexamname.Text = examname;
lblexamlevel.Text = examlevel;
lblname.Text = name;
lblselectedclass.Text = selectedclass;
lblselectedsubject.Text = selectedsubject;
lbluid.Text = userid;
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from
Allquestion where Class='"+selectedclass+"' and Subject='"+selectedsubject+"'
", s);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
// rowcountttt = dt.Rows.Count;
GridView1.DataSource = ds;
GridView1.DataBind();
DataTable temptable = new DataTable();
temptable.Columns.Add("QuestionName");
temptable.Columns.Add("MyAnswer");
temptable.Columns.Add("Qid");
ViewState["answer"] = temptable;
}
}
e)

protected void GridView1_SelectedIndexChanged(object sender, EventArgs


{
}
protected void rdA_CheckedChanged(object sender, EventArgs e)
{
RadioButton rd = (RadioButton)sender;
GridViewRow row = (GridViewRow)rd.Parent.Parent;
RadioButton ans = (RadioButton)row.FindControl("rdA");
Label question=(Label)row.FindControl("lblquestion");
Label qid=(Label)row.FindControl("lblqid");
DataTable temptable=(DataTable)ViewState["answer"];

DataRow dr = temptable.NewRow();
dr[0] = question.Text;
dr[1] = ans.Text;
dr[2] = qid.Text;
temptable.Rows.Add(dr);
temptable.AcceptChanges();
GridView2.DataSource = temptable;
GridView2.DataBind();
}
protected void rdB_CheckedChanged(object sender, EventArgs e)
{
RadioButton rd = (RadioButton)sender;
GridViewRow row = (GridViewRow)rd.Parent.Parent;
RadioButton ans = (RadioButton)row.FindControl("rdB");
Label question = (Label)row.FindControl("lblquestion");
Label qid = (Label)row.FindControl("lblqid");
DataTable temptable = (DataTable)ViewState["answer"];
DataRow dr = temptable.NewRow();
dr[0] = question.Text;
dr[1] = ans.Text;
dr[2] = qid.Text;
temptable.Rows.Add(dr);
temptable.AcceptChanges();
GridView2.DataSource = temptable;
GridView2.DataBind();
}
protected void rdC_CheckedChanged(object sender, EventArgs e)
{
RadioButton rd = (RadioButton)sender;
GridViewRow row = (GridViewRow)rd.Parent.Parent;
RadioButton ans = (RadioButton)row.FindControl("rdC");
Label question = (Label)row.FindControl("lblquestion");
Label qid = (Label)row.FindControl("lblqid");
DataTable temptable = (DataTable)ViewState["answer"];
DataRow dr = temptable.NewRow();
dr[0] = question.Text;
dr[1] = ans.Text;
dr[2] = qid.Text;
temptable.Rows.Add(dr);
temptable.AcceptChanges();

GridView2.DataSource = temptable;
GridView2.DataBind();

protected void rdD_CheckedChanged(object sender, EventArgs e)


{
RadioButton rd = (RadioButton)sender;
GridViewRow row = (GridViewRow)rd.Parent.Parent;
RadioButton ans = (RadioButton)row.FindControl("rdD");
Label question = (Label)row.FindControl("lblquestion");

Label qid = (Label)row.FindControl("lblqid");


DataTable temptable = (DataTable)ViewState["answer"];
DataRow dr = temptable.NewRow();
dr[0] = question.Text;
dr[1] = ans.Text;
dr[2] = qid.Text;
temptable.Rows.Add(dr);
temptable.AcceptChanges();
GridView2.DataSource = temptable;
GridView2.DataBind();
}
protected void btnsubmit_Click(object sender, EventArgs e)
{
upload_details_in_examhead_table();
upload_details_in_givenanswer();
}

s);

private void upload_details_in_examhead_table()


{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from examhed",
DataSet ds = new DataSet();
da.Fill(ds, "examhed");
DataTable dt = ds.Tables[0];
DataRow dr = dt.NewRow();
dr[0] = lbluid.Text;
dr[1] = lblname.Text;
dr[2] = lblselectedclass.Text;
dr[3] = lblselectedsubject.Text;
dr[4] = lblexamname.Text;
dr[5] = lblexamlevel.Text;
dr[6]=Session["date"].ToString();
dt.Rows.Add(dr);
SqlCommandBuilder cb = new SqlCommandBuilder(da);
da.Update(dt);
}
private void upload_details_in_givenanswer()
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from giveanswer",

s);

DataSet ds = new DataSet();


da.Fill(ds, "giveanswer");
DataTable dt = ds.Tables[0];
int i;
string answer="NA";
int check = 0;
for (i = 0; i < GridView1.Rows.Count; i++)
{

RadioButton rdA =
(RadioButton)GridView1.Rows[i].FindControl("rdA");
RadioButton rdB =
(RadioButton)GridView1.Rows[i].FindControl("rdB");
RadioButton rdC =
(RadioButton)GridView1.Rows[i].FindControl("rdC");
RadioButton rdD =
(RadioButton)GridView1.Rows[i].FindControl("rdD");
if (rdA.Checked == true)
{
answer = rdA.Text;
}
if (rdB.Checked == true)
{
answer = rdB.Text;
}
if (rdC.Checked == true)
{
answer = rdC.Text;
}
if (rdD.Checked == true)
{
answer = rdD.Text;
}
DataRow dr = dt.NewRow();
Label Question =
(Label)GridView1.Rows[i].FindControl("lblquestion");
Label quid = (Label)GridView1.Rows[i].FindControl("lblqid");
dr[0] = Question.Text; ;
dr[1] = answer;
dr[2] = lblexamname.Text;
dr[3] = lblexamlevel.Text;
dr[4] = quid.Text;
dr[5] = lbluid.Text;
dt.Rows.Add(dr);
SqlCommandBuilder cb = new SqlCommandBuilder(da);
da.Update(dt);
check = check + 1;
}
if (check > 0)
{
Session["lblexamname"] = lblexamname.Text;
Session["lblexamlevel"] = lblexamlevel.Text;
Session["lbluid"] = lbluid.Text;
Session["lblexamlevel"] = lblexamlevel.Text;
prepare_result();
Response.Redirect("testcompleted.aspx");
}
else
{
lblmessage.Text = "Something has been wrong Try again.";
}
}
private void prepare_result()

onlinetest a = new onlinetest();


String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from giveanswer
where examid='"+lblexamlevel.Text+"'", s);
DataSet ds = new DataSet();
da.Fill(ds, "giveanswer");
DataTable dt = ds.Tables[0];
string qid, givenanswer,question;
int i = 0;
foreach (DataRow dr in dt.Rows)
{
qid = ds.Tables[0].Rows[i][4].ToString();
givenanswer = ds.Tables[0].Rows[i][1].ToString();
question = ds.Tables[0].Rows[i][0].ToString();
Upload_reult(qid, givenanswer,question);
i = i + 1;
}
}
private void Upload_reult(string qid, string givenanswer,string
question)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from Allanswer
where examid='"+lblexamlevel.Text+"' and Questionid='"+qid+"'", s);
DataSet ds = new DataSet();
da.Fill(ds, "giveanswer");
DataTable dt = ds.Tables[0];
int i = 0;
string ans,answerresult;
foreach (DataRow dr in dt.Rows)
{
ans = ds.Tables[0].Rows[i][3].ToString();
if (ans == givenanswer)
{
answerresult = "Correct";
save_data_in_result(qid,givenanswer,ans,answerresult,question);
}
else
{
answerresult = "Wrong";
save_data_in_result(qid, givenanswer, ans, answerresult,
question);
}
i = i + 1;
}
}

private void save_data_in_result(string qid, string givenanswer,


string ans, string answerresult,string question)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from TestResult
where examid='" + lblexamlevel.Text + "' and Questionid='" + qid + "'", s);
DataSet ds = new DataSet();
da.Fill(ds, "TestResult");
DataTable dt = ds.Tables[0];
DataRow dr = dt.NewRow();
dr[0] = lblexamlevel.Text;
dr[1] = Session["uid"].ToString();
dr[2] = question;
dr[3] = qid;
dr[4] = givenanswer;
dr[5] = answerresult;
dr[6] = ans;
dt.Rows.Add(dr);
SqlCommandBuilder cb = new SqlCommandBuilder(da);
da.Update(dt);
}
}
}
TakeTest.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Student
{
public partial class WebForm2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
show_all_class();
show_all_class_subject();
find_name();
}
}

private void find_name()


{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select EnterName from
StudentRegistration where userId='" + Session["student"].ToString() + "'", s);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
lblname.Text = ds.Tables[0].Rows[0][0].ToString();
}

private void show_all_class_subject()


{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select distinct Subject
from Allquestion where Class='" + ddlselectclass.Text + "'", s);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}

ddlselectsubject.DataSource = ar;
ddlselectsubject.DataBind();

private void show_all_class()


{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select distinct Class from
Allquestion", s);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}
ddlselectclass.DataSource = ar;
ddlselectclass.DataBind();
}

protected void btnstart_Click(object sender, EventArgs e)


{
Session["class"] = ddlselectclass.Text;
Session["subject"] = ddlselectsubject.Text;
Session["name"] = lblname.Text;
Session["uid"] = Session["student"].ToString();
Session["examname"] = ddlexamname.Text;
Session["examlevel"] = ddlexamlevel.Text;
Session["date"] = ddlselectdate.Text + "/" + ddlselectmonht.Text +
"/" + ddlselectyear.Text;
Response.Redirect("StartYourTest.aspx");
}
protected void ddlselectclass_SelectedIndexChanged(object sender,
EventArgs e)
{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select distinct Subject
from Allquestion where Class='" + ddlselectclass.Text + "'", s);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}

ddlselectsubject.DataSource = ar;
ddlselectsubject.DataBind();

protected void ddlselectsubject_SelectedIndexChanged(object sender,


EventArgs e)
{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select distinct Examname
from Allquestion where Class='" + ddlselectclass.Text + "' and Subject='" +
ddlselectsubject.Text + "'", s);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}
ddlexamname.DataSource = ar;

ddlexamname.DataBind();

protected void ddlexamname_SelectedIndexChanged(object sender,


EventArgs e)
{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select distinct Examid
from Allquestion where Class='" + ddlselectclass.Text + "' and Subject='" +
ddlselectsubject.Text + "' and Examname='" + ddlexamname.Text + "'", s);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}
ddlexamlevel.DataSource = ar;
ddlexamlevel.DataBind();
}
}
}
Testcompleted.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Student
{
public partial class testcompleted : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
onlinetest a = new onlinetest();

String xyz = a.pqr();


SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from TestResult

", s);

DataSet ds = new DataSet();


da.Fill(ds, "TestResult");
GridView1.DataSource = ds;
GridView1.DataBind();
}

Testhistory.aspx.cs

using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Student
{
public partial class Testhistory : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
bind_all_class_from_uploaded_question_table();
}
}
private void bind_all_class_from_uploaded_question_table()
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection Conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct Class from
examhed", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "examhed");
DataTable dt = ds.Tables[0];
ArrayList givenanswer = new ArrayList();
givenanswer.Add("Select");
foreach (DataRow dr in dt.Rows)
{

givenanswer.Add(dr[0].ToString());
}
ddlselectclass.DataSource = givenanswer;
ddlselectclass.DataBind();
}
protected void ddlselectclass_SelectedIndexChanged(object sender,
EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection Conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct Subject
from examhed where Class='" + ddlselectclass.Text + "'", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "examhed");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}
ddlselectsubject.DataSource = ar;
ddlselectsubject.DataBind();
}
protected void ddlselectsubject_SelectedIndexChanged(object sender,
EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection Conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct examid
from examhed where Class='" + ddlselectclass.Text + "' and Subject='" +
ddlselectsubject.Text+ "'", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "giveanswer");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}
ddlexamid.DataSource = ar;
ddlexamid.DataBind();
}
protected void ddlexamid_SelectedIndexChanged(object sender, EventArgs
e)

{
}
protected void btnfind_Click(object sender, EventArgs e)
{
onlinetest a = new onlinetest();

String xyz = a.pqr();


SqlConnection Conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from giveanswer
where examid='" + ddlexamid.Text + "'", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "giveanswer");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}
GridView1.DataSource = ds;
GridView1.DataBind();
}

}
}

Testhistory.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Student
{
public partial class Testhistory: System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnfind_Click(object sender, EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();

SqlConnection Conn = new SqlConnection(xyz);


SqlDataAdapter da = new SqlDataAdapter("Select * from examhed
where userid='" + txtuid.Text + "'", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "examhed");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();

GridView1.DataSource = ds;
GridView1.DataBind();

protected void GridView1_SelectedIndexChanging(object sender,


GridViewSelectEventArgs e)
{
}
examid)

private void Create_function_to_select_data(Label userid, Label


{

onlinetest a = new onlinetest();


String xyz = a.pqr();
SqlConnection Conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from TestResult
where userid='" + userid.Text + "' and examid='"+examid.Text+"'", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "TestResult");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
GridView2.DataSource = ds;
GridView2.DataBind();
}
protected void GridView1_SelectedIndexChanged(object sender, EventArgs
e)

Label userid =
(Label)GridView1.SelectedRow.FindControl("lbluserid");//Gridview1..Rows[e.RowI
ndex].FindControl("lbluserid");
Label examid =
(Label)GridView1.SelectedRow.FindControl("lblExamid");//
GridView1.Rows[e.RowIndex].FindControl("examid");
Create_function_to_select_data(userid, examid);
}
}
}
ViewStdProfile.aspx.cs
using System;
using System.Collections;

using
using
using
using
using
using
using
using
using
using
using

System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Student
{
public partial class ViewStdProfile : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string userid = Session["uid"].ToString();
}

show_Student_detail(userid);

private void show_Student_detail(string userid)


{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select* from
StudentRegistration Where userId='" + userid + "'", conn);
DataSet ds = new DataSet();
da.Fill(ds, "StudentRegistration");
DataTable dt = ds.Tables[0];
DataRow dr = dt.NewRow();
GridView1.DataSource = ds;
GridView1.DataBind();
}

protected void GridView1_SelectedIndexChanged(object sender, EventArgs


e)

{
}

}
}
AllUploadAnswer.aspx.cs
using System;
using System.Collections;
using System.Configuration;

using
using
using
using
using
using
using
using
using
using

System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Faculty
{
public partial class AllUploadAnswer: System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
bind_all_class_from_upload_Answer_tble();
}
}

private void bind_all_class_from_upload_Answer_tble()


{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct Class from
Allanswer", conn);
DataSet ds = new DataSet();
da.Fill(ds, "Allanswer");
DataTable dt = ds.Tables[0];
ArrayList Allanswer = new ArrayList();
Allanswer.Add("Select");
foreach (DataRow dr in dt.Rows)
{
Allanswer.Add(dr[0].ToString());
}
ddlselectclass.DataSource = Allanswer;
ddlselectclass.DataBind();

}
protected void ddlselectsubject_SelectedIndexChanged(object sender,
EventArgs e)
{
}
protected void btnfind_Click(object sender, EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);

SqlDataAdapter da = new SqlDataAdapter("Select* from Allanswer


where Class='" + ddlselectclass.Text + "' and Subject='" +
ddlselectsubject.Text
+ "'", conn);
DataSet ds = new DataSet();
da.Fill(ds, "Allanswer");
DataTable dt = ds.Tables[0];
DataRow dr = dt.NewRow();
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void ddlselectclass_SelectedIndexChanged(object sender,
EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct Subject
from Allanswer where Class='" + ddlselectclass.Text + "'", conn);
DataSet ds = new DataSet();
da.Fill(ds, "Allanswer");
DataTable dt = ds.Tables[0];

ArrayList Allanswer = new ArrayList();


foreach (DataRow dr in dt.Rows)
{
Allanswer.Add(dr[0].ToString());
}
ddlselectsubject.DataSource = Allanswer;
ddlselectsubject.DataBind();

}
}
AllUploadqQuestion.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Faculty
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
bind_all_class_from_uploaded_question_tble();
}
}
private void bind_all_class_from_uploaded_question_tble()
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct Class from
Allquestion", conn);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];

ArrayList Allquestion = new ArrayList();


Allquestion.Add("Select");
foreach (DataRow dr in dt.Rows)
{
Allquestion.Add(dr[0].ToString());
}
ddlselectclass.DataSource = Allquestion;
ddlselectclass.DataBind();

protected void ddlselectclass_SelectedIndexChanged(object sender,


EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct Subject
from Allquestion where Class='"+ddlselectclass.Text+"'", conn);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
ArrayList Allquestion = new ArrayList();
foreach (DataRow dr in dt.Rows)
{
Allquestion.Add(dr[0].ToString());
}
ddlselectsubject.DataSource = Allquestion;
ddlselectsubject.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)

{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select* from Allquestion
where Class='"+ddlselectclass.Text+"' and Subject='"+ddlselectsubject.Text
+"'", conn);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void ddlselectsubject_SelectedIndexChanged(object sender,
EventArgs e)
{
}
e)

protected void GridView1_SelectedIndexChanged(object sender, EventArgs


{
}

}
}
Addclass.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
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.Xml.Linq;
using System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Faculty
{
public partial class Addclass: System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnadd_Click(object sender, EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from AllClass",
s);

DataSet ds = new DataSet();


da.Fill(ds, "AllClass");
DataTable dt = ds.Tables[0];
DataRow dr = dt.NewRow();
dr[0] = txtenterclass.Text;
dt.Rows.Add(dr);
SqlCommandBuilder cb = new SqlCommandBuilder(da);
da.Update(dt);
lbladd.Text = "Data Add Successfully";
}

}
}
AddSubject.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
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.Xml.Linq;
using System.Data.SqlClient;
namespace FINALONLINETESTPORTAL.Faculty
{
public partial class WebForm3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
show_all_class();
}
}

private void show_all_class()


{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from AllClass",

s);

DataSet ds = new DataSet();


da.Fill(ds, "AllClass");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());

}
ddlselectclass.DataSource = ar;
ddlselectclass.DataBind();

protected void btnadd_Click1(object sender, EventArgs e)


{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from AllSubject",

s);

DataSet ds = new DataSet();


da.Fill(ds, "AllSubject");
DataTable dt = ds.Tables[0];
DataRow dr = dt.NewRow();
dr[1] = txtentersubject.Text;
dr[0] = ddlselectclass.Text;
dt.Rows.Add(dr);
SqlCommandBuilder cb = new SqlCommandBuilder(da);
da.Update(dt);
lbladd.Text = "Data added";
}

ViewTestHistory.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
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.Xml.Linq;
using System.Data.SqlClient;
namespace FINALONLINETESTPORTAL.Faculty
{
public partial class ViewTestHistory: System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
bind_all_class_from_uploaded_question_table();
}
private void bind_all_class_from_uploaded_question_table()
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection Conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct class from
examhed", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "examhed");
DataTable dt = ds.Tables[0];
ArrayList givenanswer = new ArrayList();
givenanswer.Add("Select");
foreach (DataRow dr in dt.Rows)
{
givenanswer.Add(dr[0].ToString());
}
ddlselectclass.DataSource = givenanswer;
ddlselectclass.DataBind();
}
protected void ddlselectclass_SelectedIndexChanged(object sender,
EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection Conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct Subject
from examhed where class='" + ddlselectclass.Text + "'", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "examhed");
DataTable dt = ds.Tables[0];
ArrayList givenanswer = new ArrayList();
givenanswer.Add("Select");
foreach (DataRow dr in dt.Rows)
{
givenanswer.Add(dr[0].ToString());
}
ddlselectclass.DataSource = givenanswer;
ddlselectclass.DataBind();
}

protected void ddlselectsubject_SelectedIndexChanged(object sender,


EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection Conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct examid
from examhed where class='" + ddlselectclass.Text + "'and Subject='" +
ddlselectsubject.Text + "'", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "examhed");
DataTable dt = ds.Tables[0];
ArrayList givenanswer = new ArrayList();
givenanswer.Add("Select");
foreach (DataRow dr in dt.Rows)
{
givenanswer.Add(dr[0].ToString());
}
ddlselectsubject.DataSource = givenanswer;
ddlselectsubject.DataBind();
}
e)

protected void ddlexamid_SelectedIndexChanged(object sender, EventArgs


{
}

protected void btnfind_Click(object sender, EventArgs e)


{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection Conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct subject
from examhed", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "examhed");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}
GridView1.DataSource = ds;
GridView1.DataBind();
}
}
}
UpoadAnswer.aspx.cs
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;

using
using
using
using
using
using
using
using

System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Faculty
{
public partial class WebForm5 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
show_all_class();

}
}
protected void ddlselectclass_SelectedIndexChanged(object sender,
EventArgs e)
{
show_all_class_subject();
}
protected void ddlselectsubject_SelectedIndexChanged(object sender,
EventArgs e)
{
find_all_questionid();
}
protected void ddlexamid_SelectedIndexChanged(object sender, EventArgs
e)

show_all_answerid();
}
private void find_all_questionid()
{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select distinct Examid
from Allquestion where Class='" + ddlselectclass.Text + "' and
Subject='"+ddlselectsubject.Text+"'", s);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)

ar.Add(dr[0].ToString());

}
ddlexamid.DataSource = ar;
ddlexamid.DataBind();
}
private void show_all_class_subject()
{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select distinct Subject
from Allquestion where Class='" + ddlselectclass.Text + "'", s);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}
ddlselectsubject.DataSource = ar;
ddlselectsubject.DataBind();

}
private void show_all_class()
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select distinct Class from
Allquestion", s);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}
ddlselectclass.DataSource = ar;
ddlselectclass.DataBind();

}
private void show_all_answerid()
{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select QuestionId from
Allquestion where Class='" + ddlselectclass.Text + "' and Subject='" +
ddlselectsubject.Text + "' and Examid='"+ddlexamid.Text+"'", s);// where
EnterClass='" + ddlselectclass.Text + "'", s);

DataSet ds = new DataSet();


da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}
ddlselectquestionid.DataSource = ar;
ddlselectquestionid.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from Allanswer",
conn);

DataSet ds = new DataSet();


da.Fill(ds, "Allanswer");
DataTable dt = ds.Tables[0];
DataRow dr = dt.NewRow();
dr[0] = ddlselectclass.Text;
dr[1] = ddlselectsubject.Text;
dr[2] = ddlselectquestionid.Text;
dr[3] = ddlanswer.Text;// ddlselectquestion.Text;
dr[4] = ddlexamid.Text;
dt.Rows.Add(dr);
SqlCommandBuilder cb = new SqlCommandBuilder(da);
da.Update(dt);
lbladd.Text = "Data has been added";
}

protected void ddlselectquestionid_SelectedIndexChanged(object sender,


EventArgs e)
{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Question from
Allquestion where QuestionId='" + ddlselectquestionid.Text + "'", s);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
txtquestionname.Text = ds.Tables[0].Rows[0][0].ToString();
}

UploadQuestin.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Faculty
{
public partial class WebForm4 : System.Web.UI.Page
{
int id = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
show_all_class();
}

max_q();

}
private void max_q()
{
Random rn = new Random();
string id = rn.Next(1, 100000).ToString();
txtexamid.Text = id;
}
protected void ddlselectclass_SelectedIndexChanged(object sender,
EventArgs e)
{
show_all_class_subject();
}
protected void ddlselectsubject_SelectedIndexChanged(object sender,
EventArgs e)
{
}
private void show_all_class_subject()
{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);

SqlDataAdapter da = new SqlDataAdapter("Select distinct Subject


from AllSubject where EnterClass='" + ddlselectclass.Text + "'", s);
DataSet ds = new DataSet();
da.Fill(ds, "AllSubject");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}

ddlselectsubject.DataSource = ar;
ddlselectsubject.DataBind();

private void show_all_class()


{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select distinct EnterClass
from AllSubject", s);
DataSet ds = new DataSet();
da.Fill(ds, "AllSubject");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());

}
ddlselectclass.DataSource = ar;
ddlselectclass.DataBind();

protected void Button1_Click(object sender, EventArgs e)


{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from
Allquestion", s);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
int rowcount = dt.Rows.Count;
DataRow dr = dt.NewRow();
dr[0] = ddlselectclass.Text;
dr[1] = ddlselectsubject.Text;
dr[2]
dr[3]
dr[4]
dr[5]
dr[6]
dr[7]

=
=
=
=
=
=

txtenterquestion.Text;
txtans1.Text;
txtans2.Text;
txtans3.Text;
txtans4.Text;
txtexamname.Text;

dr[8] = txtexamid.Text;
dt.Rows.Add(dr);
SqlCommandBuilder cb = new SqlCommandBuilder(da);
da.Update(dt);
lbladd.Text = "Data has been successfuly added";

}
}
AddStaff.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Administrator
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnsubmit_Click(object sender, EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from Alluser"
,s);

DataSet ds = new DataSet();


da.Fill(ds, "Alluser");
DataTable dt = ds.Tables[0];
DataRow dr = dt.NewRow();
dr[0] = txtname.Text;
dr[1] = txtfathername.Text;
dr[2] = txtmobileno.Text;
dr[3] = ddldate.Text + "/" + ddlmonth.Text + "/" + ddlyear.Text;
dr[4] = txtsubjet.Text;
dr[5] = ddlgender.Text;
dr[6] =txtexperence.Text;
dr[7] = txtlastqly.Text;

}
}

dr[8] = txtemailid.Text;
dr[9] = ddlfaculty.Text;
dr[10] = txtuid.Text;
dr[11] = txtpassward.Text;
dr[12] = ddlstatus.Text;
dt.Rows.Add(dr);
SqlCommandBuilder cb = new SqlCommandBuilder(da);
da.Update(dt);
lblupdate.Text = "Data Insert Successfully";

Allanswer.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Administrator
{
public partial class WebForm8 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
show_all_project();
}

s);

private void show_all_project()


{
onlinetest a = new onlinetest();
String xyz = a.pqr();
string type = "Administrator";
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from Allanswer",

DataSet ds = new DataSet();


da.Fill(ds, "Allanswer");
DataTable dt = ds.Tables[0];
GridView1.DataSource = ds;
GridView1.DataBind();

protected void GridView1_SelectedIndexChanged(object sender, EventArgs


e)

}
Allqquestion.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Administrator
{
public partial class WebForm4 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
show_all_project();
}
private void show_all_project()
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
string type = "Faculty";
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from
Allquestion", s);
DataSet ds = new DataSet();
da.Fill(ds, "Allquestion");
DataTable dt = ds.Tables[0];
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void GridView1_SelectedIndexChanged(object sender, EventArgs
e)

{
}

}
Allstaff.aspx.cs

using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Administrator
{
public partial class allstaff : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
show_all_project();
}
private void show_all_project()
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
string type = "Faculty";
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from Alluser
where Type='"+type+"'", s);
DataSet ds = new DataSet();
da.Fill(ds, "Alluser");
DataTable dt = ds.Tables[0];
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void GridView1_SelectedIndexChanged(object sender, EventArgs

e)

{
}

}
Allstudent.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;

using
using
using
using
using

System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Administrator
{
public partial class WebForm2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
show_all_project();
}
private void show_all_project()
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
string type = "FINALONLINETESTPORTAL";
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from
StudentRegistration", s);
DataSet ds = new DataSet();
da.Fill(ds, "StudentRegistration");
DataTable dt = ds.Tables[0];
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void GridView1_SelectedIndexChanged(object sender, EventArgs

e)

{
}

}
EditStudent.aspx.cs
using
using
using
using
using
using
using
using
using
using
using
using
using

System;
System.Collections.Generic;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Administrator
{
public partial class editStudentSection : System.Web.UI.Page

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
{
Showdata();
}
}

protected void GridView1_RowDeleting(object sender,


GridViewDeleteEventArgs e)
{
Label userid =
(Label)GridView1.Rows[e.RowIndex].FindControl("lbluserId");
TextBox newname =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtname");
TextBox fname =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtFatherName");
TextBox addr =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtAddress");
TextBox d =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtDOB");
TextBox mb =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtMobileNo");
TextBox em =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtemail");
TextBox stn =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtStateName");
TextBox ps =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtps");
create_function_to_delete_data(userid,newname,fname,addr,d,mb,em,stn,ps);
}
private void create_function_to_delete_data(Label userid, TextBox
newname, TextBox fname, TextBox addr, TextBox d, TextBox mb, TextBox em,
TextBox stn, TextBox ps)
{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from
StudentRegistration where userId='" + userid.Text + "'", conn);
DataSet ds = new DataSet();
da.Fill(ds, "StudentRegistration");
DataTable dt = ds.Tables[0];
foreach (DataRow dr in dt.Rows)
{
dr.Delete();
}
SqlCommandBuilder cb = new SqlCommandBuilder(da);
da.Update(dt);
Showdata();
}

protected void GridView1_RowEditing(object sender,


GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
Showdata();
}
protected void GridView1_RowUpdating(object sender,
GridViewUpdateEventArgs e)
{
Label uid =
(Label)GridView1.Rows[e.RowIndex].FindControl("lbluserId");
TextBox newname =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtname");
TextBox fname =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtFatherName");
TextBox addr =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtAddress");
TextBox d =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtDOB");
TextBox mb =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtMobileNo");
TextBox em =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtemail");
TextBox stn =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtStateName");
TextBox ps =
(TextBox)GridView1.Rows[e.RowIndex].FindControl("txtps");
Update_table(uid, newname,fname,addr,d,mb,em,stn,ps);
}
private void Update_table(Label uid, TextBox newname, TextBox fname,
TextBox addr, TextBox d, TextBox mb, TextBox em, TextBox stn, TextBox ps)
{

onlinetest a = new onlinetest();


string xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);
SqlDataAdapter ad = new SqlDataAdapter("Select * from
StudentRegistration where userId='" + uid.Text + "'", conn);
DataSet ds = new DataSet();
ad.Fill(ds, "StudentRegistration");
DataTable dt = ds.Tables[0];
foreach (DataRow dr in dt.Rows)
{
dr[0] = newname.Text;
dr[1] = fname.Text;
dr[2] = addr.Text;
dr[4] = d.Text;
dr[5] = mb.Text;
dr[6] = em.Text;

dr[11] = stn.Text;
dr[13] = ps.Text;

}
SqlCommandBuilder cb = new SqlCommandBuilder(ad);
ad.Update(dt);
GridView1.EditIndex = -1;
Showdata();

protected void GridView1_SelectedIndexChanged(object sender, EventArgs


e)

{
}

protected void GridView1_RowCancelingEdit(object sender,


GridViewCancelEditEventArgs e)
{
GridView1.EditIndex = -1;
Showdata();
}
private void Showdata()
{
onlinetest a = new onlinetest();
string xyz = a.pqr();
SqlConnection conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from
StudentRegistration", conn);
DataSet ds = new DataSet();
da.Fill(ds, "StudentRegistration");
GridView1.DataSource = ds;
GridView1.DataBind();
}
}
}

TestHistory.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
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.Xml.Linq;
using System.Data.SqlClient;
namespace FINALONLINETESTPORTAL.Administrator
{
public partial class TestHistory : System.Web.UI.Page

protected void Page_Load(object sender, EventArgs e)


{
if (!IsPostBack)
bind_all_class_from_uploaded_question_table();
}

private void bind_all_class_from_uploaded_question_table()


{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection Conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct class from
examhed", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "examhed");
DataTable dt = ds.Tables[0];
ArrayList givenanswer = new ArrayList();
givenanswer.Add("Select");
foreach (DataRow dr in dt.Rows)
{
givenanswer.Add(dr[0].ToString());
}
ddlselectclass.DataSource = givenanswer;
ddlselectclass.DataBind();
}
protected void ddlselectclass_SelectedIndexChanged(object sender,
EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection Conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct Subject
from examhed where class='" + ddlselectclass.Text + "'", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "examhed");
DataTable dt = ds.Tables[0];
ArrayList givenanswer = new ArrayList();
givenanswer.Add("Select");
foreach (DataRow dr in dt.Rows)
{
givenanswer.Add(dr[0].ToString());
}
ddlselectclass.DataSource = givenanswer;
ddlselectclass.DataBind();
}
protected void ddlselectsubject_SelectedIndexChanged(object sender,
EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection Conn = new SqlConnection(xyz);

SqlDataAdapter da = new SqlDataAdapter("Select Distinct examid


from examhed where class='" + ddlselectclass.Text + "'and Subject='" +
ddlselectsubject.Text + "'", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "examhed");
DataTable dt = ds.Tables[0];
ArrayList givenanswer = new ArrayList();
givenanswer.Add("Select");
foreach (DataRow dr in dt.Rows)
{
givenanswer.Add(dr[0].ToString());
}
ddlselectsubject.DataSource = givenanswer;
ddlselectsubject.DataBind();
}
protected void ddlexamid_SelectedIndexChanged(object sender, EventArgs

e)

{
}
protected void btnfind_Click(object sender, EventArgs e)
{
onlinetest a = new onlinetest();
String xyz = a.pqr();
SqlConnection Conn = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select Distinct subject
from examhed", Conn);
DataSet ds = new DataSet();
da.Fill(ds, "examhed");
DataTable dt = ds.Tables[0];
ArrayList ar = new ArrayList();
ar.Add("Select");
foreach (DataRow dr in dt.Rows)
{
ar.Add(dr[0].ToString());
}
GridView1.DataSource = ds;
GridView1.DataBind();
}
}

Testreport.aspx.cs
using
using
using
using
using
using
using
using
using

System;
System.Collections;
System.Configuration;
System.Data;
System.Linq;
System.Web;
System.Web.Security;
System.Web.UI;
System.Web.UI.WebControls;

using
using
using
using

System.Web.UI.WebControls.WebParts;
System.Web.UI.HtmlControls;
System.Xml.Linq;
System.Data.SqlClient;

namespace FINALONLINETESTPORTAL.Administrator
{
public partial class testreport : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}

show_all_project();

private void show_all_project()


{
onlinetest a = new onlinetest();
String xyz = a.pqr();
string type = "Student";
SqlConnection s = new SqlConnection(xyz);
SqlDataAdapter da = new SqlDataAdapter("Select * from Taketest",
s);

DataSet ds = new DataSet();


da.Fill(ds, "Taketest");
DataTable dt = ds.Tables[0];
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void GridView1_SelectedIndexChanged(object sender, EventArgs

e)

{
}
}

CONCLUSION AND FUTURE SCOPE


CONCLUSION
Computerization is needed in this Shrinking world, where centralization is also required with globalization.
Conducting online test is a step in this direction to ease the current structure of examination. This way of
conducting test on one of the most secure operating system and with highly sophisticated technology is cost
effective and save time too.This way of conducting test not only save time but also lessens students and teachers
frustration. It is an easier way of giving examination, any person across the globe can appear for the examination.
Future Improvements
We have prepare new system after identify issue in existing manual examination system. Scope of this online
examination system is very broad in terms of other manually taking exams. However we can improve our system
in next version like.

Linking of other online site

Include graphical and media file as question and answers

Use of JQuery for more smooth interface

Security

Administrator has the highest authority to edit/delete/create database

Faculty have the authority to add/expel students

Students can only view their test records.

Faculty can view all the test records of every student.

Critical information like passwords should be transferred in encrypted form

Passwords should be stored in encrypted form

Password will not be mailed to the user in case user forgets password,
instead either temporary password or a password reset link will be sent.

S-ar putea să vă placă și