Project Report
Project Report
Project Report
PROJECT: - OPTIMIZED ELECTRONIC VOTING SYSTEM ORGANIZATION:-SHEKHAWATI ENGINEERING COLLEGE PLATFORM:-WINDOWS 7 FRONT END:-ASP.NET BACK END:-SQL SERVER 2008 PREPARED BY:-ARCHANA KUMARI & SUMIT SAURAV
CHAPTER- 2
INTRODUCTION
1) Introduction: 1.1) Purpose: Contact Management is for establishing and sustaining the business relationships by maintaining valuable customer information. It also integrates the Support Desk, which gives an overall view of all the customer relationships. The central repository enables to track accountlevel data, service level agreements, user contact information and product ownership details. 1.2) Scope: Create different system users and assign different roles with related permissions.
Manage all the account details such as user name, company, phone numbers, address
websites, email addresses of the entire customer from one central location. Track all the customers and their contact details. Maintain the services provided to the customer through Service Level Agreements. Track all the payment details of the customer and their product ownership detail. Group the contacts together in a single account according to some criteria.
Capture, View and edit all user transactions, including email, chats, and services calls in a
single system.
Confirmation of end user identity and will verify which users are authorized to receive
support.
Maintain history of each customer and their related information about the product sale,
SLA & support related transactions. Anticipate the need and potential of sales opportunities. View all the details of all the interactions made with the customer.
Activities like updating, creations done in the system by the system users will be
maintained in the form of logs for auditing and maintaining the integrity of the system.
CHAPTER- 3
PLATFORM
3.1. System configuration required for our project is as:Hardware Required:-RAM:-1GB (min), HARD DISK:-3.2GB (min) PROCESSOR:-P4 or HIGHER; Software Required:-WINDOWS 7, VISUAL STUDIO 2010 and SQL SERVER 2008;
CHAPTER- 4
TECHNOLOGY USED
4.1 ASP.NET ASP.NET is a programming framework built on the common language runtime that can be used on a server to build powerful web application. ASP.NET offers several important advantages over the previous web development models:
Interoperability: - Because interaction between new and older application is commonly required, the .net framework provides means to access functionality that is implemented in program that executes outside the .net environment.
Language independence: - The .net framework introduces a common type system or CTS. The CTS specification defines all possible data types and programming constructs supported by the CLR and how they may or may not intract each other. Because of this feature the .NET framework supports development in multiple programming languages.
Enhanced performance: - ASP.NET is compiled common language runtime code running on the server. Unlike its interpreted predecessors, ASP.NET can take advantage of early binding, just in time compilation, native optimization, and caching services right out of the box. This amounts to dramatically better performance before you ever write a line of code.
World class tool support: - The ASP.NET framework is complemented by a rich tool box and designer in the visual studio integrated development environment. WYSIWYG editing, drag-and-drop server controls, and automatic development are just a few features this powerful tool provides.
Common run time engines: - Programming language on the .NET framework compiles into an intermediate language known as the common intermediate language (CIL).
Microsofts implementation of CIL is known as Microsoft intermediate language or MSIL. In Microsofts implementation, this intermediate language is not interpreted, but rather compiled in a manner known as just-in-time compilation (JIT) into native code. The combination of these concepts is called the common language infrastructure (CLI). The Microsofts implementation of the CLI is known as common language runtime (CLR).
Power and flexibility: - Because ASP .NET is based on the common language runtime, the power and flexibility of the entire platform is available to web application developers. The .NET framework class library, messaging, and Data access solutions are all seamlessly accessible from the web. ASP .NET is also language-independent, so you can choose the language that best applies to your application or partition your application across many languages. Further, common language runtime interoperability guarantees that your existing investment in COM- based development is preserved when migrating to ASP.NET.
Simplicity: - ASP .NET makes it easy to perform common tasks from simple form submission and client authentication to deployment and site configuration. For example the ASP .NET page frame work allows you to build user interfaces that cleanly separate application logic from presentation code and to handle events in a simple, Visual basiclike forms processing model. Additionally, the common language runtime simplifies development, with managed code services such as automatic reference counting and garbage collection.
Manageability: - ASP.NET employs a text based, hierarchical configuration system, which simplifies applying setting to your server environment and web applications. Because configuration information is stored as plain text, new setting may be applied without the aid of local administration tools. This zero local administration philosophy extends to deploying ASP.NET framework application is deployed to server. No server restart is required, even to deploy or replace running compile code.
Scalability and availability: - ASP .NET has been designed with scalability in mind,
with features specially tailored to improve performance in clustered and multiprocessor environments. Further processes are closely monitored and managed by the ASP .NET runtime, so that if one misbehaves (leaks), a new process can be created in its place, which helps keep your application constantly available to handle requests.
Customizability and Availability: - ASP .NET delivers a well-factored architecture that allows developers to plug in their code at the appropriate level. In fact, it is possible to extend or replace any subcomponent of the ASP .NET run time with your own customwritten component. Implementing custom authentication or state services has never been easier.
Security: - With built in windows authentication and per-application configuration, you can be assured that your applications are secure.
Base class library: - The base class library sometimes referred to as the frame class library (FCL), is a library of types available to all languages using the .NET framework. The BCL provides classes which encapsulate a number of common functions, including file reading and writing, graphics rendering, database interaction and xml document manipulation.
Simplified deployment: - Installation of computer software must be carefully managed to ensure that it does not interfere with previously installed software, and that it confirms to increasingly stringent security requirements. The .NET framework includes design features and tools that helps address these requirements.
4.1.1 ASP .NET WEB FORMS THE ASP.NET web forms page forms page framework is a scalable common language runtime programming model that can be used on the server to dynamically generate web pages.
Intended as a logical evolution of ASP(ASP. NET provides syntax compatibility with existing pages), the ASP .NET web forms framework has been specifically designed to address a number of key deficiencies in the previous model. In particular, it provides:
The ability to create and use reusable UI controls that can encapsulate common functionality and thus reduce the amount of code that a page developer has to write. The ability for developer to cleanly structure their page logic in an orderly fashion (not spaghetti code). The ability for development tools to provide strong WYSIWYG design support for pages (existing ASP code is opaque to tools).
ASP .NET web forms pages are text files with an .aspx file name extension. They can be deployed through an IIS virtual root directory tree. When a browser client requests .aspx resources, the ASP .NET runtime parses and compiles the target file into a .net framework class. This class can then be used to dynamically process incoming requests. (Note that the .aspx file is compiled only the first time it is accessed; the compiled type instances is then reduced across multiple requests). An ASP .NET page can be created by simply taking an existing HTML file and changing its file name extension to .aspx (no modification of code is required). For example the following sample demonstrates a simple HTML page that collects a users name and category preferences and then performs a form post back to the originating page when a button is clicked:
4.1.2 Using ASP <% %> Render Blocks ASP.NET provides syntax compatibility with existing ASP pages. This includes support for <% %> code render blocks that can be intermixed with HTML content within an .aspx file. These code blocks execute in a top-down manner at page render time. ASP.NET page developers can utilize <% %> code blocks to dynamically modify HTML output much as they can today with ASP. For example, the following sample demonstrates how <% %> code blocks can be used to interpret result post back from a client.
While <% %> code blocks provides a powerful way to custom manipulate the text output returned from an ASP.NET page, they do not provide a clean HTML programming model. As the sample above illustrates, developers using only <% %> code blocks must custom manage page state between round trips and custom interpret posted.
4.1.3 CODE BEHIND WEB FORMS ASP .NET supports two methods of authoring dynamic pages. The first is the method shown in the preceding samples, where the page code is physically declared within the originating .aspx file. An alternative approach known code-behind method enables the page code to be more cleanly separated from the HTML content into an entirely separate file. 1. ASP.NET web forms provide an easy and powerful way to build dynamic web UI. 2. ASP.NET web forms pages can target any browser client (there is no any script library or cookie requirements). 3. ASP.NET web forms pages provide syntax compatibility with existing ASP pages.
4. ASP.NET server controls provide an easy way to encapsulate common functionality.
5. ASP.NET ships with 45 built-in server controls. Developers can also use controls built by third parties. 6. ASP.NET server controls can automatically project both up level and bottom level HTML. 4.1.4 AN ASP.NET APPLICATION ASP.NET defines an application as the sum of all files, pages, handlers, modules, and executable code that can be invoked or run in the scope of a given virtual directory (and its subdirectories) on a web application server. For example, an order application might be published in the /order virtual directory on a web server
computer. For IIS the virtual directory can be set up in the internet service manager, it contains all subdirectories, unless the subdirectories are virtual directories themselves. Each ASP.NET framework application on web server is executed within an unique .NET framework application domain, which guarantees class isolation (no versioning or naming conflicts), security sandboxing (preventing access to certain machine or network resources), and static variable isolation. ASP.NET maintains a pool of http application instances over the course of a web applications lifetime. ASP.NET automatically assigns one of these instances to process each incoming HTTP request that is received by the application. The particular http application instances assigned is responsible for managing the entire lifetime of the request and is reused only after the requests has been completed. This means that user code within the http application does not need to be re-entrant. 4.1.5 Creating an application To create an ASP.NET framework application you can use an existing virtual directory or create a new one. For example, if you installed windows 2000 server including IIS, you probably have a directory c:\Inetpub\WWWRoot. You can configure IIS using the internet service manager, available under start-> programs->administrative tools. Right click on an existing directory and choose either new (To create a new virtual directory) or properties (To promote an existing regular directory). By placing a simple .aspx page like the following in the virtual directory and accessing it with the browser, you trigger the creation of the ASP.NET application.
<%@Page Language=VB%> <Html> <body> <h1>hello world <% Response.write(DateTime.Now.ToString())%></h1> </body> </html>
C#
VB
Jscript
Now you can add appropriate code to use the application object to store objects with application scope, for example, by creating a global .aspx file you also can define various event handlers for the application start event. 4.1.6 LIFE TIME OF AN APPLICATION An ASP.NET framework application is created the time a request is made to the server, before that no, ASP.NET code executes. When the first request is made to the server, before that, no ASP.NET code executes. When the first request is made, a pool of http application instance is created and the application start event is raised. The http application instances process this and subsequent requests, until the last instance exists and the application end event end is raised. Note that the Init and Dispose methods of http application are called per instance and thus can be called several times between application start and application end. Only these events are shared among all instances of http application in one ASP.NET application
10
4.2 INTRODUCTION TO C# C# is a language targeted at developers for Microsoft .NET platform who have already worked with a C-like language such as C, C++, or JAVA. Unlike previous version of C or C++ for the Microsoft windows platform, C# code runs under a managed execution environment. While C and C++ developers using visual studio .NET can now write managed code using the managed extension for C++, C# offers a middle path between C++s overall power but sometimes difficult code and the higher-level task orientation provided by visual studio .NET. Microsoft portrays C# as a modern and innovative language for .NET development that will be familiar to current C++ programmers while allowing more runtime control over the executing code. C# allows you to perform many C/C++ like functions such as direct memory access via pointers and operator overloading that is not supported in visual basic .NET. Many of the interesting enhancements for .NET languages are slated to appear in first C#, such as generics. (You can think of generics as templates with a twist). C# is the system level programming language for .NET. You can still do great applications-level works in C#, but it really shines when you need to build code a little closer to the framework.
11
C# is a simple, modern, object oriented, and type-safe programming language derived from C and C++. C# (Pronounced as C SHARP) is firmly planted in the C and C++ family tree of languages, and will immediately be familiar to C and C++ programmers. C# aims to combine the high productivity of visual basic and the raw power of C++.
4.3 SQL SERVER OVERVIEW:Microsoft sql server is a structured query language (SQL) based, client/server relational database. Each of these terms describes a fundamental part of the architecture of SQL Server. Using SQL server, you can manage all your information from a single database file. Within the file, divide your data into separate storage container called tables, view, add and update table data by using online forms, find and retrieves just the data you want by using queries and analyze or print data in a specific layout by using report. Allow users to view, update or analyze the databases data from the internet or intranet by creating data access pages. To find and retrieve just the data that meet conditions that you specify, including data from multiple tables, create a query. A query can also update or delete multiple records at the same time, and perform predefined or custom calculations on your data.
12
To easily view, enter, change data directly in a table, create a form. When you open a form, SQL server retrieves the data from one or more tables, and displays it on the screen with the layout that you create from scratch. To analyze your data or present it a certain way in print, create a report. For example, you might print one report that groups data and calculates totals and another report with different data formatted for printing mailing labels. To make data available on the internet or an intranet for interactive reporting, data entry, or data analysis, use a data access page. Microsoft access retrieves the data from one or more tables and displays it on the screen with the layout you choose in the page wizard, or a layout that you create from scratch. Users can interact with the data by using features on the data access page.
4.3.1 DATABASE:A database is a collection of information that is related to a particular subject or purpose, such as tracking customer orders to maintaining a music collection. If your database is not stored on the computer, or only parts of it are, you may be tracking information from a variety of sources that you have to coordinate and organize yourself. A database is similar to a data file in that it is a storage place for data. Like a data file, a database does not present information directly to a user, the user runs an application that accesses data from the database and presents it to the user in an understandable format. A database typically has two components: the file holding the physical data and the database management system (DBMS) software that applications use to access data. The DBMS is responsible for enforcing the database structure including: Maintaining the relationship between data in database
13
Ensuring the data is stored correctly and that the rules defining data relationship are not violated. Recovering all data to a point of known consistency in case of system failure. 4.3.2 RELATIONAL DATABASE:There are different ways to organize the data in a database but relational database are one of the most effective. Relational database systems are an application of mathematical set theory to the problem of effectively organizing data. In a relational database, data is collected into tables (Called relations in relational theory). When organizing data into tables, you can usually find many different ways to define tables. Relational database theory defines a process, normalization which ensures that the set of tables you define will organize your data effectively.
4.3.3 CLIENT/SERVER:In a client/server system, the server is a relatively large computer in a central location that manages a resource used by many people. When individuals need to use the resource, they connect over the network from their computer, or clients to the server. Examples of servers are: In client/server database architecture, the Database files and DBMS software reside on a server. A communications component is provided so applications can run on separate clients and communicate to the database server over a network. The SQL server communication component also allows communication between an application running on the server and SQL server. Server applications are usually capable of working with several clients at the same time. SQL server can work with thousands of client applications simultaneously. The server has feature to prevent the logical problems that occurs if a user tries to read or modify data currently being used by the others.
14
While SQL server is designed to work as a server in a client/server network, it is also capable of working as a standalone database directly on the client. The scalability and ease of use features of SQL server allow it to work efficiently on a client without consuming too many resources. 4.4 STRUCURED QUERY LANGUAGE (SQL):To work with data in a database, you must use a set of commands and statements (language) defined by the DBMS software. There are several different languages that can be used with relational databases, the most common is SQL. Both the American National Standard Institute (ANSI) and the International Standards Organization (ISO) have defined standards for SQL. Most modern DBMS products support the entry level of SQL-92, the latest SQL standard (published in 1992).
4.4.1 SQL SERVER FEATURES Microsoft SQL server supports a set of features that result in the following benefits: 1. Ease of installation, deployment and use:SQL server includes a set of administrative and development tools that improve your ability to install, deploy, manage and use SQL server across several sites. 2. Scalability The same database engine can be used across platforms ranging from laptop computers running Microsoft windows 95/98 to large, multiprocessor servers running Microsoft windows NT, Enterprise edition. 4.4.2 The SQL Server 2005:-
15
The version of Microsoft SQL server 2005 database engine included in SQL Server 2005 desktop engine (MSDE 2005) and SQL Server 2005 personal edition contains a workload governor designed to limit performance if the database engine receives more work than is typical of a small number of users. NOTE: The following description of the workload governor is specific to sql server 2005 desktop engine (MSDE 2005) and SQL Server 2005 personal edition. Future versions of SQL Server will use other mechanism to differentiate editions.
CHAPTER-5
online application which handles information about voters, candidates, details ofvoters etc. This enhances the working ability of voting and gives a new refreshing look to the interface.
2. Technical feasibility: - The current system is built on user interface environment using
SQL Server 2008 and ASP .NET with C# language which provides a good and enhanced working environment. It provides a user friendly environment.
16
Windows OS and Visual studio.NET software are easily available and easy to interact.
procedure is to determine the benefit and savings that are expected from the system. After each phase of life cycle we have an internal audit and review to determine the cost/benefit proportion of each phase. Since there is no installation cost to be incurred as the system and software are preinstalled.
4. Alternative solution: - Right now we are implementing this system using MS SQL
5. Risk analysis: Risk identification: Technical risk: - In this project, the only risk can arise if some change occurs in the technical requirements of the management. As per the requirement, we have taken ASP .NET as technology for the system development and if this changes then we have to change the design process. Overall Description:-
17
This section of the Modern SRS should describe the general factors that affect the product and its requirements. This section does not state specific requirements. Instead, it provides a background for those requirements, which are defined previously and makes them easier to understand. Include such items as product perspective, product functions, user characteristics, constraints, assumptions and dependencies, and requirements subsets.
5.2
Use-Case Model Survey This section contains an overview of the use-case model or the subset of the use-case
model that is applicable for this subsystem or feature. This includes a list of names and brief descriptions of all use cases and actors, along with applicable diagrams and relationships. This section describes the use-case model comprehensively, in terms of how the model is structured into packages and what use cases and actors there are in the model. If you are using packages, the document shows the model structure hierarchically Specific Requirements:This section of the Modern SRS contain all the software requirements to a level of detail sufficient to enable designers to design a system to satisfy those requirements, and testers to test that the system satisfies those requirements. When using use-case modeling, the majority of these requirements are captured in the use cases. 5.2.1 Introduction:
The use-case model provides a special to let the user know how to operate the system and the division of the software.
Survey Description
The use case model can help develop to understand the need of the system
Use-Case Specifications
In use-case modeling, the use cases often define the majority of the functional requirements of the system, along with some non-functional requirements. For each use
18
case in the above use-case model, or subset thereof, enclose the use-case specification here. If you have documented use cases in a separate document, cross reference to all applicable external use-case specifications in this section. Use-Case Model Hierarchy This section presents the use-case packages hierarchically, explains the dependencies among them, and shows the content of each package recursively. If the model has several levels of packages, those at the top-level are presented first. The packages within these are presented next, and so on, all the way down to the packages at the bottom of the hierarchy. For each package include: The Name. A brief description explaining the package's function and role in the system. The description must be understandable to any developer who wants to use the package. A list of the use cases owned by the package, including the name and brief description of each use-case. A list of actors owned by the package, including the name and brief description of each actor.
Voter Id
A list of Validation relationships owned by the package, including the name and brief description of each relationship. 5.2.2 Diagrams of the Use-Case Model
Use-case diagrams, of the entire use-case model are included here:
Result Registrati on Counting Zonal Officer er
Voter Id
Registration
Voter
Candidate Candidate Id
19
Use Case Model Description: VOTER: A Voter can be one who already has a voter id or a newly eligible person who wants to register for a voter id. Ask for registration form; if already have a voter Id. Ask for registration form for requesting a voter Id. View or access the details about the various candidates. CANDIDATE: A candidate can be one who fulfills all the criteria to fight and election.
20
Build a profile of his own so that the voter can see his details. He can also vote online. He can also view the details of other candidates. Check for the latest updates of voting time to time. ZONAL OFFICER: A Zonal Officer is an officer appointed to manage the election related tasks at the Zonal level. Check the validity or verification of voter details. Build the database of the candidates with their details. Conducts the counting of voter and prepare the database of Candidates and the vote they got. Connect to the State level election commissioner and provide him with all details requested. STATE ELECTION COMISSIONER: An Officer who keeps a watch on all the Zonal Officers of the state. Creates a database for the details of zonal officers of various zones. Provides the details further to the central election commissioner. Prepares a database of the winner candidates of each zone with all required details. CHIEF ELECTION COMISSIONER: An Officer who keeps a watch on all the Zonal Officers of the state.
Creates a database for the details of zonal officers of various zones. Provides the details further to the central election commissioner. Prepares a database of the winner candidates of each zone with all required details. Login/Logoff Use-Case Actor(s): User, Administrator Description This use-case describes how a user logs into the Online Voting System. The actors starting this use case are User and the administrator of the system. Pre-conditions:
21
There are no preconditions associated with this use-case. Post-conditions: There are no post-conditions associated with this use case. Priority: Normal Normal Course of Events:
1. The system validates the actors password and logs him/her into the system. 2. The system displays the Main Form and the use case ends.
Alternative Courses: 1. Invalid Name / Password If in the basic flow the system cannot find the name or the password is invalid, an error message is displayed. The actor can type in a new name or password or choose to cancel the operation, at which point the use case ends. Exceptions: Any connections to the database but return by an unthinkable result is regarded as an Exception , the hospital response will be sent to the user interface while the system error log will be created and sent to the administrator of the Online Voting System . 5.2.3Voting Actor(s): Users, Candidates, Administrators (Zonal Officer, State Election Commissioner, Central Election Commissioner) Description The users can answer to the questions listed on the Internet or voting for a result on the basis of the items listed bellowing list box. Preconditions: The user login to the online voting system so that he or she can do the voting. Postconditions The statistics of the voting system can only be used after other people do the voting. Priority:
22
Normal Normal Course of Events: 1. User login into the voting system. 2. User select the thesis that the user want to do the voting. 3. User Click the result and finish the voting. Alternative Courses: The user can answer the question or make some memory for some special thesis. Exceptions: The voting process is as usual, but the result cannot be seen or the submit form provide with an error message. 5.2.4See Voting Results Actor(s): Users, Candidates, Administrators (Zonal Officer, State Election Commissioner, Central Election Commissioner) Description The user can browse the thesis on the web and see the results of the voting. Preconditions: The user has login into the Online Voting System. Post conditions: There are not post conditions for this use case.
Priority: High Normal Course of Events: 1. 2. 3. User login into the Online Voting System. User selects the thesis of the online voting System. The voting result can be seen on the web by clicking the thesis of the system.
Alternative Courses:
23
The user begins to vote for the thesis after seeing the result of the voting. Exceptions: There are no exceptions for the project. Publishing the issue: Actor(s): Administrator (Zonal Officer, State Election Commissioner, Central Election Commissioner) Description This function is used to put out the issue that needed to be voted on the Internet. Preconditions: 1. 2. User must login into the system User has the authority to publish issue to be voted on.
Post conditions Users can see the issues after the Priority: Normal Normal Course of Events: 1. User logins into the Online Voting System. 2. User selects the thesis of the online voting System. 3. The user publishes the issue which is to be published. 4. The issue can be seen on the internet after others coming to the internet. Alternative Courses: Error occurred when user submit the issue. Exceptions: No exception on this use case. Publish the Result. Actor(s):
24
Administrators (Zonal Officer) Description The administrator of the system can publish the result of the system. Preconditions: 1. 2. The administrator login into the Online Voting System. The user has the authority to publish the result of the voting thesis.
Post conditions: The user can see the result of the online voting system after the result is published. Priority: High Normal Course of Events: 1. User logins into the Online Voting System. 2. User selects the thesis of the online voting System. 3. The user publishes the result of the thesis of the project. 4. The voting result can be seen on the web by clicking the thesis of the system. Alternative Courses: 1. The login user doesnt have the authority to publish the Result so that the system provides the user with information that he or she is not capable of this function. Exceptions: There are no exceptions for the project.
25
CHAPTER-6
DESIGN DOCUMENTS
6.1 HOME PAGE:7. <%@ Page Language="C#" AutoEventWireup="true"
26
9. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 10. 11. <html xmlns="http://www.w3.org/1999/xhtml"> 12. <head runat="server"> 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. } .style4 { z-index: 1; left: 60px; top: 199px; position: absolute; } .style3 { z-index: 1; left: 47px; top: 245px; position: absolute; <title></title> <style type="text/css"> .newStyle1 { background-color: #CCCCFF;
27
32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. } } }
.style5 { z-index: 1; left: 58px; top: 291px; position: absolute; height: 39px; width: 72px;
.style7 { z-index: 1; left: 60px; top: 345px; position: absolute; height: 22px;
28
56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. } } }
width: 58px;
.style8 { position: absolute; top: 151px; left: -66px; z-index: 1; height: 372px; width: 1013px; margin-left: 227px; margin-top: 0px;
</style>
75. </head> 76. <body> 77. 78. 79. <form id="form1" runat="server"> <div class="style9" style="font-size: x-large">
29
<asp:Image ID="Image1" runat="server" Height="131px" ImageUrl="~/eci-top-header.jpg" Width="1273px" /> &nb sp; & nbsp;   ; <br /> <asp:HyperLink ID="HyperLink1" runat="server" style="font-size: large; " CssClass="style4" NavigateUrl="~/Default.aspx">HOME</asp:HyperLink> <br /> <asp:HyperLink ID="HyperLink3" runat="server"
83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98.
style="font-size: large" NavigateUrl="~/WebForm4.aspx" CssClass="style7">HELP</asp:HyperLink> <br /> <br /> <asp:HyperLink ID="HyperLink2" runat="server" style="font-size: large; " CssClass="style3" NavigateUrl="~/WebForm5.aspx">ABOUT US</asp:HyperLink> <br /> <br /> <asp:HyperLink ID="HyperLink4" runat="server"
30
99.
NavigateUrl="~/WebForm1.aspx" CssClass="style5">LOGIN</asp:HyperLink> <asp:Image ID="Image2" runat="server" CssClass="style8" ImageUrl="~/file0001786451881.jpg" /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />
100. 101. 102. 103. 104. 105. 106. 107. 108. 109. 110. 111. 112. 113. 114. 115. 116.
117. <span class="style6">This Page is Hosted by ARCHANA KUMARI & SUMIT SAURAV and 118. 119. 120. </div> Guided by Mrs. LAXMI PRASANNA</span><br />
31
6.2 REGISTER PAGE:using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; namespace ONLINEPOLLING { public partial class WebForm2 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) {
} protected void Button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(); con.ConnectionString = "Server=SUMITVAIO\\SQLEXPRESS;Database=polling;Integrated Security=True;"; con.Open();
32
SqlCommand cmd = new SqlCommand("insert Register values(@a,@b,@c,@d,@e,@f,@g,@h,@i,@j)", con); cmd.Parameters.Add(new SqlParameter("@a", TextBox1.Text)); cmd.Parameters.Add(new SqlParameter("@b", TextBox2.Text)); cmd.Parameters.Add(new SqlParameter("@c", TextBox3.Text)); cmd.Parameters.Add(new SqlParameter("@d", TextBox4.Text)); cmd.Parameters.Add(new SqlParameter("@e", TextBox5.Text)); cmd.Parameters.Add(new SqlParameter("@f", TextBox6.Text)); cmd.Parameters.Add(new SqlParameter("@g", TextBox7.Text)); cmd.Parameters.Add(new SqlParameter("@h", TextBox8.Text)); cmd.Parameters.Add(new SqlParameter("@i", TextBox9.Text)); cmd.Parameters.Add(new SqlParameter("@j", TextBox10.Text)); int x=cmd.ExecuteNonQuery(); Response.Write("created sucessfully"); con.Close(); TextBox1.Focus(); } protected void TextBox1_TextChanged(object sender, EventArgs e) { } protected void TextBox6_TextChanged(object sender, EventArgs e) { } } }
33
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <style type="text/css"> .newStyle1 { background-color: #CCCCFF; } .style1 { font-size: x-large; } .newStyle2 {
34
background-color: #C0C0C0; } .style2 { z-index: 1; left: 459px; top: 408px; position: absolute; height: 24px; width: 243px; } .style4 { position: absolute; top: 487px; left: 458px; z-index: 1; width: 242px; margin-bottom: 0px; }
35
.style5 { z-index: 1; left: 191px; top: 535px; position: absolute; width: 70px; margin-bottom: 0px; } .style6 { position: absolute; top: 423px; left: 1213px; z-index: 1; } .style7 { position: absolute; top: 467px;
36
left: 1216px; z-index: 1; height: 25px; } .style8 { z-index: 1; left: 297px; top: 410px; position: absolute; width: 122px; } .style9 { z-index: 1; left: 458px; top: 443px; position: absolute; height: 24px; width: 244px;
37
} .style10 { z-index: 1; left: 311px; top: 447px; position: absolute; width: 98px; right: 886px; height: 24px; } .style11 { z-index: 1; left: 312px; top: 488px; position: absolute; width: 76px; } .style12
38
{ z-index: 1; left: 796px; top: 413px; position: absolute; height: 33px; width: 69px; } .style13 { z-index: 1; left: 800px; top: 465px; position: absolute; height: 36px; width: 67px; } .style14 { margin-left: 336px;
39
function Password1_onclick() {
// ]]> </script> </head> <body> <form id="form1" runat="server"> <div class="newStyle2" style="font-size: large; color: #000000">
<span class="style1">
40
<strong><br /> </strong> <asp:Label ID="Label1" runat="server" style="font-size: large" Text="USER NAME" CssClass="style8"></asp:Label> </span><br />
<span class="style1">
<asp:Image ID="Image1" runat="server" CssClass="style14" Height="279px" ImageUrl="~/india-vote-new-m_0.jpg" Width="518px" /> </span> <br /> <br /> <asp:Label ID="Label2" runat="server" style="font-size: large" Text="Voter id" CssClass="style10"></asp:Label>
41
<asp:TextBox ID="TextBox2" runat="server" CssClass="style9"></asp:TextBox> <br /> <asp:HyperLink ID="HyperLink2" runat="server" CssClass="style6" NavigateUrl="~/Default.aspx">HOME</asp:HyperLink> <br /> <br /> <asp:Label ID="Label3" runat="server" Text="Password" CssClass="style11"></asp:Label> <asp:TextBox ID="TextBox3" runat="server" CssClass="style4" ontextchanged="TextBox3_TextChanged" TextMode="Password"></asp:TextBox> <br /> <br /> <asp:Button ID="Button2" runat="server" Text="CLEAR" onclick="Button2_Click" CssClass="style13" /> <br /> <asp:Button ID="Button1" runat="server" Text="SIGN IN" onclick="Button1_Click" CssClass="style12" /> <br /> <br />
42
<br /> New user Register here <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <asp:HyperLink ID="HyperLink3" runat="server" CssClass="style7" NavigateUrl="~/WebForm4.aspx">HELP</asp:HyperLink> <br /> <br /> <br /> <br /> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/WebForm2.aspx" CssClass="style5">Register</asp:HyperLink>
43
CHAPTER -7
44
SCREEN SHOTS
HOME:-
45
LOGIN FORM:-
46
HELP:-
47
REGISTER :-
48
49
DATABASES:-
50
BJP:-
CONGRESS
CHAPTER- 8
FUTURE ENHANCEMENT
1. I would like to enhance our project in the back end by using ORACLE in the back end.
Oracle is also a relational database management system which runs on any platform (unlike SQL which run only on windows). 2. It can be used on national level. 3. GUI can be improved. 4. Site could be made more attractive by using flashes. 5. Better response time. 6. Better and more secure encryption technique.
51
CONCLUSION
The software developed provides a great help in managing voting easily with less cost. Great help is provided by online voting, it has helped in maintaining data and records of
52
voters, candidates. It has provided ease of access to users. It has reduced the misuse of vote providing full security in managing online polling. It particularly helps in following works: Provides security to the systems information by providing login and password facility. Limited access is given to the registered members; major changes can be done only by administrator.
Provides the most necessary facilities like password recovery. Saves the precious time of the members by fast voting and maintenance due to computerized system.
REFERENCES
53
1. http://www.net-tutorials.com/books/csharp/
2. www.411asp.net/home/tutorial 3. http://asp.net-tutorials.com/basics/introduction/ 4. http://facultyguide.berkeley.edu/
5. http://engineering.stanford.edu/ 6. http://www.stanford.edu/research/
54
BIBLIOGRAPHY
1. Silberschatz, Korth, Data Base Management System, 5th edition, Tata McGraw Hill; 2. Bill Evjen, scott Hanselman, ASP.NET Professional , second edition, WROX 3. Stephen Walther,ASP.NET Unleashed, Second Addition, SAMS publications 4. Ryan & Ryan, ASP.NET Bible, second edition ,Hungry Minds
55