Professional Documents
Culture Documents
Online Voting System Analaysis
Online Voting System Analaysis
system
Abstract
Aim:
The motto of the project is to build an enterprise site, which should
SYSTEM ANALYSIS
Existing System
1.proxy voting
register post. The problem with this system is that not always the ballets are
riched in time. The proxy person may exercise other ballet then the one
Proposed System
1
Online voting
system
In propose system remote and users can exercise .There voter within any favour
using this system any level of voting like ,lokha sab voting,rajya sab voting etc.
In the proposed system we can get the result without manually counting.The
party.
1. Time saving
2
Online voting
system
Modules description
page .
3Prepare for Election:It check prepare for election like election no and
candidates no.
public.
3
Online voting
system
SYSTEM DESIGN
BLOCK DIAGRAM
Election
Election
Commissioner
Commissioner
Voting
VotingDay
DaySet
Set
Voter Id
4
Online voting
system
City
Personal Information
Result
Candidate View
State Wise
Cast Vote
Party Wise
Voter ID Result
validation
5
Online voting
system
Candidate
All Voters
Voting
Candidate List
Result
E-R Diagram
Block
State Addresss
Participates
Party
Voting
Candidate
Date
has
Vote no
No
Candidates Name
Party
Total vote
Result
Vote no Winner
DataBase Table
7
Online voting
system
Voter registration
8
Online voting
system
Candidate Details
9
Online voting
system
Form Design
10
Online voting
system
11
Online voting
system
12
Online voting
system
Generate voter ID
13
Online voting
system
14
Online voting
system
15
Online voting
system
Election details
16
Online voting
system
17
Online voting
system
18
Online voting
system
Counting form
19
Online voting
system
20
Online voting
system
Source Code
void Page_Load()
Label1.Text=Session["election"].ToString();
Response.Redirect("ElecGenerateVoterId.aspx");
Response.Redirect("ElecPrepareCandidates.aspx");
21
Online voting
system
Response.Redirect("InsertParty.aspx");
Response.Redirect("AutomaticCounting.aspx");
Response.Redirect("ElecPrepareElection.aspx");
22
Online voting
system
Void page_load()
catch(Exception ex)
Response.Write(ex.ToString());
#region this method inert the voter registration data into the database
23
Online voting
system
database=\'onlinevoting\'";
System.Data.SqlClient.SqlConnection(connectionString);
[voter_password], [voterretypepasswor" +
@voterretypepas" +
System.Data.SqlClient.SqlCommand();
dbCommand.CommandText = queryString;
dbCommand.Connection = dbConnection;
System.Data.SqlClient.SqlParameter();
dbParam_voterid.ParameterName = "@voterid";
dbParam_voterid.Value = voterid;
dbParam_voterid.DbType = System.Data.DbType.String;
dbCommand.Parameters.Add(dbParam_voterid);
System.Data.SqlClient.SqlParameter();
dbParam_voter_password.ParameterName = "@voter_password";
dbParam_voter_password.Value = voter_password;
24
Online voting
system
dbParam_voter_password.DbType = System.Data.DbType.String;
dbCommand.Parameters.Add(dbParam_voter_password);
System.Data.SqlClient.SqlParameter();
dbParam_voterretypepassword.ParameterName = "@voterretypepassword";
dbParam_voterretypepassword.Value = voterretypepassword;
dbParam_voterretypepassword.DbType = System.Data.DbType.String;
dbCommand.Parameters.Add(dbParam_voterretypepassword);
System.Data.SqlClient.SqlParameter();
dbParam_state.ParameterName = "@state";
dbParam_state.Value = state;
dbParam_state.DbType = System.Data.DbType.String;
dbCommand.Parameters.Add(dbParam_state);
System.Data.SqlClient.SqlParameter();
dbParam_area.ParameterName = "@area";
dbParam_area.Value = area;
dbParam_area.DbType = System.Data.DbType.String;
dbCommand.Parameters.Add(dbParam_area);
System.Data.SqlClient.SqlParameter();
dbParam_block.ParameterName = "@block";
dbParam_block.Value = block;
25
Online voting
system
dbParam_block.DbType = System.Data.DbType.String;
dbCommand.Parameters.Add(dbParam_block);
int rowsAffected = 0;
dbConnection.Open();
try {
rowsAffected = dbCommand.ExecuteNonQuery();
finally {
dbConnection.Close();
return rowsAffected;
#endregion
int i=InsertElection(NewElectionNumber(),
DateTime.Parse(txtDate.Text), txtElecType.Text,txtState.Text);
26
Online voting
system
if(i>0)
int NewElectionNumber() {
trusted_connection=true; database=\'onlinevoting\'";
System.Data.SqlClient.SqlConnection(connectionString);
System.Data.SqlClient.SqlCommand();
dbCommand.CommandText = queryString;
dbCommand.Connection = dbConnection;
dbConnection.Open();
System.Data.IDataReader dataReader =
dbCommand.ExecuteReader(System.Data.CommandBehavior.CloseConnection);
int i=0;
while(dataReader.Read())
try
27
Online voting
system
i=int.Parse(dataReader[0].ToString());
}catch(Exception ex)
i++;
return i;
trusted_connection=true; database=\'onlinevoting\'";
System.Data.SqlClient.SqlConnection(connectionString);
System.Data.SqlClient.SqlCommand();
dbCommand.CommandText = queryString;
dbCommand.Connection = dbConnection;
28
Online voting
system
System.Data.SqlClient.SqlParameter();
dbParam_election_no.ParameterName = "@election_no";
dbParam_election_no.Value = election_no;
dbParam_election_no.DbType = System.Data.DbType.Int32;
dbCommand.Parameters.Add(dbParam_election_no);
System.Data.SqlClient.SqlParameter();
dbParam_date.ParameterName = "@date";
dbParam_date.Value = date;
dbParam_date.DbType = System.Data.DbType.DateTime;
dbCommand.Parameters.Add(dbParam_date);
System.Data.SqlClient.SqlParameter();
dbParam_election_type.ParameterName = "@election_type";
dbParam_election_type.Value = election_type;
dbParam_election_type.DbType = System.Data.DbType.String;
dbCommand.Parameters.Add(dbParam_election_type);
System.Data.SqlClient.SqlParameter();
dbParam_state.ParameterName = "@state";
dbParam_state.Value = state;
dbParam_state.DbType = System.Data.DbType.String;
dbCommand.Parameters.Add(dbParam_state);
int rowsAffected = 0;
dbConnection.Open();
29
Online voting
system
try {
rowsAffected = dbCommand.ExecuteNonQuery();
finally {
dbConnection.Close();
return rowsAffected;
DataGrid1.DataSource=ElectionDetails();
DataGrid1.DataBind();
System.Data.DataSet ElectionDetails() {
trusted_connection=true; database=\'onlinevoting\'";
System.Data.SqlClient.SqlConnection(connectionString);
30
Online voting
system
System.Data.SqlClient.SqlCommand();
dbCommand.CommandText = queryString;
dbCommand.Connection = dbConnection;
System.Data.SqlClient.SqlDataAdapter();
dataAdapter.SelectCommand = dbCommand;
dataAdapter.Fill(dataSet);
return dataSet;
</script>
<html>
<head>
</head>
<body>
<form runat="server">
bgcolor="cornflowerblue" border="3">
<tbody>
<tr>
<td>
<p>
Copyright from integrated ideas consultancy services 2003-2011
31
Online voting
system
text="Name of the
Election"></asp:Label> &n
bsp; &n
bsp;
<asp:TextBox id="txtElecType"
runat="server"></asp:TextBox>
</p>
<p>
Date of the
Election &nbs
p; &nbs
p;
TextMode="SingleLine"></asp:TextBox>
yy/mm/dd
</p>
<p>
text="State"></asp:Label>  
;  
;  
;  
;
<asp:TextBox id="txtState"
runat="server"></asp:TextBox>
32
Online voting
system
</p>
<p>
</p>
<p>
</p>
</td>
</tr>
</tbody>
</table>
bgcolor="cornflowerblue" border="3">
<tbody>
<tr>
<td>
33
Online voting
system
width="537px" backcolor="#C0C0FF"></asp:Label></td>
</tr>
</tbody>
</table>
bgcolor="cornflowerblue" border="3">
<tbody>
<tr>
<td>
<p>
<asp:Button id="Button1"
<asp:Button id="Button2"
Details"></asp:Button>
</p>
34
Online voting
system
<p>
</p>
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
35
Online voting
system
select
vote.election_no,vote.candidate_no,candidate.name,vote.total_vote,party.
name as party,candidate.state,candidate.block from vote,party,candidate
where (total_vote =(select max(total_vote) from vote where
election_no=1)) and (party.name=candidate.party) and
(candidate.candidate_no=vote.candidate_no) and (candidate.block in
(select distinct(block)from candidate))
36
Online voting
system
SYSTEM ENVIRONMENT
Software Requirements
Technology : ASP.Net.
Hardware Requirement
37
Online voting
system
FUTURE ENHANCEMENT
The future scope for this software is very dynamic. Next stage may be
it.
38
Online voting
system
CONCLUSION
center. Many users like army personal or NRI cannot come to the
which the users can vote over the online.It will be greatest of
advantage for NRI and personWhich are go outside of the country the
39
Online voting
system
BIBLIOGRAPHY
ans S. B. Navathe
40
Online voting
system
41