Académique Documents
Professionnel Documents
Culture Documents
Submitted by
------------
BCA-3rd year
D.S COLLEGE KATIHAR
Guided by
----------------------------------------
TABLE OF CONTENTS
ACKNOWLEDGEMENT
CERTIFICATE
TITLE OF THE PROJECT
INTRODUCTION
o
Project Section
SYSTEM ANALYSIS
o
Input/outputs
Feasibility Study
Cost Estimation
Project Scheduling
SYSTEM DESIGN
o
Project Planning
Modules
E-R Diagram
Screen Shots
TESTING
IMPLEMENTATION & MAINTENANCE
REFERENCES
Acknowledgement
(Internal
(Sign of HOD)
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.
Dated:-9/JULY/2010
Project Incharge
Mr.Prashant Dubey
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
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.
.Net
.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.
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
Database Design:
Admin Login Table
Allanswer Table
All Subject
All User
Examhead 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>
/><marquee>WELCOME TO
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
KATIHAR Computer Education
providing all types of computer'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's demands. Our Organization
provides the best learning envir ment as per
institution level. Our business is not only
to provide computer learning, it'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'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%;
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"
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>
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;
/>-->
<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">
<!--<img alt="txt-url" src="Administrator/image/slide4.jpg"
style=" margin:0px auto; width: 1300px; height: 400px";
</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">
<a
href="mailto:coyright@2015..Desigend">coyright@2015..Desigend</a> and
developed by Team:'H' &
nbsp; &
nbsp; &
nbsp; &
nbsp;
<td><marquee scrollamount = "4</td> Online Test Home Page
Developed by Team H
</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%;
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 HOLIDAY<br />
The College will remain closed
for a week
from 18 June...to 24 June ...for the
Commonwealth
Games in New 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>
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 />
Kindly Keep
following Details for future Use..<br />
</td>
</tr>
<tr>
<td class="style3">
Your 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>
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">
<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>
<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>
<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">
</td>
<td align="left">
</td>
</tr>
<tr>
<td style="font-size: large">
</td>
<td style="font-size: large">
</td>
<td style="font-size: large">
</td>
<td align="left">
</td>
</tr>
<tr>
<td style="font-size: large" align="center" colspan="4">
Educational Details of
Student:-</td>
</tr>
<tr>
<td style="font-size: large" align="right">
</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">
</td>
<td style="font-size: large">
</td>
<td style="font-size: large">
</td>
<td align="left">
</td>
</tr>
<tr>
<td align="center" style="font-size: large" colspan="4">
Login Details of Student :-</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">
</td>
<td style="font-size: large">
</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">
</td>
<td align="right">
</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>
<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
Admin.master
#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">
</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">
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>
</p>
</asp:ContentPlaceHolder>
</td>
</tr>
<tr>
<td height="50" bgcolor="Black"
style="border: medium solid #2B0015; color:
#FFFFFF;">
<marque>Copyreight @
2015 &n
bsp;
Desigend and
developed by Team
H.</marque>
</td>
</tr>
</table>
</td>
<td width="50" bgcolor="Black">
</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
</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
Testhistoty.apx
<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>
</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">
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>
<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>
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">
</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
</td>
</tr>
</table>
</asp:Content>
Class.apx
Home.apx
<%@ Page Language="C#" MasterPageFile="~/Faculty/FacultyDesign.Master"
AutoEventWireup="true" CodeBehind="Home.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Faculty.Home" Title="Untitled Page" %>
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>
</td>
<td>
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>
<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>
<asp:DropDownList ID="ddlselectsubject" runat="server"
onselectedindexchanged="DropDownList2_SelectedIndexChanged"
style="height: 22px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="center">
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"
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>
</td>
<td>
<asp:Button ID="btnadd0" runat="server"
onclick="Button1_Click" Text="Add"
Width="116px" />
</td>
</tr>
<tr>
<td>
</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>
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">
Student
Finalsubmit.apx
<%@ Page Language="C#" MasterPageFile="~/Student/StudentDesign.Master"
AutoEventWireup="true" CodeBehind="FinalSubmit.aspx.cs"
Inherits="FINALONLINETESTPORTAL.Student.WebForm4" Title="Untitled Page" %>
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>
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 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>
<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>
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">
<asp:Label ID="Label1" runat="server"
Text="Student Name:-"></asp:Label>
<asp:Label ID="lblname" runat="server"></asp:Label>
<asp:Label ID="Label5" runat="server" Text="Selected Class:-"></asp:Label>
</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: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">
</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">
</td>
<td>
<table cellpadding="2" class="style1">
<tr>
<td bgcolor="#3366FF">
<table cellpadding="2" class="style1">
<tr>
</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>
<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>
<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>
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">
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">
</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
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();
}
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();
}
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)
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();
s);
s);
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()
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();
}
}
ddlselectsubject.DataSource = ar;
ddlselectsubject.DataBind();
ddlselectsubject.DataSource = ar;
ddlselectsubject.DataBind();
ddlexamname.DataBind();
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();
", s);
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();
}
}
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();
GridView1.DataSource = ds;
GridView1.DataBind();
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);
{
}
}
}
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();
}
}
}
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);
}
}
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];
{
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)
}
}
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);
}
}
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();
}
}
s);
}
ddlselectclass.DataSource = ar;
ddlselectclass.DataBind();
s);
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();
}
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);
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);
ddlselectsubject.DataSource = ar;
ddlselectsubject.DataBind();
}
ddlselectclass.DataSource = ar;
ddlselectclass.DataBind();
=
=
=
=
=
=
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);
}
}
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);
}
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
dr[11] = stn.Text;
dr[13] = ps.Text;
}
SqlCommandBuilder cb = new SqlCommandBuilder(ad);
ad.Update(dt);
GridView1.EditIndex = -1;
Showdata();
{
}
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
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();
e)
{
}
}
Security
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.