Beruflich Dokumente
Kultur Dokumente
ACKNOWLEDGEMENTS
I will start by saying a big Thank you to my guidence, sunil yadav, for all the
support to me has given me while development the code. It has occupied a
significant part of my spare I would also like to thank the other members of the
ASP.net Standards Committee who wrote committee papers on the
multithreading facilities: Dharam Chand , Sunil kumar , Sudir Pathak, Ritesh
verma, Sunil Yadav discussed them at the committee meetings, and otherwise
helped shaped the multithreading and concurrency support in ASP.NET .
Finally, I would like to thank the following people, whose suggestions have
Greatly improved this Devloping Online Examnation System: Mr. Nishant
(IOS Devloper) , Rama krishana.(ASP.NET Programer) reviews and to
Prakash who, as technical proofreader, painstakingly checked all content for
outright errors in the final manuscript during production.
TABLE OF CONTENTS
1. Introduction
1.1 Background
1.2 objectives
1.3 Purpose,Scope and Applicability
1.3.1 Purpose
1.3.2 Scope
1.3.3 Applicability
1.4 Achievements
1.5 Organisation of Report
2. Survey Of Technologies
3. Requiertments And Analysis
3.1. Problem Defination
3.2. Requiertments Specification
3.3 Planning and scheduling
3.4. Software and Hardware Requirements
3.5. Priliminary Product Description
3.6. Conceptual Models
4. System Design
4.1 Basic Modules
4.2 Data Design
4.2.1
Schema Design
4.2.2
Logic Diagrams
Code Efficiency
Unit Testing
5.3.2
Integrated Testing
INTRODUCTION
On Line Examination itself represent the examination through the internet. This
project will help the university/ Institution to evaluate the question have
multiple option with one correct answer. This project contains two types of
question viz. subjective and objective. Students have to write the descriptive
answer for the subjective question will be randomly generated. It would be
evaluated automatically i.e. by the system.
This project helps the management to conducting online examination and save
recourse. The university/Institution can conduct the online examination and
announce the status or result in a few data. The examination department is
responsible for the marinating of question paper and it would be completely
secure. This is the era of computer and we are adopting fast mechanism to
solve any problem. On line examination is also a way to give result as soon as
we submit our paper
BACKGROUND
We, as a 6th sem. student of BCA are making this project by taking help from
theses already working and tested applications as well as making our own set of
OBJECTIVES
The On line test System is developed using Asp.net and sql fully meets the
objectives of the system for which it has been developed. The system has
reached a steady state where all bugs have been eliminated. The system is
operated at a high level of efficiency and all the teacher and user associated
with the system understands its advantage. The system soves the problem. It
was intended to solveas requirement specification. To appear for an exam in
manual system in an university is very time consuming process. Now the
purpose of this system is to overcome the shortfall faced in the previous systems
already working in the area.
The website will have to be secure, and properly working on WAN. It should be
speedy with good interface. The university may conduct examination in various
countries and in different languages. It should support multiple platforms at
least those used by people commonly
PURPOSE
SCOPE
Methodology of the system is clear that result in the complete and proper
working of the system from the requirements achieved. it contains the working
model for the development of system. A sequential step of model is followed to
develop the system so that it will maintain various software engineering
features/parameters.
No need to take leave, visit a different town, city or even states in some cases.
People can appear right from their laptop or home desktop.
To develop this application, weve taken into account some assumptions. They
are:
1. University will provide each student a unique student Id during
enrollment time. The purpose of this is so that no one can register on
behalf of any other student. and only the student himself/herself can
register for the examination using this id.
2. Student login name will be generated automatically by concatenating
student first Name and Enrollment No.
Like : Shwati has student id 13P
So, Swati student login here will be Swati_P1
APPLICABILITY
This project is applicable for not a particular institute or particular university
this project can use any institute or any university which has conducted this
type examination or test. Like CCNA citification course conduct this type of
examination. This type of examination can conduct any institute which is
affiliated by Cisco Certified Network Associated organization and conduct
an exam to those papers which is allowed by Organisation. This project helps
to save human resources and time consumption.
ACHIEVEMENTS
The achievements tucked under our belt after the completion of this project are
enumerable. We got to develop practical abilities and knowledge about practical
tools/techniques in order to solve real life problems related to the
University/Instituation. It made us to involve in the practical work for
understanding and solving problems in the fields of computing. We got a reallife experience to put into practice some of the techniques we have been taught
throughout our previous courses. Now we are capable of objectively criticizing
our own work and making constructive suggestions for improvement or further
work based on our experience. And apart from these all what we learnt is the
way to demonstrate originality, teamwork, inspiration, planning and
organization.
Contributions of our project, both direct and indirect has been discussed
in the previous topic and as far as the degree to which our goals laid out
by project objective is concerned, we can say that all those are achieved.
Though there is some functionality which could be added to make it more
sophisticated, but they were not part of our objective and therefore, we
have left them as future scope of the project.
SURVEY OF TECHNOLOGIES
To develop this package different types of tools and database
are used which are as follows:
1.
ASP.NET
2.
3.
1. ASP.NET :
ASP.NET is an opensource server side - web application framework designed
for web development to produce dynamic web sites, web applications and web
services .
It was first released in January 2002 with version 1.0 of the .NET framework ,
and is the successor to Microsoft's Active Server Pages (ASP) technology.
ASP.NET is built on the Command Language Runtime (CLR), allowing
programmers to write ASP.NET code using any supported .NET language .
The ASP.NET SOAP extension framework allows ASP.NET components to
process SOAP messages.
MVC, ASP.NET Web API, and ASP.NET Web Pages (a platform using only
Razor pages) will merge into a unified MVC 6. The project is called "ASP.NET
vNext".
PROBLEM DEFINATION
At the Login module user name and password facility and credentials should
be checked properly at the time of login for student, expert, controller and Exam
Dept Admin. In the schedule Module send the exam schedule to the student.
In question bank module for the examination could be changed dynamically.
Automatic checking of objective answers and manual checking of descriptive
answers
should
be
facilitated,
if
any.
REQUIERTMENT SPECIFICATION
On the basis of system study performed in an organization about all the
functions that deals with Online examination following requirements are
specified.
Functional Requirements :
Pert chart:
Pert stands for program evalution and review technique. A pert chart is a
network of boxes and arrows. The boxes in the pert chart can be decorated with
starting and ending dates for activities.
Hardware Requirements:
1. 100 MBPS processor
2. RAM
: 132 MB
3. Cache Memory
: 512 KB
4. Hard Disk
: 20 GB
5. Lancard
: 10/100 MBPS
6. HUB
: 1012
Software Requirements:
1. Operating System
2. Front End
: ASP.NET
FEASIBILITY STUDY
CONCEPTUAL MODELS
DATA TABLES
Admin Table :
S.no.
1.
Field Name
User Name
Data Type
Text
2.
Pass Word
Text
3.
User type
Text
S.no.
1.
Field Name
Teacher Id
Data Type
Number
2.
Teacher Name
Text
S.No.
1.
2.
Field name
Student Name
Status
Data Type
Text
Number
3.
Semester
Text
4.
Subject
Text
5.
Month
Text
Description
Store user name for
checking
correct
username
Store
password
corresponding to
username
User
Type
Administrator
or
User
Teacher Table:
Description
Unique key for
Every Teacher
Name of Teacher
Attendance Table:
Subject Table:
Description
Name of Student
Total number
classes attended by
particular
Student
In which Semester
Student is Studying
The Subject Wise
Attendance Is
maintained
The Month Wise
Attendance
S.No.
1.
Field name
Code
Data Type
Number
2.
Subject Name
Text
3.
Semester
Text
S.No.
1.
Field name
Student ID
Data Type
Number
2.
Student Name
Text
3.
Course
Text
4.
Semester
Text
Description
Subject code a
unique key
Name of Subjects
in all semester
In which Semester
student is studying
Student Table:
Description
This is the roll no
of the student
This is the name of
student
This is the course
in which the
students are
studying .
This is the
semester in which
Students are
Studying.
BASIC MODULES
In Our Project with the help of Divide and Conquer theory we can divide
overall program in Five Modules
These five modules are:
Login Module
Student Module
ExamController Module
Exam Dept Module
Expert Module
Login Module :
This is the first module in this project a anyone who want to enter into this
project/application . he/she must have pass through this module, in other word
we can say that this is authentication module because the user authentication
with his/her.To provided user name and password facility and credentials
should be checked properly at the time of login for student,expert, controller
and Exam Dept Admin.
Show Result
In the result form will manage the result(Subjective and Objective questions)
and Status of the student. This table contains the student id from which we will
help us in generating the result.
ExamController Module
The controller has authority to modify the criteria is provided to the controller
of examination and provide an interface from where controller will create new
Expert and Admin for Exam Dept.
ManageAdmin
In this module the controller will Create, Delete and Edit admin for the exam
dept with all of there details.
A Loginname and password has been provided through which the admin can
later login to perform all of there tasks.
ManageExpert
In this module the controller will Create,Delete and Edit experts for they can
later send question sets for objective as well as subjective questions which will
be asked to solve to students under exam process.
Declare result
in this form the exam dept. manage the result and sends to the student when
they complete their exam.
Expert Module
In the expert module the Experts to send a collection of questions(objective
and subjective) in Question Bank
Subjective Question
SubQus table will contain Subjective question and its right answer. To not
provide facility of copy and paste while attempting the Subjective questions on
the web page.Here the iSubQusId is the primary key.
Objective Question
ObjQus table will contain objective question and four options and right answer.
Objective answers will be checked automatically by the system from the
database. Here the question id is the primary key.
DATA DESIGN
Student
Our student table will register the student.University will provide each student a
unique student Id during enrollment time. The purpose of this is so that no one
can register on behalf of any other student. and only the student himself/herself
can register for the examination using this id and password. Students only
submit his/her documents and fees after the registration.In this student table
store his/her whole information like his name, address fees detail,program and
courses. the user can select only one course at the time.
Subjective Question
SubQus table will contain Subjective question and its right answer. Here the
iSubQusId is the primary key.
Objective Question
ObjQus table will contain objective question and four options and right answer.
Here the question id is the primary key.
Result
result table will contain the result(Subjective and Objective questions) and
Status of the student. This table contains the student id from which we will help
us in generating the result.
Schedule
Exam Dept managed the schedule and it to student while successfully
resgistraion.This module contains information about their exam with their date.
ExamDept
Our ExamDept table will register the institute or university Examination
department administrator.This ManageAdmin form can access only the
controller. the controller has also controllerId and Password & controllername..
Examdept table will maintain the id and password of Examdept admin.
controller will make admin for different center. The Exam Dept will manage the
question bank sent by experts and evaluated the answer.
SCHEMA DESIGN
Expert
Our Expert table will register the institute or university Expert administrator.
This ManageExpert form can access only the controller. This module contain
the information about expert like his name & expert in which course.
Subjective Question Attempted
In this SubQAttempted table will have iSubQAId , iStuId, iSubQusId, And
tAns. iStuId will be the foreign key for the table Student.
Objective Question Attempted
ObjQAttempted table will have iObjQAId, iStuId, iObjQusId, And cAns. iStuId
will be the foreign key for the table Student.
Course
In the course table contains the information about the iCouId,cCouName,
iSemester and the iProId. Here the iCouId is the primary key.
Program
This program table contains the information about the like course iProgId,
cProgName, and the iFessof the program. Here the iProgId is the primary key.
Result
Primary key iResultId
Alternate key iMarkOfSub, iMarkOfObj, bStatus
Foreign key iStuId(for result table )
Schedule
Primary key iSchId
Alternate key dtSDate
Foreign key iStuId(for Schedule table)
SubQAttempted
Primary key iSubQAId
Alternate key tAns
SubQus
Primary key iSubQusId
Foreign key iSubQusId(for SubQAttempted table)
Alternate key tQus,tAns, iMaxMarks, cStatus
PROCEDURAL DESIGN
Logic Diagrams
Process Diagram
Exam Dept :
Exam dept
Exam DeptId
Exam dept
Vloginname
Vpassword
Board
DATA STRUCTURE
SECURITY ISSUES
Security is an important issue for modern IT system. System administrator and
security administrator are responsible for safeguards organization data and
computing infrastructure.
Password Encryption: Whatever security measures taken, in any case if
anyone with destructive or malicious mind gets access to the database he can
temper the critical data. To restrict it weve used encrypting algorithm
facilitated to us by MicroSoft ASP.Net .
Two algorithms are there
SHA1- It takes the password and encrypt it in a string of 40 characters
MD5- It takes the password and encrypt it in a string of 32characters
The beauty of these algos are that whatever be the length of password the
length of converted string remains same.
However a question arise here that if this thing is that good then why
didnt we used it for storing each and every data????
The answer lies in the fact that not all data are needed to be encrypted as
long as we keep the critical data(like password encrypted and safe). It
will only increase the load on server and network with no additional
advantage. So weve not used this encryption algo on all data blindly.
We have implemented different approach related to security issue for our
project Online Examination :
Authorization:
Super Admin has authorized to give permission to admin for the
registration of the students.
Authentication:
Only registered students can appear for the examination. Every registered
student has different and unique UserId.
Information Integrity:
Only Super admin has right in the modification of the information. There
is no possibility by the end user or unauthorized user of hacking the
information.
Detection:
Super Admin will have a bank up of the project. Also there is a complex
and alphanumeric password for admin and student. Super admin itself has
a complex and alphanumeric password. There is a option for changing the
password by all the admin and itself after every month.
2.
text fields like names should not contain any numeric characters.
3.
Use of error handling for each Save, Edit, delete and other important
operations.
5.
Whenever the user Tabs out or Enter from a text box, the data should be
validated and if it is invalid, focus should again be sent to the text box with
proper message.
TEST CASE 1
MODULE NAME: Manage Admin
SNo
1
Error
displayed
Name
message
to
is
the
The
Controller
enters password
Error
message
password
password
match!!!.
IMPLEMENTATION APPROACHES
doesnt
DBMgt.
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient ;
/// <summary>
/// Summary description for DBMgt
/// </summary>
SqlConnection
SqlConnection("Server=.;uid=sa;pwd=;integrated
security=true;database=OnLEDB");
SqlDataAdapter adpt;
DataSet dtst;
SqlCommand cmd;
private string strDel
public void OpenCon()
{
if(con.State==ConnectionState.Closed)
con.Open();
con=new
else
{
con.Close();
con.Open();
}
}
public void CloseCon()
{
if(con.State==ConnectionState.Open)
con.Close();
}
public bool ExecuteNonQueryStoreProc(string StrProcName, SqlParameter[]
parList)
{
SqlCommand cmd = new SqlCommand(StrProcName, con);
cmd.CommandType = CommandType.StoredProcedure;
SqlCommand
ExecuteReaderStoreProc(string
SqlParameter[] parList)
{
SqlCommand cmd = new SqlCommand(StrProcName, con);
cmd.CommandType = CommandType.StoredProcedure;
for (int inc = 0; inc < parList.Length; inc++)
StrProcName,
cmd.Parameters.Add(parList[inc]);
OpenCon();
cmd.ExecuteReader();
CloseCon();
return cmd;
}
public object ExecuteScalerStoreProc(string StrProcName, SqlParameter[]
parList)
{
SqlCommand cmd = new SqlCommand(StrProcName, con);
cmd.CommandType = CommandType.StoredProcedure;
for (int inc = 0; inc < parList.Length; inc++)
cmd.Parameters.Add(parList[inc]);
OpenCon();
object obj = cmd.ExecuteScalar();
CloseCon();
return obj;
}
}
Student Login
Login
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class Student_Login : System.Web.UI.Page
{
DBMgt objDBMgt = new DBMgt();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnLoginButton_Click(object sender, EventArgs e)
{
try
{
string
sha1pwd
FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text.T
rim(), "sha1");
SqlParameter[] parList = new SqlParameter[4];
parList[0]
new
SqlParameter("@vLoginName
",
txtUserName.Text.Trim());
parList[1]
new
SqlParameter("@vPassword",
txtPassword.Text.Trim());
parList[2] = new SqlParameter("@Yes_No", SqlDbType.Int, 4);
parList[3] = new SqlParameter("@iStuId", SqlDbType.Int, 4);
parList[2].Direction = ParameterDirection.Output;
parList[3].Direction = ParameterDirection.Output;
SqlCommand
cmd
objDBMgt.ExecuteReaderStoreProc("checkStudentLogin", parList);
if (cmd != null)
{
if (Convert.ToInt16(cmd.Parameters["@Yes_No"].Value) == 1)
{
Session["iStuId"]
Convert.ToInt16(cmd.Parameters["@iStuId"].Value);
FormsAuthentication.RedirectFromLoginPage(txtUserName.Text,
true);
}
else
FailureText.Visible = true;
}
}
catch (SqlException SqlEx)
}
}
CODE EFFICIENCY
Doing something and Doing something in proper and correct manner,
both are very different. The same theory is applied in the case of our coding
too. Some of the code efficiencty measures that weve taken are :
1. If certain lines of codes(code segment) are being used repeatedly at different
places in the project with very slight changes then instead of writing that codes
at every places related codes can be grouped together in Classes(and in
functions) so that they can be called from different pages with proper
parameters wherever required.
DBMgt claas is one such class which has functions like
OpenCon()
ExecuteNonQueryStoreProc()
ExecuteReaderStoreProc()
ExecuteReaderStoreProc()
TESTING APPROACH
Unit Testing
Unit testing focuses verification error on the smallest unit of software design
the software component or module. Using the component-level design
description as a guide, important control paths are tested to uncover errors
within the boundary of the module. The relative complexity of tests and the
errors those tests uncover is limited by the constrained scope established for unit
testing. The unit test focuses on the internal processing logic can be conducted
in parallels for multiple components.
Unit Test Considerations
The tests that occur as part of unit tests are illustrated. The module interface is
tested to ensure that information properly flows into and out of the program unit
under test. Local data structures are examined to ensure that data stored
temporarily maintains its integrity during all control structure are exercised to
ensure that all statements in a module have been executed at least once.
Boundary conditions are tested to ensure that the module operates properly at
boundaries established to limit or restrict processing. And finally all error
handling paths are tested.
Test of data flow across a module interface are required before any other
test is initiated. If data do not enter and exit properly, all other tests are moot. In
addition, local data structures should be exercised and the local impact on
INTEGRATED TESTING
TEST REPORTS
Super Admin Login:
If the id field is filled by character the error generated and shown by *. That
it should be numeric.
If the user id or password does exist then error will be generated that User Id
or password does not exist.
Registration:
Required field validator means we have fill the text.
Compare to validate mean the field should match from the previous field.
Student Login:
Appearing for examination, Student must have to be begin through student login
form. There are three field in the student login page and Every field has to filled
by student.Student can not used character in the login id field.
Student registration will be cancelled automatically by the system after
appearing in the examination.
Admin Login :-
USER DOCUMENTATION
Student Loginid:- a
Password:- a
DATABASE SCRIPT
USE [EXAM]
GO
/****** Object: ForeignKey [FK_Exam_type_Exam_type]
Script Date:
03/28/2014 16:53:59 ******/
ALTER TABLE [dbo].[Exam_type] DROP CONSTRAINT [FK_Exam_type_Exam_type]
GO
/****** Object: ForeignKey [FK__oe_exams__mid__35BCFE0A]
Script Date:
03/28/2014 16:55:01 ******/
ALTER TABLE [dbo].[oe_exams] DROP CONSTRAINT [FK__oe_exams__mid__35BCFE0A]
GO
/****** Object: StoredProcedure [dbo].[GetQuestionPageWise]
Script
Date: 03/28/2014 16:55:01 ******/
DROP PROCEDURE [dbo].[GetQuestionPageWise]
GO
/****** Object: Table [dbo].[oe_exams]
Script Date: 03/28/2014 16:55:00
******/
DROP TABLE [dbo].[oe_exams]
GO
/****** Object: StoredProcedure [dbo].[SubmitQuestion]
Script Date:
03/28/2014 16:55:00 ******/
DROP PROCEDURE [dbo].[SubmitQuestion]
GO
/****** Object: Table [dbo].[subset]
Script Date: 03/28/2014 16:53:59
******/
DROP TABLE [dbo].[subset]
GO
/****** Object: Table [dbo].[category]
Script Date: 03/28/2014 16:53:59
******/
DROP TABLE [dbo].[category]
GO
/****** Object: Table [dbo].[Exam_type]
Script Date: 03/28/2014
16:53:59 ******/
DROP TABLE [dbo].[Exam_type]
GO
/****** Object: Table [dbo].[oe_members]
Script Date: 03/28/2014
16:53:59 ******/
DROP TABLE [dbo].[oe_members]
GO
/****** Object: Table [dbo].[oe_questions]
Script Date: 03/28/2014
16:53:59 ******/
DROP TABLE [dbo].[oe_questions]
GO
/****** Object: Table [dbo].[oe_subjects]
Script Date: 03/28/2014
16:53:59 ******/
DROP TABLE [dbo].[oe_subjects]
GO
/****** Object: Table [dbo].[student]
Script Date: 03/28/2014 16:53:59
******/
DROP TABLE [dbo].[student]
GO
/****** Object: Table [dbo].[student]
Script Date: 03/28/2014 16:53:59
******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[student](
[StudentID] [bigint] IDENTITY(1,1) NOT NULL,
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (16, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A
',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (17, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (25, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (38, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B
',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (29, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (31, N'An interesting
work of this period is a verse debate of two birds who advocate their relative merits. What is the name of the poem, which is often found in the
school anthologies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (45, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (48, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (50, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A
',
N'english subset')
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A
',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (73, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (74, N'There is one
tale in The Canterbury Tales which is a shrewd satire on unequal marriages.
Which one is that?', N'The Nun''s Priest''s Tale of the Cock Chanticleer
and the Fox', N'The Merchant''s Tale of January and May', N'The Wife of
Bath''s Tale', N'The Knight''s Tale', N'Option 1', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (75, N'An interesting
work of this period is a verse debate of two birds who advocate their relative merits. What is the name of the poem, which is often found in the
school anthologies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (76, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (77, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A
',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (78, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (79, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B
',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (81, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (98, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (99, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A
',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (100, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (101, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B
',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (102, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (103, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (104, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B
',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (105, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A
',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (106, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (111, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (114, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (116, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A
',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (107, N'There is one
tale in The Canterbury Tales which is a shrewd satire on unequal marriages.
Which one is that?', N'The Nun''s Priest''s Tale of the Cock Chanticleer
and the Fox', N'The Merchant''s Tale of January and May', N'The Wife of
Bath''s Tale', N'The Knight''s Tale', N'Option 1', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (108, N'An interesting
work of this period is a verse debate of two birds who advocate their relative merits. What is the name of the poem, which is often found in the
school anthologies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (109, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (110, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A
',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (112, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B
',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (113, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (115, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B
',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (117, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (118, N'There is one
tale in The Canterbury Tales which is a shrewd satire on unequal marriages.
Which one is that?', N'The Nun''s Priest''s Tale of the Cock Chanticleer
and the Fox', N'The Merchant''s Tale of January and May', N'The Wife of
Bath''s Tale', N'The Knight''s Tale', N'Option 1', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (119, N'An interesting
work of this period is a verse debate of two birds who advocate their relative merits. What is the name of the poem, which is often found in the
school anthologies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (120, N'About Total''s
Miscellany a character in Shakespeare''s play says, "I had rather than
forty shillings I had my Book of Songs and Sonnets here." Who is the
speaker and in which play?', N'Slender in The Merry Wives of Windsor',
N'Cali ban in The Tempest', N'Rosalind in As You Like It', N'Don Pedro in
Much Ado About Nothing', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (121, N'On whose tomb
the following lines have been inscribed?
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A
',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (122, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (123, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
"Good friend for Jesus'' sake forebear To dig the dust enclosed hearer;
Blest be the man that spares these stones, And curst be he that moves my
bones"', N'Marlowe''s', N'Sidney''s', N'Shakespeare''s', N'Milton''s',
N'Option 2', 1, N'A
',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (133, N'The one that
traces the genealogy of a Shoemaker is', N'Cobbler', N'Shoemaker''s
Holiday', N'School of Abuse', N'The Gentle Craft', N'Option 3', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (136, N'Who among the
following University Wits is primarily known for his Friar Bacon and Friar
Bunge?', N'Lyly', N'Peele', N'Greene', N'Keyed', N'Option 2', 1, N'A
', N'english subset')
GO
print 'Processed 100 total records'
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (138, N'The Spenserian
poet who had said that he became "irrecoverably a poet" by reading the
Faerie Queen when a boy, is', N'Dryden', N'Fletcher', N'Moore', N'Cowley',
N'Option 4', 1, N'A
',
N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (134, N'A noteworthy
work produced under the French influence in England was Layamon''s
voluminous poem of about 30,000 lines, named Brut. What is this book
about?', N'It is a legendary history of Britain', N'It is the story of
Brutus', N'It is King Arthur''s quest', N'It is a long pastoral poem',
N'Option 3', 1, N'B
',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (135, N'Campuses,
Edition, Hudibras, Love''s Metamorphosis and The Woman in the Moon are the
best works of John Lyly, who wrote mostly', N'Novels were few and could be
enjoyed only by the educated', N'National themes and sentiments were
dramatized.', N'Drama was the best way for the author to earn money', N'All
of the above', N'Option 2', 1, N'A
', N'english subset')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (137, N'Who is credited
for introducing the first English comedy, The Supposes, the first verse
satire, The Steel Glass, and the first translation from the Greek tragedy
Jocasta?', N'Sackville', N'Gascoigne', N'Erasmus', N'Philip Sidney',
N'Option 3', 1, N'B
',
N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (139, N'In which of the
following, Naples has been described as a place "of more pleasure than
profit and yet of more profit than pity"?', N'Euphuism by Lyly', N'Pando to
by Greene', N'The Adventures of Master F.J. by Gascoigne', N'Rosalinda by
Lodge', N'Option 2', 1, N'B
', N'english subset 2')
INSERT [dbo].[oe_questions] ([qid], [question], [ans1], [ans2], [ans3],
[ans4], [cans], [sid], [category], [subset]) VALUES (141, N'An interesting
work of this period is a verse debate of two birds who advocate their relative merits. What is the name of the poem, which is often found in the
school anthologies in India?', N'Ormolu', N'The Owl and the Nightingale',
N'Cuckoo Song', N'The Cricket and the Grass-hopper', N'Option 4', 1, N'A
', N'english subset')
Script Date:
as begin
insert into oe_questions([question],[ans1],[ans2],[ans3],[ans4],
[cans],[sid],[category],[subset]) values
(@question,@ans1,@ans2,@ans3,@ans4,@cans,@sid,@category,@subset)
end
GO
/****** Object: Table [dbo].[oe_exams]
Script Date: 03/28/2014 16:55:00
******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[oe_exams](
[examid] [int] NOT NULL,
[mid] [int] NULL,
[sid] [int] NULL,
[noq] [int] NULL,
[nocans] [int] NULL,
[stdate] [datetime] NULL,
[enddate] [datetime] NULL,
PRIMARY KEY CLUSTERED
(
[examid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: StoredProcedure [dbo].[GetQuestionPageWise]
Script
Date: 03/28/2014 16:55:01 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
CREATE PROCEDURE [dbo].[GetQuestionPageWise]
@PageIndex INT = 1
,@PageSize INT = 10
,@RecordCount INT OUTPUT
AS
BEGIN
SET NOCOUNT ON;
SELECT ROW_NUMBER() OVER
(
ORDER BY [qid] ASC
)AS RowNumber
,[qid]
,[question]
,[ans1]
,[ans2]
,[ans3]
,[ans4]
,[cans]
,[sid]
,[category]
,[subset]
INTO #Results
FROM [oe_questions]
SELECT @RecordCount = COUNT(*)
FROM #Results
SELECT * FROM #Results
WHERE RowNumber BETWEEN(@PageIndex -1) * @PageSize + 1
AND(((@PageIndex -1) * @PageSize + 1) + @PageSize) - 1
DROP TABLE #Results
END
GO
/****** Object: ForeignKey [FK_Exam_type_Exam_type]
Script Date:
03/28/2014 16:53:59 ******/
ALTER TABLE [dbo].[Exam_type] WITH CHECK ADD CONSTRAINT
[FK_Exam_type_Exam_type] FOREIGN KEY([catid])
REFERENCES [dbo].[Exam_type] ([catid])
GO
ALTER TABLE [dbo].[Exam_type] CHECK CONSTRAINT [FK_Exam_type_Exam_type]
GO
/****** Object: ForeignKey [FK__oe_exams__mid__35BCFE0A]
Script Date:
03/28/2014 16:55:01 ******/
ALTER TABLE [dbo].[oe_exams] WITH CHECK ADD FOREIGN KEY([mid])
REFERENCES [dbo].[oe_members] ([mid])
GO
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Login ::</title>
</head>
<body>
<form id="form1" runat="server">
<center>
<div>
<br />
<h3>
Admin Login</h3>
<br />
<br />
<table bgcolor= "#eeeeee">
<tr>
<td>Login Name :</td>
<td><asp:TextBox ID="txtLname" runat="server"
Width="150px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtLname"
ErrorMessage="Llogin name is missing!" FontBold="True">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>Password :</td>
<td><asp:TextBox ID="txtPwd" runat="server"
TextMode="Password" Width="150px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPwd"
ErrorMessage="Password is missing!" FontBold="True">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
</table>
<br />
<asp:Button ID="btnLogin" runat="server" Text="Login" Width="116px"
OnClick="btnLogin_Click" /><br />
<br />
<asp:Label ID="lblMsg" runat="server"></asp:Label>
<p>
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
HeaderText="Please correct the following errors:" Font-Bold="True" />
<p/>
<br />
<br />
<br />
<br />
</div>
</center>
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
public partial class adminlog_Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnLogin_Click(object sender, EventArgs e)
{
// check whether credentials are valid
SqlConnection con = new SqlConnection(DBUtil.ConnectionString);
try
{
con.Open();
SqlCommand cmd = new SqlCommand("select * from oe_members where
lname = @lname and pwd = @pwd", con);
cmd.Parameters.Add("@lname", SqlDbType.VarChar, 10).Value =
txtLname.Text;
cmd.Parameters.Add("@pwd", SqlDbType.VarChar, 10).Value =
txtPwd.Text;
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
Session.Add("mid", dr["mid"]);
Session.Add("fullname", dr["fullname"]);
Session.Add("dlv", dr["dlv"]);
// update MEMBERS table for DLV
dr.Close();
</asp:Content>
using
using
using
using
using
using
System;
System.Collections.Generic;
System.Linq;
System.Web;
System.Web.UI;
System.Web.UI.WebControls;
}
}
}
using
using
using
using
using
using
System;
System.Collections.Generic;
System.Linq;
System.Web;
System.Web.UI;
System.Web.UI.WebControls;
con.Close();
}
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<h2>
Password Reminder</h2>
Enter email address :
<asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtEmail"
ErrorMessage="Email address is
required!"></asp:RequiredFieldValidator><br />
<br />
<asp:Button ID="btnSubmit" runat="server" Text="Submit"
OnClick="btnSubmit_Click" /> <asp:Button ID="btnCancel"
runat="server" CausesValidation="False" OnClick="btnCancel_Click"
Text="Cancel" /><br />
<br />
<asp:Label ID="lblMsg" runat="server"></asp:Label>
</asp:Content>
@email";
oe_members";
isnull(max(mid),0) + 1 from
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ControlToValidate="txtLname"
ErrorMessage="Login Name
Required!"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td >
Password :
</td>
<td >
<asp:TextBox ID="txtPwd" runat="server" TextMode="Password"
Width="149px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ControlToValidate="txtPwd"
ErrorMessage="Password is
required!"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td >
Confirm Password :</td>
<td >
<asp:TextBox ID="txtCpwd" runat="server"
TextMode="Password" Width="149px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server" ControlToValidate="txtCpwd"
ErrorMessage="Confirm password
required!"></asp:RequiredFieldValidator>
<asp:CompareValidator ID="CompareValidator1" runat="server"
ControlToCompare="txtPwd"
ControlToValidate="txtCpwd" ErrorMessage="Passwords do
not match!"></asp:CompareValidator></td>
</tr>
<tr>
<td >
Fullname :</td>
<td >
<asp:TextBox ID="txtFname" runat="server"
Width="243px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server" ControlToValidate="txtFname"
ErrorMessage="Fullname is
required!"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td >
Email Address :</td>
<td >
<asp:TextBox ID="txtEmail" runat="server"
Width="240px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
runat="server" ControlToValidate="txtEmail"
ErrorMessage="Email address is
required!"></asp:RequiredFieldValidator></td>
</tr>
</table>
<br />
<asp:Button ID="btnRegister" runat="server" Text="Register"
OnClick="btnRegister_Click" />
<asp:Button ID="btnCancel" runat="server" Text="Cancel"
OnClick="btnCancel_Click" CausesValidation="False" /><br />
<br />
}
catch(Exception ex)
{
lblMsg.Text = "Error --> " + ex.Message ;
}
finally{
con.Close();
}
}
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<h2>Change Password</h2>
<table bgcolor="#eeeeee">
<tr>
<td >
Old Password</td>
<td >
<asp:TextBox ID="txtOldpwd" runat="server"
TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ControlToValidate="txtOldpwd"
ErrorMessage="Old passsword is
required!">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>New Password</td>
<td >
<asp:TextBox ID="txtNewpwd" runat="server"
TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ControlToValidate="txtNewpwd"
ErrorMessage="New password is
required!">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>Reenter New Password</td>
<td >
<asp:TextBox ID="txtConfirmpwd" runat="server"
TextMode="Password"></asp:TextBox>
<asp:CompareValidator ID="CompareValidator1" runat="server"
ControlToCompare="txtNewpwd"
ControlToValidate="txtConfirmpwd" ErrorMessage="New and
confirm password do not match!">*</asp:CompareValidator></td>
</tr>
</table>
<br />
<asp:Button ID="Button1" runat="server" Text="Change Password"
OnClick="Button1_Click" /><br />
<br />
<asp:Label ID="lblMsg" runat="server"></asp:Label><br />
<br />
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
HeaderText="Correct The Following Errors:" />
<br />
<br />
</asp:Content>
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="examination.aspx.cs" Inherits="examination" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<h2>Examination</h2>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<table width="100%" bgcolor="#dddddd">
<tr>
<td>
Subject :
<asp:Label ID="lblSubject" runat="server" Width="154px" FontBold="True" Font-Names="Verdana" ForeColor="Red"></asp:Label></td>
<td>
Question :
<asp:Label ID="lblQno" runat="server" Font-Bold="True" FontNames="Verdana" ForeColor="Red"></asp:Label></td>
</tr>
<tr>
<td>
Started At :
</table>
<p />
<b>Question</b>
<br />
<b><pre runat=server id="question" style="backgroundcolor:#eeeeee">question</pre> </b>
<p></p>
<table>
<tr>
<td>
<asp:RadioButton ID="rbAns1" runat="server" GroupName="answer" />
</td>
<td style="width: 3px">
<pre runat=server id="ans1"></pre>
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="rbAns2" runat="server" GroupName="answer" />
</td>
<td style="width: 3px">
<pre runat=server id="ans2"></pre>
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="rbAns3" runat="server" GroupName="answer" />
</td>
<td style="width: 3px">
<pre runat=server id="ans3"></pre>
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="rbAns4" runat="server" GroupName="answer" />
</td>
<td style="width: 3px">
<pre runat=server id="ans4"></pre>
</td>
</tr>
</table>
<br />
<asp:Button ID="btnPrev" runat="server" Text="Previous"
OnClick="btnPrev_Click" /> <asp:Button ID="btnNext"
runat="server" Text="Next" Width="75px" OnClick="btnNext_Click"
/>
System;
System.Collections.Generic;
System.Linq;
System.Web;
System.Web.UI;
System.Web.UI.WebControls;
btnNext.Text = "Next";
}
catch (Exception ex)
{
}
}
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Online Examination System</title>
</head>
<body>
<center>
<form id="form1" runat="server">
<div>
<h1>
Online Examination System</h1>
<br />
<h3>
Welcome To Online Examination System</h3>
<br />
<h4>Login</h4>
<br />
<table bgcolor= "#eeeeee">
<tr>
<td>Login Name :</td>
<td><asp:TextBox ID="txtLname" runat="server"
Width="150px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtLname"
ErrorMessage="Llogin name is missing!" FontBold="True">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>Password :</td>
<td><asp:TextBox ID="txtPwd" runat="server"
TextMode="Password" Width="150px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPwd"
ErrorMessage="Password is missing!" FontBold="True">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td colspan="2">
<asp:CheckBox ID="chkRemember" runat="server" Text="Remember
Me" /></td>
</tr>
</table>
<br />
<asp:Button ID="btnLogin" runat="server" Text="Login" Width="116px"
OnClick="btnLogin_Click" /><br />
<br />
<asp:Label ID="lblMsg" runat="server"></asp:Label>
<p>
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
HeaderText="Please correct the following errors:" Font-Bold="True" />
<p/>
<a href="all/newuser.aspx">New User?</a>
<a href="all/forgotpassword.aspx">Forgot Password?</a>
<br />
<br />
<br />
<br />
<asp:SqlDataSource ID="dsLogin" runat="server" ConnectionString="<%
$ ConnectionStrings:examConnectionString %>"
SelectCommand="select * from student where RegID = @regid and
dob = @dob">
<SelectParameters>
<asp:Parameter Name="regid" />
<asp:Parameter Name="dob" />
</SelectParameters>
</asp:SqlDataSource>
</div>
</form>
</center>
</body>
</html>
datediff(mi,stdate,enddate)
FROM oe_exams e, oe_subjects
s where e.sid = s.sid and
mid = @mid order by
desc">
<SelectParameters>
<asp:SessionParameter Name="mid" SessionField="mid"
Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>
stdate
<FooterTemplate>
%></pre>
%></pre>
%></pre>
%></pre>
<td>
<td>
<tr>
<td>
Grade :
</td>
<td>
<asp:Label ID="lblGrade" runat="server"
Text="Label"></asp:Label></td>
</tr>
</table>
<br />
<a href="reviewquestions.aspx">Review Questions</a>
<asp:LinkButton ID="lbRank" runat="server" OnClick="lbRank_Click">Rank
The Result</asp:LinkButton><br />
<br />
<asp:Label ID="lblRank" runat="server"></asp:Label><br />
</asp:Content>
<?xml version="1.0"?>
<!-Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<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>
<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>
using
using
using
using
using
using
System;
System.Collections.Generic;
System.Linq;
System.Web;
System.Data;
System.Data.SqlClient;
using System.Configuration;
/// <summary>
/// Summary description for DAL
/// </summary>
public class DAL
{
SqlClass con = new SqlClass();
SqlConnection objConnection;
SqlCommand objCommand;
SqlDataReader dataReader;
string con_str =
ConfigurationManager.ConnectionStrings["examConnectionString"].ConnectionSt
ring;
public DAL()
{
}
public void DeleteRecordByID(int qID)
{
objConnection = new SqlConnection();
objConnection.ConnectionString = con_str;
objConnection.Open();
objCommand = new SqlCommand();
objCommand.CommandType = CommandType.Text;
objCommand.CommandText = "delete from oe_questions where qid="+qID;
objCommand.Connection = objConnection;
objCommand.ExecuteNonQuery();
objCommand = null;
objConnection.Close();
objConnection = null;
}
objCommand.ExecuteNonQuery();
objCommand = null;
objConnection.Close();
objConnection = null;
}
}
using
using
using
using
System;
System.Web;
System.Configuration;
System.Web.Configuration;
/// <summary>
/// Summary description for DBUtil
/// </summary>
public class DBUtil
{
public static String ConnectionString
{
get
{
ConnectionStringSettings constr =
WebConfigurationManager.ConnectionStrings["examConnectionString"];
return constr.ConnectionString;
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
/// <summary>
/// Summary description for ExamDB
/// </summary>
public class ExamDB
{
public ExamDB()
{
//
// TODO: Add constructor logic here
//
}
private const string EXAM_CACHE_KEY = "EXAM_DATA";
private const string EXAMCOUNT_CACHE_KEY = "EXAM_COUNT";
public static DataTable GetQuestionSortedPage(int maximumRows, int
startRowIndex, string sortExpression, string searchCriteria)
{
if (string.IsNullOrEmpty(sortExpression))
sortExpression = "qid";
try
{
if (ExamDBCache.isRecordsCached(EXAM_CACHE_KEY))
return ExamDBCache.GetData(EXAM_CACHE_KEY, startRowIndex +
1, maximumRows, sortExpression, searchCriteria);
ExamDBCache.Add(EXAMCOUNT_CACHE_KEY, custCount);
}
catch (Exception e)
{
throw;
}
return custCount;
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Caching;
using System.Data.SqlClient;
using System.Data;
/// <summary>
/// Summary description for ExamDBCache
/// </summary>
public class ExamDBCache
{
public ExamDBCache()
{
}
public static bool isRecordsCached(string cacheKey)
{
Cache dbCache = HttpContext.Current.Cache;
if (dbCache[cacheKey] == null)
return false;
return true;
}
public static void Add(string key, object value)
{
Cache dbCache = HttpContext.Current.Cache;
dbCache.Add(key, value, null, Cache.NoAbsoluteExpiration,
Cache.NoSlidingExpiration, CacheItemPriority.Default, null);
}
public static object Get(string key)
{
Cache dbCache = HttpContext.Current.Cache;
}
return dbCache[key];
return dbCache.Remove(key);
}
public static DataTable GetData(string cacheKey, int startRowIndex, int
maximumRowNumber, string sortExpression, string searchCriteria)
{
Cache dbCache = HttpContext.Current.Cache;
if (dbCache[cacheKey] != null)
{
DataTable dtble = new DataTable();
DataTable dtblNew = new DataTable();
dtble = dbCache[cacheKey] as DataTable;
if(dtble ==null)
{
return null;
}
else
{
dtblNew = dtble.Clone();
}
DataRow[] rows = dtble.Select(searchCriteria, sortExpression);
if (rows != null)
{
if (rows.Count() > 0)
{
if (startRowIndex > rows.Count())
{
startRowIndex = rows.Count() - maximumRowNumber;
if (startRowIndex < 0)
{
startRowIndex = 1;
maximumRowNumber = rows.Count();
}
}
}
return dtblNew;
}
}
}
return null;
using
using
using
using
System;
System.Data;
System.Data.SqlClient;
System.Collections.Generic;
using System;
public class Question
{
public String question;
public String ans1, ans2, ans3, ans4, cans, answer;
public String QuestionText
{
get { return question; }
}
using
using
using
using
using
using
using
using
using
using
using
using
System;
System.Collections;
System.ComponentModel;
System.Data;
System.Configuration;
System.Data.SqlClient;
System.Drawing;
System.Web;
System.Web.SessionState;
System.Web.UI;
System.Web.UI.WebControls;
System.Web.UI.HtmlControls;
this._objCmd.CommandType = CommandType.Text;
this._objCmd.CommandText = sSQL;
this._objReader = this._objCmd.ExecuteReader();
return this._objReader;
}
/// <summary>
/// Executes a Scalar
/// </summary>
/// <param name="sSQL">string sql text</param>
/// <returns>string returned value of query</returns>
public string ExecScalar(string sSQL)
{
string temp;
this._objCmd.CommandType = CommandType.Text;
this._objCmd.CommandText = sSQL;
try
{
temp = this._objCmd.ExecuteScalar().ToString();
if (temp == "")
return "0";
else
return temp;
}
catch (SqlException ex)
{
string err = ex.Message;
return "0";
}
}
/// <summary>
/// Execute a nonquery
/// </summary>
/// <param name="sSQL">string sql text</param>
public void ExecuteCommand(string sSQL)
{
this._objCmd.CommandType = CommandType.Text;
this._objCmd.CommandText = sSQL;
this._objCmd.ExecuteNonQuery();
}
/// <summary>
/// close the connection
/// </summary>
///
/// <summary>
/// Execute a nonquery
/// </summary>
/// <param name="sSQL">string sql text</param>
public void ExecuteProcedure(string sSQL)
{
this._objCmd.CommandType = CommandType.StoredProcedure;
this._objCmd.CommandText = sSQL;
this._objCmd.ExecuteNonQuery();
}
/// <summary>
/// close the connection
/// </summary>
public void CloseConnection()
{
if (this._objCon != null)
{
this._objCon.Close();
this._objCon.Dispose();
}
}
/// <summary>
/// Get the maximum number in a integer colum in a teble
/// </summary>
/// <param name="sSQL">query text</param>
/// <returns>int newcode</returns>
public int GetNewCode(string sSQL)
{
SqlCommand _objCmd = new SqlCommand(sSQL, this._objCon);
this._objReader = _objCmd.ExecuteReader();
int iNewCode;
this._objReader.Read();
if (this._objReader.IsDBNull(0) == true)
iNewCode = 1;
else
iNewCode = Convert.ToInt32(this._objReader[0]) + 1;
this._objReader.Close();
return iNewCode;
}
/// <summary>
/// Executes a query and return a dataset
/// </summary>
/// <param name="sSQL">string query text</param>
/// <returns>dataset</returns>
public SqlDataAdapter ExecuteDataSet(string sSQL)
{
this._objCmd.CommandType = CommandType.Text;
SqlDataAdapter da = new SqlDataAdapter(sSQL, this._objCon);
return da;
}
/// <summary>
/// Remaves the time field from datetime and returns the specified
format date
/// </summary>
/// <param name="date"></param>
/// <param name="format">0 for US format(mm/dd/yyyy) and 1 for UK
format dd/mm/yyyy</param>
/// <returns></returns>
public string FormatDate(string date,int format)
{
string _strTempDate = null;
if (format == 1)
{
string[] temp = date.Substring(0, date.IndexOf("
")).Split('/');
_strTempDate = temp[1] + "/" + temp[0] + "/" + temp[2];
}
if (format == 0)
{
_strTempDate = date.Substring(0, date.IndexOf(" "));
}
return _strTempDate;
}
}