PROJECT REPORT - E-Voting Synopsis
PROJECT REPORT - E-Voting Synopsis
PROJECT REPORT - E-Voting Synopsis
Project Report Of
BCSP-064
On
E- Voting System
To
(School Of Computer & Information Science
Indira Gandhi National Open University
Maidan Garhi, New Delhi-110068)
Submitted By
E- Voting System
Contents Of Synopsis
Name: RAJENDRA PRASAD
Platform: ASP.Net
Enrolment No: 145414649
1|D e vel op ed By : RAJ END RA PRA SA D (BCA - 1 4 5 41 4 6 49 )
Programme Code: BCA
Contents Of Synopsis
1. Title of the project 3
2. Introduction 4
3. Objective of The project 6
4. Project Category 8
5. Planning & Scheduling Technique 12
6. Software Requirement Specification 13
7. System Development Life Cycle 14
8. Module Description 15
9. Analysis 17
9.1. DFD 17
9.2. ERD 22
10. Data Structure 24
11. Input Screen 26
12. Output Screen 35
13. Source Code 43
14. Testing 84
15. Report Generation 89
16. Future Scope 90
17. Limitation 91
18. Bibliography 92
E- Voting System
(ASP.Net & Sql)
like other online services like “Online Reservation system”. In this system
college students, can give his\her vote online without going to college and
that ID and Password he\she can use his\her vote. E- Voting is a web based
elections and make it convenient for voters to vote remotely from their home
The main objective to develop the system is to make the accurate &
and accurate.
Up-to-date Information.
the details of voter, voting results, candidates data etc. stored in the
form of database.
uses the transact-SQL to send request between the client and SQL server.
constructed so that the database can reside on central computer known as Server and be
shared among several users. When users want to access the data in SQL server, they
run an application on their local computer known as client that connects over a
network to the server running SQL server. SQL server can work with thousands of
client applications simultaneously. The server has features to prevent the logical
problems that occur if a user tries to read or modify data currently being used by
capable of working as a stand-alone database directly on the client. The scalability and
ease of use features of SQL server allow it to work efficiently on a client without
resources such as memory, network bandwidth and disk I/O among the multiple users.
data.
direction.
Various reports can be produced from the system. These may either
calculations.
ASP.NET 2012 allows users to write programs that break down into modules. These
modules will represent the real-world objects and are knows as classes or types. An
object can be created out of a class and it is known as an instance of the class. A class
can also comprise subclass. For example, apple tree is a subclass of the plant class and
the apple in your backyard is an instance of the apple tree class. Another example
is student class is a subclass of the human class while your son John is an instance of
Introduction Of C#
Corporation, USA. C# is fully object oriented language like java and is the first
component-oriented language. It has been designed to support the key features of .Net
Framework, the new development platform of Microsoft for building component based
objectives of C# are: -
productivity of visual Basic, the power of C++ and the elegance of java.
11 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
5. Planning & Scheduling Technique
Planning and scheduling technique for this project I choose Gantt chart. It is a graphical
Task achieved 1 2 3 4 5 6 7 8
( in weeks)
Analysis
Requirement
Gathering
Design
Coding
Testing
Implementation
Maintenance
12 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
6. Software Requirement Specification
HARDWARE & SOFTWARE
RAM 1 GB 2 GB/4 GB
– 16-bit or more
Mouse/Key USB Compatible with Compatible with System
SOFTWARE
13 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
7. System Development Life Cycle
are developed. There are several life cycle models available in the industries,
which has been tested and implemented over a long period of time. Following
Waterfall Model
Prototype Model
Spiral Model
We can choose any above mention model to develop for required application
and desired result, but after detailed studying and lots of research it was decided
to develop this proposed project on the basis of the Waterfall Model because it
System
14 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
8. Module Description
Number of Modules and their Description:
E-Voting System includes the following functionalities in the Voting:
1. Home
2. About Us
3. Registration
4. Login
5. Voting
6. Admin
7. Voting Result
8. Contact US
Home Module: -
This module contain complete information of this system.
About Us Module: -
Using this module anybody know about complete details of our system.
Registration Module: -
New user can register with us using this module.
Login Module: -
Registered User can login using this module and perform basic work defined by the
system.
15 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
Voting Module: -
Using this module user can perform in voting function as defined by the system.
Admin Module: -
In this module, Admin can login. And after login he\she can do following tasks:
Can Add the Candidates
Can Declare the Election Result
Can end or Can Defines the end date of the Election.
Voting Result: -
In this module, user can view about the result of voting
Contact Us: -
Using this module user can Contact with us and share their experience.
16 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
9.Analysis Of The Project
9.1Data Flow Diagram
A Data flow diagram is a graphical representation of the “flow” of data
through an information system. A DFD shows what kind of information will
be input to and output from the system, where the data will come from and
go to, and where the data will be stored.
17 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
E-Voting DFD: Level 0
Login
Login
Voter E- Admin
See Candidates
Vote
18 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
E-Voting DFD: Level 1
Voter
Do
Login Election/
Vote
Process Pending
Elections
Votes
Election
See
Candidates
Candidate Result
Admin
19 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
DFD Level 2: Admin Process
Admin
Login With
username
and
password
Login With
username
and
password
Candidate
See Candidates
Election Process
Admin
Add
election Election
Arrange
Election
Show
Result
20 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
Voters Registrations Process
Voter
Login View
Candidate
Candidate
Registration
Do
Vote
Votes
21 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
9.2 ER Diagram
An E R diagram is a model that identifies the concept or entities that exist in a system
and the relationships between those entities. An ERD is often used as a way to
visualize a relational database: each entity represents a database table and the
relationship lines represents the key in one table that point to specific records in related
tables.
22 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
Total Votes
E_id
ER Diagram: C_id
V_name V_Add
E_id R_ID
V_mobile
V_id
See Show
Votes
Description
Name
Contact_No
Add
E_id
End_Date Candidate
Start_Date Username
23 | D e v e l o p e d B y : R A JName
ENDR A PRASAD (BCA- 145414649) Password
10. Data Structure
Tables:-
Admin Login
Column Name Data Type Constraints Size
Username Varchar No 20
Password Varchar No 20
Voter Login
Column Name Data Type Constraints Size
User Name Varchar No 20
Password Varchar No 20
Voter Registration
Column Name Data Type Constraints Size
V_id Int Primary Key 10
V_Name Varchar No 30
V_add Varchar No 30
Username Varchar No 30
Password Varchar No 30
V_Mob Int No 15
24 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
Candidate Table
Column name Data Type Constraint Size
C_id Int Primary Key 20
E_id Int Foreign Key 20
Name Varchar No 30
Description Varchar No 100
Contact_No Int No 20
Result Table
Column Name Data Type Constraint Size
R_Id Int Primary Key 10
Total_Votes Int No 10
C_id Int Foreign Key 10
E_id Int Foreign Key 10
Election
Column Name Data Type Constraints Size
E_id Int Primary Key 10
Start Date Int No 10
End Date Int No 10
25 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
11.Input Screen
http://localhost:2699/RAJENDRA-PRASAD/Index.aspx
26 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
27 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/About-Us.aspx
28 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/Login.aspx
29 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/Register.aspx
30 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/voting.aspx
31 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/result.aspx
32 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/Login.aspx
33 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/Help.aspx
34 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
12.Output Screen
http://localhost:2699/RAJENDRA-PRASAD/Index.aspx
35 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/About-Us.aspx
36 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/Login.aspx
37 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/Register.aspx
38 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/voting.aspx
39 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/result.aspx
40 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/Login.aspx
41 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/Help.aspx
42 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
13.Source Code
http://localhost:2699/RAJENDRA-PRASAD/Index.aspx
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title><%:Page.Title %>|E-Voting</title>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</asp:ContentPlaceHolder>
</head>
<body>
<div class="container-fluid">
<div class="navbar-header">
43 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<a class="navbar-brand" href="Index.aspx"><img
src="Images/logo-top.png" class="logo"/></a>
</div>
<li><a href="Login.aspx">Login</a></li>
<li><a href="Register.aspx">Register</a></li>
<li><a href="voting.aspx">Voting</a></li>
<li><a href="Login.aspx">Admin</a></li>
</ul>
</div>
</nav>
<div>
<asp:ContentPlaceHolder id="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</div>
text-align:center">
44 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<p class="footer-line">© E-Voting| All rights Reserved</p>
</div>
</form>
</body>
</html>
45 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<%@ Page Title="Home" Language="C#"
MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</div>
<div class="col-lg-12">
<div class="col-lg-8">
<p style="padding-top:1em;font-size:17px;"><b>E-Voting</b>
system has created to provide you easy voting from the paper voting.
<ul>
</ul>
46 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
</div>
<div class="col-lg-4">
btn-primary btn-lg">Login</button></a>
btn-lg">Register</button></a>
</div>
</div>
</asp:Content>
47 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/About-Us.aspx
MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</div>
<div class="col-lg-12">
Voting</b> System</h3>
votes.</p>
48 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<center><a href="Register.aspx"><button type="submit" class="btn
</div>
</asp:Content>
49 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/Login.aspx
MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="container">
<div class="row">
#e7e7e7;">
top:8em;" class="img-responsive"/>
</div>
<div class="col-lg-8">
<br />
<div class="form-group">
<label for="username">Username:</label>
<br />
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<br />
</div>
<div class="checkbox">
</div>
<br />
</div>
</div>
51 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
</form>
</div>
</asp:Content>
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;
SqlConnection con;
SqlCommand cmd;
52 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
SqlDataReader rd;
public Default2()
source=admin-PC\\SQLEXPRESS;integrated security=true");
con.Open();
rd = cmd.ExecuteReader();
53 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
protected void Button2_Click(object sender, EventArgs e)
TextBox1.Text = "";
TextBox2.Text = "";
54 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/Register.aspx
MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="container">
<div class="row">
#e7e7e7;">
top:8em;" class="img-responsive"/>
</div>
<div class="col-lg-8">
55 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<br /><br />
<hr />
<br />
<div class="col-lg-6">
<label class="form-title">Full
Name</label><br />
<asp:TextBox ID="TextBox2"
runat="server"></asp:TextBox>
<br />
</div>
<div class="col-lg-6">
<label class="form-
title">Username</label><br />
<asp:TextBox ID="TextBox3"
runat="server"></asp:TextBox>
<br />
</div>
<div class="col-lg-6">
56 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<label class="form-
title">Password</label><br />
<asp:TextBox ID="TextBox4"
runat="server"></asp:TextBox>
</div>
<div class="col-lg-6">
<label class="form-
title">Contact</label><br />
<asp:TextBox ID="TextBox5"
runat="server"></asp:TextBox>
<br />
</div>
<div class="col-lg-12">
<label class="form-
title">Address</label><br />
<asp:TextBox ID="TextBox6"
runat="server"></asp:TextBox>
</div>
<div class="col-lg-12">
<br />
<br />
Text="SUBMIT" />
<br />
57 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<a href="Login.aspx"><p>Already a
Member? Login</p></a>
</div>
</div>
</form>
</div>
</asp:Content>
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;
SqlConnection con;
SqlCommand cmd;
58 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
SqlDataReader rd;
public Default2()
source=admin-PC\\SQLEXPRESS;integrated security=true");
con.Open();
59 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
cmd = new SqlCommand("insert into reg_table values(" + data1
con);
rd = cmd.ExecuteReader();
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
60 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/voting.aspx
MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="container">
61 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<br /><br />
<div class="row">
#e7e7e7;">
top:8em;" class="img-responsive"/>
</div>
<div class="col-lg-8">
<hr />
<br />
<div class="col-lg-6">
<asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox>
<br />
</div>
62 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<div class="col-lg-6">
<asp:TextBox ID="TextBox2"
runat="server"></asp:TextBox>
<br />
</div>
<div class="col-lg-6">
<asp:TextBox ID="TextBox3"
runat="server"></asp:TextBox>
</div>
<div class="col-lg-6">
<asp:TextBox ID="TextBox4"
runat="server"></asp:TextBox>
<br />
</div>
<div class="col-lg-12">
<asp:TextBox ID="TextBox5"
runat="server"></asp:TextBox>
<br />
<br />
63 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
</div>
<div class="col-lg-12">
<br />
<br />
<a href="Login.aspx"><p> </p></a>
</div>
</div>
</form>
</div>
</asp:Content>
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;
64 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
public partial class Default : System.Web.UI.Page
SqlConnection con;
SqlCommand cmd;
SqlDataReader rd;
public Default1()
source=admin-PC\\SQLEXPRESS;integrated security=true");
65 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
con.Open();
+")", con);
rd = cmd.ExecuteReader();
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
66 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
http://localhost:2699/RAJENDRA-PRASAD/result.aspx
MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
Runat="Server">
67 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<style type="text/css">
.style1
text-decoration: underline;
.style2
font-weight: bold;
text-decoration: underline;
.style3
height: 21px;
</style>
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</div>
<div class="col-lg-12">
Voting</b> | RESULT
MODULE</h3>
68 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<p style="text-align:center; font-size:15px;"><b>E-
votes.</p>
class="style1"><strong>Following are
months.</strong></p>
class="style1">
<tr>
<td class="style2">
Election Id</td>
<td class="style2">
Start Date</td>
<td class="style2">
End Date</td>
<td class="style2">
Voting Result</td>
</tr>
69 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<tr>
<td class="style3">
</td>
<td class="style3">
</td>
<td class="style3">
</td>
<td class="style3">
</td>
</tr>
<tr>
<td>
E001</td>
<td>
15.03.2017</td>
<td>
30.03.2017</td>
<td>
<br />
</tr>
<tr>
70 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
71 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
E002</td>
<td>
30.03.2017</td>
<td>
30.04.2017</td>
<td>
Total Vote :
<br />
<br />
</tr>
<tr>
<td>
</td>
<td>
</td>
72 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<td>
</td>
<td>
</td>
</tr>
</table>
</p>
</div>
</a>
</asp:Content>
http://localhost:2699/RAJENDRA-PRASAD/Login.aspx
73 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<%@ Page Title="Login" Language="C#"
MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="container">
<div class="row">
#e7e7e7;">
top:8em;" class="img-responsive"/>
</div>
<div class="col-lg-8">
<hr />
<br />
74 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<div class="form-group">
<label for="username">Username:</label>
<br />
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<br />
</div>
<div class="checkbox">
</div>
<br />
</div>
</div>
</form>
</div>
75 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
</asp:Content>
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;
SqlConnection con;
SqlCommand cmd;
SqlDataReader rd;
public Default2()
76 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
con = new SqlConnection("initial catalog=votingdb;data
source=admin-PC\\SQLEXPRESS;integrated security=true");
con.Open();
rd = cmd.ExecuteReader();
TextBox1.Text = "";
TextBox2.Text = "";
77 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
}
http://localhost:2699/RAJENDRA-PRASAD/Help.aspx
MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
Runat="Server">
<style type="text/css">
.style1
text-decoration: underline;
</style>
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</div>
<div class="col-lg-12">
78 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<h3 style="text-align:center"><b style="color:#C70039">E-
<h3 style="text-align:center"> </h3>
</strong></h3>
<h3 style="text-align:center"><strong>Enrollment
No.:145414649 </strong></h3>
<h3 style="text-align:center"><strong>Program:
BCA</strong></h3>
NEW DELHI</strong></p>
Vote?</b></h3>
<div class="col-lg-8">
<ul>
79 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
<li>At the end just vote for your favorite
Candidate</li>
</ul>
</div>
<div class="col-lg-4">
class="help" /></a>
</div>
</div>
</asp:Content>
CSS CODE
.logo {
width:250px;
.navbar-inverse {
margin-bottom:0px !important;
80 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
.navbar {
border-radius:0px !important;
.nav > li {
margin-top: 1em;
.navbar-inverse .navbar-nav>li>a{
font-size:16px !important;
/*.footer {
background-color:#333;
width:100%;
min-width:100%;
max-width:100%;
padding-bottom:5px;
padding-top:5px;
margin-top:8em;
height:auto;
float: left;
81 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
}
*/
.banner {
background-size:cover;
width:100%;
min-height:400px;
max-height:400px;
.btn {
margin-top:1em !important;
.form-control {
width:75% !important;
img.help {
width:130px !important;
min-width:130px !important;
max-width:130px !important;
max-height:90px !important;
82 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
min-height:90px !important;
83 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
14.Testing To Be Used
Basis Path Testing
Test cases are derived to exercise the basis set that guarantee that every statement in
the program is executed at least once during testing. It is applied in series of steps.
Condition Testing: Condition testing is a test case design method that exercises the
one of the conditions is incorrect. So, types of errors in a condition include Boolean operator
parenthesis error, relational operator error and arithmetic expression error. It mainly
focuses on testing each condition in the program. The condition testing strategies to be
employed are:
Branch testing: For a compound condition C, the true and false branches of C and every
Domain testing: It requires three or four tests to be derived for a relational expression. For
E1 <relational operator> E2
Three tests are required to make the value of E1 greater than, equal to, or less than that of
E2.
84 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
Boolean Expression testing: A condition without relational expression with n variables, all of
2n possible tests are required provided n > 0. This strategy can detect boolean operator,
that are modeled in software and the relationships that connect the objects. Once this has
been accomplished, the next step is to define a series of tests that verify all objects that
All logical decisions have been exercised on their true and false sides
All loops are executed at their boundaries and within their operational bounds
All internal data structures have been exercised to assure their validity.
To follow the concept of white box testing we have tested each form .we have
exercised to check their validity, All loops are executed on their boundaries.
85 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
2. BASIC PATH TESTING
derive test cases for all the functions. The main steps in deriving test cases
were:
Use the design of the code and draw correspondent flow graph.
V(G)=E-N+2 or
V(G)=P+1 or
V(G)=Number of Regions
3. CONDITIONAL TESTING
In this part of the testing each of the conditions were tested to both true and
false aspects. And all the resulting paths were tested. So that each path that
86 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
4. DATA FLOW TESTING
This type of testing selects the path of the program according to the location of
definition and use of variables. This kind of testing was used only when some
local variable were declared. The definition-use chain method was used in this
5. LOOP TESTING
In this type of testing all the loops are tested to all the limits possible. The
following exercise was adopted for all loops:
All the loops were tested at their limits, just above them and just below
them.
For nested loops test the inner most loop first and then work outwards.
For concatenated loops the values of dependent loops were set with the help
of connected loop.
Each unit has been separately tested by the development team itself and all the
input have been validated.
87 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
TESTING RESULT
Overall Test Results
88 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
15.Report Generation
It is designed by the Seagate Software Inc USA. Crystal Report provides data access from lot
of data source like Access, Oracle, Dbase, Sybase, Paradox and Sql Server.
Crystal Report can publish report to the windows in a variety of formats. Crystal Report can
89 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
16.Future Scope Of This Application
As this website provides better way of election between persons and college
students and college parties, hence we suppose that this project has a greater
voting to be at home.
This application avoids the manual work and the problems concern with it.
Future Application:
Right now, this website is only for college elections but in the
90 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
17. Limitation
This Project is a Customize project so here we cannot complete all the requirements but
This package cannot run on the other client interface required with some modification
This project is web base applications so web server should be fast to run this properly
91 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
18.BIBLIOGRAPHY
The following books were referred during the analysis and execution phase
of the project:
92 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )
Web Sites:
www.google.com
www.w3schools.com
www.dotnetspider.com
www.microsoft.com
93 | D e v e l o p e d B y : R A J E N D R A P R A S A D ( B C A - 1 4 5 4 1 4 6 4 9 )