Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 69

WEB RTO SYSTEM

This Project prepared RTO office to maintain all the records like issuing the LL, DL, Vehicle
registration, Vehicle ownership transfer etc. Once all these get computerized to work efficiency
of the employee will get increases.
“RTO Management System” has been designed to automate the process of registration of vehicle
and issuing driving license process. System can make the daily activities efficient and providing
the fast response to store and retrieve information to the people By Using SMS or E-Mail.

ABSTRACT

This project is “Web RTO System” is used to register for two wheeler and four wheeler
information and remember the two wheeler renewal, which is useful for the users who are facing
problems with the current manual work of rto office registration and renewal. This system has
identified the user validity period, frequently inform to the user before rto office renewal date by
sending SMS or mails. This online rto office registration application will help user save their
time and also renewal the vehicles without standing in a line for hours near counters. In RTO
Management System administrator has the power to verify the data entered by the user,
processing of data and provide vehicles number. An authorized user should have a user name and
password to access detailed information from the site excluding or accessing general information
in shared, public pages. Easily, user can select vehicles number this application. Admin verify
user details and satisfied details approve application.
INTRODUCTION

The project Web RTO Management System is web application system that enables
the procedure of the Web RTO system interface with maximum accuracy .This project is
very useful for those who are concern with the different processes on Web RTO. As a total
manpower based system is currently running for the whole procedures, designing a new
system which makes the whole process online, demands a deep knowledge about the
procedures. This project focuses on presenting information and commands in an easy and
intelligible manner. The purpose of this system is to provide a leading technological tool for
the ease of RTO functions such as Registration, Learners License, and Fitness etc. It will
reduce considerably the difficulties faced on all activity, with minimum error and
difficulties. This system benefits to the user and the Web RTO office staffs. By introducing
the new system we have been organized some striking felicities. Through this system the
user performs Registration of vehicle through online. Issue of information’s about license,
which include application forms, demo of leaner’s license test and other information’s. The
purpose of our Web RTO management system in Asp.Net is to provide a leading
technological tool for the ease of Web RTO functions such as Registration, Learners
License, Permanent License, Vehicle Registration etc, completely designed for final year be
projects. It will reduce considerably the difficulties faced on existing system, with minimum
error and difficulties.
1.2 EXISTING SYSTEM

The existing system is at present all records are maintained manually. We know that the
production and use of vehicles are increase day by day. Hence, the need of RTO system is very
important now a day. The complex function such as register of vehicle etc., becomes to know
about the problems specifically, we have done detailed study on the whole procedure of the
system which currently running RTO office performs functions such as registration, license, and
fitness. These are certain procedure and formalities require performing function.

DISADVANTAGES:

 Manual process is more


 Lot of time waste
 Processing delays high
1.3 PROPOSED SYSTEM

The proposed system is aimed to automate the major process in the RTO office. This
system will maintain and manage day by day operation very smoothly with minimum errors. In
all the forms uses have created option to create new records, save records, modify, modify,
delete, fine records and close button. The system for all RTO process fully developed this
software application with fully computerized to manage all the data. In RTO Management
System administrator has the power to verify the data entered by the user, processing of data
and provide appropriate solutions. An authorized user should have a user name and password to
access detailed information from the site excluding or accessing general information in shared,
public pages. User is the person who gets the full benefits of this application. The new system
we have been organized some striking felicities. Registration of vehicles through online. So
manpower reduces and easily searching with particular vehicles details.

ADVANTAGES:

 It helps traffic police for tracing particular vehicles.


 Easily complaint registration with online in this system
 It helps for public awareness
 provide mail alert for user about license expiry
LOGICAL DEVELOMENT
DATA FLOW DIAGRAM
Data flow Symbols:

Symbol Description

An entity. A source of data or a


destination for data.

A process or task that is


performed by the system.

A data store, a place where data


is held between processes.

A data flow.
LEVEL 0

Maintain Details WEB RTO SYSTEM


Admin

Confirmation
DataBase

User

Secure License Details

Fig 1. Explains about the admin and user initialization


LEVEL 1

Retrieve details
Admin
View Details
View user, license
details

Retrieve details
User license
Login renewal date License /renewal Details

Store details

Given the complaint Complaint form


about the vehicle

Send alert Message


Fig 2 It describes about the admin procedure that has been processed in the system

LEVEL 2

User Login

View Vehicle details

Vehicle details Store details

Send the vehicle


complaints

Store details
Send Complaint

View the renewal


message

View Message
Fig 3 It describes about the user process in the system

ARCHITECTURE DIAGRAM:

RTO SYSTEM

Admin User

Register Appoin
Login Collect RTO tment
office Details date
Search
View Info
Upload Vehicle
details Two/Fou Renewa License
Generate
r wheeler l Details Details
report
details

DATABASE
Email/ View Details User Id
Message
to User
Attach File Register
Copy No

Intimate
Renewal

Apply
Renewal
Fig 4. The entire process functioning has been conveyed in this architecture diagram

DATABASE DESIGN

Table Name: registration

Description:

The register table contains a following field as name, age, license number, proof name
address, proof number and etc. these details are stored in the database. The user can be must
register in the form and after process in the system.

Table Name: Message

Description:

The message table contains following details such as message details are stored in the
database.
Table Name: Register application

Description:

Register application table contains as customer name, application , e mail id, age, email id,
mobile number, username, password and gender are stored in the database. These details are
maintained to the admin.
Table Name: Renewal Registration

Description:

Register application table contains as customer name, application , e mail id, age, email id,
mobile number, username, password and gender are stored in the database. These details are
maintained to the admin.
ERDIAGRAM
Father name FUEL
Chase No.
DOB
age
Dealer Name

Email id
Name Cost

Address
Color

Mob_no
HP

User name Type

Password V_no
Registration
Vehicle Name

Vec_no Given Complaint


View

Problem

Vec_no

Complaint
Add_info
T_number

E_Date
T_Address

Amount pay Transfer

CardNumber

CVV Number

License application
Pin

TestDate
App_id

Fee
Pin
CardNumber CVV Number

Fig 5. The relationship between user and the admin has been described in this diagram

4.4 Data Dictionary


A DBMS component that stores metadata. The data dictionary contains the data
definition and its characteristics and entity relationships. This may include the names and
descriptions of the various tables and fields within the database.

Field name DataType Description Sample Values

Name Int Specify the customer name raj

Age Nvarchar(50) Specify the customer age 24

Father name Nvarchar(50) Specify the father name Raju

Dob Nvarchar(50) Specify the date of birth 09-09-98

Email Decimal(18,0) Specify the email id raj@gmail.com

Address Decimal(18,0) Specify the customer address Trichy

Mob_no Decimal(18,0) Specify the mobile number 908765443221

App_no Nvarchar(50) Specify the application number 12345

Rat_no Nvarchar(50) Specify the ration card number Wid12345

10 cer_no Nvarchar(50) Specify the 10th certificate number 145767899

12 cer_no Nvarchar(50) Specify the 12th certificate number 1897654

Date Nvarchar(50) Specify the apply date 09-09-2012

Veh_name Nvarchar(50) Specify the vehicle name Bike

Color Nvarchar(50) Specify the vehicle color Blue

Image Nvarchar(50) Specify the customer photo Update

Eng_no Nvarchar(50) Specify the engine number 12345

PROGRAM DESIGN

MODULES:

A module is a separate unit of software or hardware. Typical characteristics of modular


components include portability, which allows them to be used in a variety of systems, and
interoperability, which allows them to function with the components of other systems. The term
was first used in architecture.

Modules used

There are two main modules are used in this project such as

 Admin module

 User module

MODULES DESCRIPTION
ADMIN

 LOGIN

This module describes the details of login. In this module the admin and admin have an
own unique login id and password. Login is used for protect the unauthorized access.

 Add RTO Office\Vehicle Details

In the module, admin will maintain recorded to store in the database. This information’s
are view to the administrator. Admin can managed to vehicle of two wheeler and four wheeler
details are Stored in the database. Update and upload vehicles details everyday and it store to
the system. User can search vehicle detail for in this site, admin retrieve to relevant page on
user.

USER

 Register

The registration page is useful for the new user to register themselves by giving their valid
details such as e-mail id, user name, Phone number, and etc. The user has to fill all the details
else message is displayed to the user. Once all the fields are filled the user clicks the Register
button, which submits the data to the database. Here it checks the user table, whether the email-
id is already exists, if yes error message is displayed else store the details to the user table. If all
details are correct the users view the main page.

 Login
The administrator login pages same as a user login page. The only difference is that the
username and the password for this page are not maintained in the table. After filling all the
fields the administrator can click the button to sign in. It checks whether the username and
password are correct, if correct allows the administrator to update or view the details else
displays the error message. The administrator should fill all the fields, if not it shows error
message.

 Vehicle registration module


  Two wheeler, three wheeler, light motor vehicle (LMV) and Heavy motor vehicle (HMV)
and others. To register a vehicle through this software user has to provide all the details of
vehicles including vehicle number, makers name, body type, Vehicle owner, address, chassis
number, registration date, etc

 License Details

User can Search various license information in this website. User can View and Select
related vehicle license detail. This system easily to search with any two wheeler, four wheeler,
and Learner licence, Driving licence, Changing address of licence. It has options to apply the
license and renew the license.

 Transfer module
This is a vehicle transfer module which is used to change the ownership of the vehicle.

 Fancy Number

The user can view the list of available fancy numbers, normal numbers and can apply for
any number among the list.
 Search

This site provides facility for searching a particular vehicles or license holders details.

 Renewal Details

This system has identified the user validity period, and renewal date store to rto system.
The web rto office system is providing register and renewal application in this website. User can
need to register/renewal with the application by submitting details of photo address proof and
required details and submit through online system. Admin verify user details and satisfied
details approve application. User can read and apply any relevant vehicles information. So,
Vehicle related all details get in this rto management system.

SYSTEM TESTING

Testing

Software testing is a method of assessing the functionality of a software program. There


are many different types of software testing but the two main categories are dynamic testing and
static testing. Dynamic testing is an assessment that is conducted while the program is executed;
static testing, on the other hand, is an examination of the program's code and associated
documentation. Dynamic and static methods are often used together. The most common types
of testing involved in the development process are:

 Unit Test.

 Integration Test

 Validation Test

5.2.1 UNIT TESTING:


A Unit corresponds to a screen /form in the package. Unit testing focuses on
verification of the corresponding class or Screen. This testing includes testing of control
paths, interfaces, local data structures, logical decisions, boundary conditions, and error
handling. Unit testing may use Test Drivers, which are control programs to co-ordinate
test case inputs and outputs, and Test stubs, which replace low-level modules. A stub is
a dummy subprogram.

This testing is handling each and every module is correctly worked or not. For
example, the new user enrolled their name, date of birth, address, and city and email id
in the website. After the user clicks the register button, the new user details must be
store in the database. At that only, the user can view the website. So to check the user
registration details are stored or not stored in the database.

5.2.2 INTEGRATION TESTING:

Several modules constitute a project. If the project is long-term project, several


developers write the modules. Once all the modules are integrated, several errors may arise. The
testing done at this stage is called system test. System testing ensures that the entire integrated
software system meets requirements. It tests a configuration to ensure known and predictable
results. System testing is based on process descriptions and flows, emphasizing pre-driven
process links and integration points. Testing a specific hardware/software installation. This is
typically performed on a COTS (commercial off the shelf) system or any other system
comprised of disparate parts where custom configurations and/or unique installations are the
norm.

5.2.3 VALIDATION TESTING:

It’s the process of using the new software for the developed system in a live
environment i.e., new software inside the organization, in order to find out the errors. The
validation phase reveals the failures and the bugs in the developed system. It will be come to
know about the practical difficulties the system faces when operated in the true environment.

The validation testing was mainly tested in each and every project. For example, in login
form, the valid user only allowed to view the website.

JUSTIFY THE VALIDATION TESTING

CONCLUSION AND FUTURE ENHANCEMENT

This project success is to move away from the method of manual process of getting
registration of a vehicle in which an individual has to physically getting the registration and
record the registration details. Instead the project proposes to successfully be able to contact
with the RTO office to user and user to RTO office. This software package can be operational
way which will be helpful to the end user to work this system simply select the menus.
Administrative can view all the request of the user and can search for any result. Different types
of reports can be obtained from the report menu. The main purpose of the project is to avoid the
critical process of getting registration from the concern and make changes in the previous
record. The users can easily renewal their license through this system and efficient process for
the change owner details to the user and the admin. In future, this system can be improved by
some additional features meeting the user requirements like getting the owner details of the
vehicle before buying the vehicle this will help to the user buy vehicle from original owner.

BIBLIOGRAPHY
 FOR .NET INSTALLATION
www.support.mircosoft.com
 FOR DEPLOYMENT AND PACKING ON SERVER
www.developer.com
www.15seconds.com
 FOR SQL
www.msdn.microsoft.com
 FOR ASP.NET
www.msdn.microsoft.com/net/quickstart/aspplus/default.com
www.asp.net
www.fmexpense.com/quickstart/aspplus/default.com
www.asptoday.com
www.aspfree.com
www.4guysfromrolla.com/index.aspx
http://www.wrox.com/WileyCDA/Section/All-Titles-Books-Ebooks-for-
Programmers-ASP-NET-C-Javascript
http://www.wrox.com/WileyCDA/WroxTitle/Beginning-C-7-Programming-
with- Visual-Studio-2017.productCd-1119458684.html
https://docs.microsoft.com/en-us/aspnet/web-forms/overview/older-
versions-getting-started/master-pages/urls-in-master-pages-cs
https://www.sitepoint.com/asp-dot-net-introduction/
https://www.microsoftpressstore.com/articles/article.aspx?p=2228464
https://stackoverflow.com/questions/5877069/what-are-the-best-resources-
for-asp-net-c
https://1stwebdesigner.com/ebook-download-sites/
https://stackify.com/learn-asp-net-tutorials/
https://www.oreilly.com/library/view/programming-aspnet-
35/9780596156657/ch04s07.html
https://www.c-sharpcorner.com/UploadFile/dversch/adding-facebook-share-
functionality-to-an-Asp-Net-website-with-a-master-page/
https://www.sitepoint.com/asp-dot-net-introduction/
https://www.amazon.com/Pro-ASP-NET-Core-ADAM-
FREEMAN/dp/1484203984
https://recaffeinate.co/book/
https://www.w3schools.com/asp/
https://en.wikipedia.org/wiki/Active_Server_Pages
https://searchwindowsserver.techtarget.com/definition/Active-Server-Page
https://www.computerhope.com/jargon/a/asp.htm

Appendix

Source Code
Admin Login

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_Login : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button2_Click(object sender, EventArgs e)
{
if (TextBox1.Text == "admin" && TextBox2.Text == "admin")
{
Response.Redirect("Admin home.aspx");
}
else
{
Response.Write("<script>alert('Username and Password Mismatched')</script>");
}
}
}
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="Admin Login.aspx.cs" Inherits="Admin_Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<table style="width: 100%">
<tr>
<td colspan="2" style="text-align: left">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="X-Large"
Text="Admin Login"></asp:Label>
</td>
</tr>
<tr>
<td style="width: 393px">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td style="text-align: center; width: 393px">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;<asp:Label ID="Label2" runat="server" Text="User Name"></asp:Label>
</td>
<td style="text-align: left">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="text-align: left; width: 393px">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label3" runat="server" Text="Password"></asp:Label>
</td>
<td style="text-align: left">
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td style="text-align: right; width: 393px">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button1" runat="server" Text="Reset" Height="22px"
Width="50px" />
</td>
<td style="text-align: left">
<asp:Button ID="Button2" runat="server" Height="26px" onclick="Button2_Click"
Text="Login" Width="99px" />
</td>
</tr>
<tr>
<td style="width: 393px">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</asp:Content>
Apply License

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.Net;
using System.IO;

public partial class Apply_License : System.Web.UI.Page


{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["db"].ToString());

protected void Page_Load(object sender, EventArgs e)


{
String s;
Random rm = new Random();
s = rm.Next(111, 999).ToString();
TextBox1.Text = "TN:" + s.ToString();

//TextBox1.Text = System.DateTime.Today.ToString("dd/MM/yyyy");
TextBox2.Text = DateTime.Now.ToShortDateString();

}
protected void TextBox6_TextChanged(object sender, EventArgs e)
{

}
protected void Button1_Click1(object sender, EventArgs e)
{
//SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\vijay\Web
RTO\App_Data\rto.mdf;Integrated Security=True;User Instance=True");
con.Open();
SqlCommand cmd = new SqlCommand("insert into request values('" + TextBox1.Text + "','"+
DropDownList2.Text+"','" + TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text +
"','" + TextBox6.Text + "','" + DropDownList1.SelectedValue + "','" + TextBox8.Text + "','" + TextBox9.Text + "','" +
TextBox10.Text + "','" + TextBox11.Text + "','" + TextBox12.Text + "','" + TextBox13.Text + "','" + TextBox14.Text +
"')", con);
cmd.ExecuteNonQuery();
con.Close();
Response.Write("<script>alert('your request has been send')</script>");

sendmessage(TextBox8.Text, "your request has been send");

}
public void sendmessage(string targetno, string message)
{

String query = "http://pay4sms.in/sendsms/?token= b81edee36bcef4ddbaa6ef535f8db03e&credit=2&sender=


RandDC&message=testsms&number=919150028012=" + targetno + "&message=" + message;

WebClient client = new WebClient();


Stream sin = client.OpenRead(query);
Response.Write("<script language=javascript>alert('Message Send')</script>");
}

}
<%@ Page Title="" Language="C#" MasterPageFile="~/User.master" AutoEventWireup="true" CodeFile="Apply
License.aspx.cs" Inherits="Apply_License" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<table class="style1" style="width: 821px">
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style2" colspan="3">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;
<asp:Label ID="Label12" runat="server" Text="Apply License" ForeColor="#660066"
style="font-weight: 700; font-size: large"></asp:Label>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
&nbsp;</td>
<td>
<asp:Label ID="Label13" runat="server" Text="Label"></asp:Label>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label1" runat="server" Text="License No"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" BorderColor="Black"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="TextBox1" ErrorMessage="* Please Enter Your No"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label14" runat="server" Text="Vehicle Type"></asp:Label>
</td>
<td>
<asp:DropDownList ID="DropDownList2" runat="server">
<asp:ListItem>Two Wheeler</asp:ListItem>
<asp:ListItem>Four Wheeler</asp:ListItem>
<asp:ListItem>Both</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server"
ControlToValidate="TextBox1" ErrorMessage="* Please Enter Your Vehicle Type"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label2" runat="server" Text="Date"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" BorderColor="Black"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label3" runat="server" Text="Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox3" runat="server" BorderColor="Black"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
ControlToValidate="TextBox3" ErrorMessage="* Please Enter Your Name"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label4" runat="server" Text="Father Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox4" runat="server" BorderColor="Black"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server"
ControlToValidate="TextBox4" ErrorMessage="* Please Enter Father Name"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label5" runat="server" Text="DOB"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox5" runat="server" BorderColor="Black"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server"
ControlToValidate="TextBox5" ErrorMessage="* Please Enter Your DoB"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label6" runat="server" Text="Age"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox6" runat="server" ontextchanged="TextBox6_TextChanged"
BorderColor="Black"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="TextBox6" ErrorMessage="* Please Enter Your Age"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label7" runat="server" Text="Gender"></asp:Label>
</td>
<td>
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>-None-</asp:ListItem>
<asp:ListItem>Male</asp:ListItem>
<asp:ListItem>Female</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label8" runat="server" Text="Contact No"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox8" runat="server" BorderColor="Black"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="TextBox8" ErrorMessage="* Please Enter Your Contact no"
style="color: #660066"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"
ControlToValidate="TextBox8" Display="Dynamic"
ErrorMessage="*Please Enter Correct Mobile No" Font-Size="Small"
ForeColor="#660066" ValidationExpression="[0-9]{10}"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label9" runat="server" Text="Address"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox9" runat="server" BorderColor="Black"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
ControlToValidate="TextBox9" ErrorMessage="* Please Enter Your Address"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label10" runat="server" Text="Proof Name "></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox10" runat="server" BorderColor="Black"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox10" ErrorMessage="* Please Enter Your Proof Name"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label11" runat="server" Text="Proof No"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox11" runat="server" BorderColor="Black"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="TextBox11" ErrorMessage="* Please enter "
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label15" runat="server" Text="Amount"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox12" runat="server" BorderColor="Black"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server"
ControlToValidate="TextBox12" ErrorMessage="* Please enter "
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label16" runat="server" Text="Status"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox13" runat="server" BorderColor="Black"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server"
ControlToValidate="TextBox13" ErrorMessage="* Please enter "
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
<asp:Label ID="Label17" runat="server" Text="Card No"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox14" runat="server" BorderColor="Black"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server"
ControlToValidate="TextBox14" ErrorMessage="* Please enter Your Card No"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
&nbsp;</td>
<td>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click1"
Text="Submit" />
</td>
</tr>
<tr>
<td class="style2" style="width: 306px">
&nbsp;</td>
<td class="style3" style="width: 85px">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</asp:Content>

Enter Message

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Net;
using System.IO;
using System.Configuration;

public partial class Enter_Message : System.Web.UI.Page


{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["db"].ToString());

protected void Page_Load(object sender, EventArgs e)


{

}
protected void Button2_Click(object sender, EventArgs e)
{
string str1;
str1 = "";
//SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\vijay\Web
RTO\App_Data\rto.mdf;Integrated Security=True;User Instance=True");
con.Open();
SqlCommand cmd = new SqlCommand("select * from message ", con);
SqlDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{

if (str1 == "")
{
str1 = dr["mobileno"].ToString();
}
else
{
str1 += "," + dr["mobileno"].ToString();
}
TextBox1.Text = str1;
}
}
protected void Button3_Click(object sender, EventArgs e)
{
sendmessage(TextBox1.Text, TextBox2.Text);
}
public void sendmessage(string targetno, string message)
{

String query = "http://bulksms.mysmsmantra.com:8080/WebSMS/SMSAPI.jsp?


username=AccessContr&password=733763493&sendername=Access&mobileno=" + targetno + "&message=" +
targetno + "&message=" + message;
WebClient client = new WebClient();
Stream sin = client.OpenRead(query);
Response.Write("<script language=javascript>alert('Message Send')</script>");
}
protected void TextBox2_TextChanged(object sender, EventArgs e)
{
}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{

}
}

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Enter


Message.aspx.cs" Inherits="Enter_Message" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<table class="style1">
<tr>
<td colspan="4">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Label
ID="Label1" runat="server" ForeColor="#FF0066"
style="font-weight: 700; text-decoration: underline; font-size: large"
Text="Sending Message"></asp:Label>
</td>
</tr>
<tr>
<td class="style3" style="width: 105px">
&nbsp;</td>
<td class="style4" style="width: 280px">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td style="width: 200px">
&nbsp;</td>
</tr>
<tr>
<td class="style3" style="width: 105px">
&nbsp;</td>
<td class="style4" style="width: 280px">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label2" runat="server" Text="Mobile Number"
style="font-weight: 700; font-style: italic"></asp:Label>
</td>
<td class="style2">
<asp:TextBox ID="TextBox1" runat="server" ontextchanged="TextBox1_TextChanged"
TextMode="MultiLine" Height="22px"></asp:TextBox>
</td>
<td style="width: 200px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" ErrorMessage="* Please Enter Your Mobile No"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style3" style="width: 105px">
&nbsp;</td>
<td class="style4" style="width: 280px">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td style="width: 200px">
&nbsp;</td>
</tr>
<tr>
<td class="style3" style="width: 105px">
&nbsp;</td>
<td class="style4" style="width: 280px">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label3" runat="server" Text="Message"
style="font-weight: 700; font-style: italic"></asp:Label>
</td>
<td class="style2">
<asp:TextBox ID="TextBox2" runat="server" ontextchanged="TextBox2_TextChanged"
TextMode="MultiLine" Height="21px"></asp:TextBox>
</td>
<td style="width: 200px">
&nbsp;</td>
</tr>
<tr>
<td class="style3" style="width: 105px">
&nbsp;</td>
<td class="style4" style="width: 280px">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td style="width: 200px">
&nbsp;</td>
</tr>
<tr>
<td class="style3" style="width: 105px">
&nbsp;</td>
<td class="style4" style="width: 280px">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button2" runat="server" Height="30px" onclick="Button2_Click"
Text="Select All Mobile No" Width="145px" />
</td>
<td class="style2" style="text-align: left">
<asp:Button ID="Button3" runat="server" Height="29px" onclick="Button3_Click"
Text="Send" Width="89px" />
</td>
<td style="width: 200px">
&nbsp;</td>
</tr>
<tr>
<td class="style3" style="width: 105px">
&nbsp;</td>
<td class="style4" style="width: 280px">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td style="width: 200px">
&nbsp;</td>
</tr>
<tr>
<td class="style3" style="width: 105px">
&nbsp;</td>
<td class="style4" style="width: 280px">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td style="width: 200px">
&nbsp;</td>
</tr>
<tr>
<td class="style3" style="width: 105px">
&nbsp;</td>
<td class="style4" style="width: 280px">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td style="width: 200px">
&nbsp;</td>
</tr>
<tr>
<td class="style3" style="width: 105px">
&nbsp;</td>
<td class="style4" style="width: 280px">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td style="width: 200px">
&nbsp;</td>
</tr>
</table>
</asp:Content>
Register

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;

public partial class Default3 : System.Web.UI.Page


{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["db"].ToString());

//SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\vijay\Web


RTO\App_Data\rto.mdf;Integrated Security=True;User Instance=True");
SqlCommand cmd;
int i;
protected void Page_Load(object sender, EventArgs e)
{
string s;
Random rm = new Random();
s = rm.Next(111, 999).ToString();
TextBox1.Text = "TN:" + s.ToString();
}
protected void Button2_Click(object sender, EventArgs e)
{
cmd = new SqlCommand("insert into register
values(@User_Id,@Name,@Father_Name,@Age,@Address,@Emailid,@Phoneno,@Username,@Password,@Gender)"
, con);
cmd.Parameters.AddWithValue("@User_Id", TextBox1.Text);
cmd.Parameters.AddWithValue("@Name", TextBox2.Text);
cmd.Parameters.AddWithValue("@Father_Name", TextBox3.Text);
cmd.Parameters.AddWithValue("@Gender", RadioButtonList1.SelectedItem.ToString());
cmd.Parameters.AddWithValue("@Age", TextBox4.Text);
cmd.Parameters.AddWithValue("@Address", TextBox5.Text);
cmd.Parameters.AddWithValue("@Emailid", TextBox6.Text);
cmd.Parameters.AddWithValue("@Phoneno", TextBox7.Text);
cmd.Parameters.AddWithValue("@Username", TextBox8.Text);
cmd.Parameters.AddWithValue("@Password", TextBox9.Text);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
Response.Write("<script>alert('Record Saved')</script>");

}
protected void Button1_Click(object sender, EventArgs e)
{

}
}

<%@ Page Title="" Language="C#" MasterPageFile="~/User.master" AutoEventWireup="true"


CodeFile="Register.aspx.cs" Inherits="Default3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<table style="width: 100%">
<tr>
<td style="width: 195px">
&nbsp;</td>
<td style="width: 137px">
<strong>
<asp:Label ID="Label13" runat="server" Text="Cust Id"></asp:Label>
</strong>
</td>
<td style="width: 146px">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td style="width: 195px; height: 25px;">
</td>
<td style="width: 137px; height: 25px;">
<strong>
<asp:Label ID="Label2" runat="server" Text="Name"></asp:Label>
</strong>
</td>
<td style="width: 146px; height: 25px;">
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</td>
<td style="height: 25px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="* Please Enter Your Name" ControlToValidate="TextBox2"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 195px">
&nbsp;</td>
<td style="width: 137px">
<strong>
<asp:Label ID="Label3" runat="server" Text="Father Name"></asp:Label>
</strong>
</td>
<td style="width: 146px">
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td style="width: 195px">
&nbsp;</td>
<td style="width: 137px">
<strong>
<asp:Label ID="Label4" runat="server" Text="Gender"></asp:Label>
</strong>
</td>
<td style="width: 146px">
<strong>
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
style="color: #000000">
<asp:ListItem Selected="True">Male</asp:ListItem>
<asp:ListItem>FeMale</asp:ListItem>
</asp:RadioButtonList>
</strong>
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td style="width: 195px">
&nbsp;</td>
<td style="width: 137px">
<strong>
<asp:Label ID="Label5" runat="server" Text="Age"></asp:Label>
</strong>
</td>
<td style="width: 146px">
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ErrorMessage="* Please Enter Your Age" ControlToValidate="TextBox4"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 195px">
&nbsp;</td>
<td style="width: 137px">
<strong>
<asp:Label ID="Label6" runat="server" Text="Address"></asp:Label>
</strong>
</td>
<td style="width: 146px">
<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ErrorMessage="* Please Enter Your Address" ControlToValidate="TextBox5"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 195px">
&nbsp;</td>
<td style="width: 137px">
<strong>
<asp:Label ID="Label8" runat="server" Text="E-mail Id"></asp:Label>
</strong>
</td>
<td style="width: 146px">
<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ErrorMessage="* Please Enter Your Email Id" ControlToValidate="TextBox6"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 195px">
&nbsp;</td>
<td style="width: 137px">
<strong>
<asp:Label ID="Label9" runat="server" Text="Phone No"></asp:Label>
</strong>
</td>
<td style="width: 146px">
<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td style="width: 195px">
&nbsp;</td>
<td style="width: 137px">
<strong>
<asp:Label ID="Label10" runat="server" Text="User Name"></asp:Label>
</strong>
</td>
<td style="width: 146px">
<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ErrorMessage="* Please Enter Your User Name" ControlToValidate="TextBox8"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 195px">
&nbsp;</td>
<td style="width: 137px">
<strong>
<asp:Label ID="Label11" runat="server" Text="Password"></asp:Label>
</strong>
</td>
<td style="width: 146px">
<asp:TextBox ID="TextBox9" runat="server" TextMode="Password"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
ErrorMessage="* Please Enter Your Password" ControlToValidate="TextBox9"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 195px">
&nbsp;</td>
<td style="width: 137px">
<strong>
<asp:Label ID="Label12" runat="server" Text="C.password"></asp:Label>
</strong>
</td>
<td style="width: 146px">
<asp:TextBox ID="TextBox10" runat="server" TextMode="Password"></asp:TextBox>
</td>
<td>
<asp:CompareValidator ID="CompareValidator1" runat="server"
ControlToCompare="TextBox9" ControlToValidate="TextBox10"
ErrorMessage="Password Mismatch " style="color: #FF0000"></asp:CompareValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
ErrorMessage="* Please Enter Your Correct Password"
ControlToValidate="TextBox10" style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 195px">
&nbsp;</td>
<td style="width: 137px">
<strong>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Clear"
BackColor="#648C96" style="color: #FFFFFF" />
</strong>
</td>
<td style="width: 146px">
<asp:Button ID="Button2" runat="server" BackColor="#648C96"
onclick="Button2_Click" style="color: #FFFFFF; height: 26px" Text="Submit" />
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td style="width: 195px">
&nbsp;</td>
<td style="width: 137px">
<strong></strong></td>
<td style="width: 146px">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</asp:Content>

Renewal

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;

public partial class Renewal1 : System.Web.UI.Page


{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["db"].ToString());

protected void Page_Load(object sender, EventArgs e)


{
TextBox1.Text = System.DateTime.Today.ToString("dd/MM/yyyy");
//TextBox2.Text = DateTime.Now.ToShortDateString();
}
protected void Button1_Click(object sender, EventArgs e)
{
//SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\vijay\Web
RTO\App_Data\rto.mdf;Integrated Security=True;User Instance=True");
con.Open();
SqlCommand cmd = new SqlCommand("insert into renewal values('" + TextBox1.Text + "','" + TextBox2.Text +
"','" + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" + TextBox6.Text + "')", con);
cmd.ExecuteNonQuery();
con.Close();
Response.Write("<script>alert('your request has been send')</script>");
}
}
<%@ Page Title="" Language="C#" MasterPageFile="~/User.master" AutoEventWireup="true"
CodeFile="Renewal.aspx.cs" Inherits="Renewal1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="style1" style="width: 1051px">
<tr>
<td class="style2" style="width: 218px">
&nbsp;</td>
<td class="style3" style="width: 107px">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style2" colspan="3">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label7" runat="server"
style="font-weight: 700; font-size: large" Text="Renewal"></asp:Label>
</td>
</tr>
<tr>
<td class="style2" style="width: 218px">
&nbsp;</td>
<td class="style3" style="width: 107px">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style2" style="width: 218px">
&nbsp;</td>
<td class="style3" style="width: 107px">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style2" style="width: 218px">
&nbsp;</td>
<td class="style3" style="width: 107px">
<asp:Label ID="Label1" runat="server" Text="Date"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style2" style="width: 218px">
&nbsp;</td>
<td class="style3" style="width: 107px">
<asp:Label ID="Label2" runat="server" Text="License Number"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" Height="21px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox2" ErrorMessage="* Please Enter Your License No"
style="color: #660066; background-color: #FFFFFF"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 218px">
&nbsp;</td>
<td class="style3" style="width: 107px">
<asp:Label ID="Label3" runat="server" Text="Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="TextBox3" ErrorMessage="* Please Enter Your Name"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 218px">
&nbsp;</td>
<td class="style3" style="width: 107px">
<asp:Label ID="Label4" runat="server" Text="Address"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="TextBox4" ErrorMessage="* Please Enter Your Address"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 218px">
&nbsp;</td>
<td class="style3" style="width: 107px">
<asp:Label ID="Label5" runat="server" Text="Proof Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="TextBox5" ErrorMessage="* Please Enter Your Proof Name"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 218px">
&nbsp;</td>
<td class="style3" style="width: 107px">
<asp:Label ID="Label6" runat="server" Text="Proof Number"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="TextBox6" ErrorMessage="* Please Enter Your Proof Number"
style="color: #660066"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2" style="width: 218px">
&nbsp;</td>
<td class="style3" style="width: 107px">
&nbsp;</td>
<td>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Sumbit" />
</td>
</tr>
</table>
</asp:Content>
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="User
Login.aspx.cs" Inherits="User_Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<table style="width: 100%">
<tr>
<td colspan="3" style="text-align: left">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="X-Large"
Text="User Login"></asp:Label>
</td>
</tr>
<tr>
<td style="width: 422px">
&nbsp;</td>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td style="text-align: left; width: 422px">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;
<asp:Label ID="Label2" runat="server" Text="User Name"></asp:Label>
</td>
<td style="text-align: left">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td style="text-align: right; width: 422px">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label3" runat="server" Text="Password"></asp:Label>
</td>
<td style="text-align: left">
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox>
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td style="text-align: left; width: 422px">
&nbsp;</td>
<td style="text-align: left">
<asp:Button ID="Button2" runat="server" Height="26px" onclick="Button2_Click"
Text="Login" Width="91px" />
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td style="width: 422px">
&nbsp;</td>
<td>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Register.aspx">?New User</asp:HyperLink>
</td>
<td>
&nbsp;</td>
</tr>
</table>
</asp:Content>
Use Login

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;

public partial class User_Login : System.Web.UI.Page


{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["db"].ToString());

protected void Page_Load(object sender, EventArgs e)


{

}
protected void Button2_Click(object sender, EventArgs e)
{
//SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\vijay\Web
RTO\App_Data\rto.mdf;Integrated Security=True;User Instance=True");
con.Open();
SqlCommand cmd = new SqlCommand("select * from register where UserName='" + TextBox1.Text + "' and
Password='" + TextBox2.Text + "' ", con);
//Session["username"] = TextBox1.Text;
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
if (dt.Rows.Count > 0)
{
Session["username"] = TextBox1.Text;
Response.Redirect("Apply License.aspx");
}
else
{
Response.Write("<script language=javascript>alert('plz given correct password')</script>");
}
}
}
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="User.master.cs" Inherits="User" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title> Web RTO</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div id="header">
<div id="logo">
<h1><a href="#"> Web RTO </a></h1>
<h2><a href="http://www.freecsstemplates.org/"></a></h2>
</div>
<div id="menu">
<ul>
<li class="active"><a href="User Login.aspx">Home</a></li>
<li><a href="Register.aspx">Register</a></li>
<li><a href="Apply License.aspx">Apply License</a></li>
<li><a href="Renewal.aspx">Renewal</a></li>
<li><a href="Login Page.aspx">Logout</a></li>

</ul>
</div>
</div>
<div id="page">
<!-- end content -->
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
<!-- end page -->
</form>
</body>
</html>
View User Details

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;

public partial class View_User_Details1 : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{

}
//protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
//{
//// if (DropDownList1.Text == "user register details")
// {
// SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\vijay\Web
RTO\App_Data\rto.mdf;Integrated Security=True;User Instance=True");
// con.Open();
// SqlCommand cmd = new SqlCommand("select * from register", con);
// SqlDataAdapter dr = new SqlDataAdapter(cmd);

// DataSet ds = new DataSet();

// dr.Fill(ds, "register");
// GridView1.DataSource = ds;
// GridView1.DataMember = "register";
// }
// if (DropDownList1.Text == "request details")
// {
// SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\vijay\Web
RTO\App_Data\rto.mdf;Integrated Security=True;User Instance=True");
// con.Open();
// SqlCommand cmd = new SqlCommand("select * from request", con);
// SqlDataAdapter dr = new SqlDataAdapter(cmd);

// DataSet ds = new DataSet();

// dr.Fill(ds, "request");
// GridView1.DataSource = ds;
// GridView1.DataMember = "request";
// }
// if (DropDownList1.Text == "Renewal")
// {
// SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\vijay\Web
RTO\App_Data\rto.mdf;Integrated Security=True;User Instance=True");
// con.Open();
// SqlCommand cmd = new SqlCommand("select * from renewal", con);
// SqlDataAdapter dr = new SqlDataAdapter(cmd);
// DataSet ds = new DataSet();

// dr.Fill(ds, "renewal");
// GridView1.DataSource = ds;
// GridView1.DataMember = "renewal";
// }
//}
}

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="View


License Details.aspx.cs" Inherits="View_License_Details" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<table style="width: 100%">
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label1" runat="server"
style="color: #660066; font-size: large; font-weight: 700"
Text="View License Details"></asp:Label>
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333"
GridLines="None">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="license_no" HeaderText="license_no"
SortExpression="license_no" />
<asp:BoundField DataField="date" HeaderText="date" SortExpression="date" />
<asp:BoundField DataField="name" HeaderText="name" SortExpression="name" />
<asp:BoundField DataField="fathername" HeaderText="fathername"
SortExpression="fathername" />
<asp:BoundField DataField="dob" HeaderText="dob" SortExpression="dob" />
<asp:BoundField DataField="age" HeaderText="age" SortExpression="age" />
<asp:BoundField DataField="gender" HeaderText="gender"
SortExpression="gender" />
<asp:BoundField DataField="contact_no" HeaderText="contact_no"
SortExpression="contact_no" />
<asp:BoundField DataField="address" HeaderText="address"
SortExpression="address" />
<asp:BoundField DataField="proof_name" HeaderText="proof_name"
SortExpression="proof_name" />
<asp:BoundField DataField="proof_no" HeaderText="proof_no"
SortExpression="proof_no" />
</Columns>
<EditRowStyle BackColor="#2461BF" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#EFF3FB" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM [request]"></asp:SqlDataSource>
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</asp:Content>
View License

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
public partial class Viewlicense : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["db"].ToString());

//SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\vijay\Web


RTO\App_Data\rto.mdf;Integrated Security=True;User Instance=True");
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button1_Click(object sender, EventArgs e)
{
con.Open();
cmd = new SqlCommand("select * from request where name='" + TextBox1.Text + "'", con);
SqlDataReader Reader = cmd.ExecuteReader();
if (Reader.Read())
{

cmd = new SqlCommand("select * from request where name='" + TextBox1.Text + "'", con);
con.Close();
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();

else
{
Label3.Text = "Name Not Found";
}
}
}

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="View


Renewal Details.aspx.cs" Inherits="View_Renewal_Details" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<table style="width: 100%">
<tr>
<td style="height: 20px">
</td>
<td style="height: 20px">
</td>
<td style="height: 20px">
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label1" runat="server" style="color: #660066"
Text="View Renewal Details"></asp:Label>
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333"
GridLines="None">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="date" HeaderText="date" SortExpression="date" />
<asp:BoundField DataField="license_no" HeaderText="license_no"
SortExpression="license_no" />
<asp:BoundField DataField="name" HeaderText="name" SortExpression="name" />
<asp:BoundField DataField="address" HeaderText="address"
SortExpression="address" />
<asp:BoundField DataField="proof_name" HeaderText="proof_name"
SortExpression="proof_name" />
<asp:BoundField DataField="proof_no" HeaderText="proof_no"
SortExpression="proof_no" />
</Columns>
<EditRowStyle BackColor="#2461BF" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#EFF3FB" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM [renewal]"></asp:SqlDataSource>
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</asp:Content>

View Renewal
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;

public partial class Viewrenewal : System.Web.UI.Page


{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["db"].ToString());

//SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\vijay\Web


RTO\App_Data\rto.mdf;Integrated Security=True;User Instance=True");
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
con.Open();
cmd = new SqlCommand("select * from renewal where name='" + TextBox1.Text + "'", con);
SqlDataReader Reader = cmd.ExecuteReader();
if (Reader.Read())
{

cmd = new SqlCommand("select * from renewal where name='" + TextBox1.Text + "'", con);
con.Close();
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();

}
else
{
Label3.Text = "Name Not Found";
}
}
}
<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="View
User Details.aspx.cs" Inherits="View_User_Details1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<table class="style1">
<tr>
<td class="style4" style="width: 479px">
&nbsp;</td>
<td class="style5" style="width: 20px">
&nbsp;</td>
<td style="width: 726px">
&nbsp;</td>
</tr>
<tr>
<td class="style2" colspan="3">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label
ID="Label1" runat="server" Text="View Register Details"
ForeColor="#660066" style="font-size: large; font-family: Andalus"></asp:Label>
</td>
</tr>
<tr>
<td class="style4" style="width: 479px">
&nbsp;</td>
<td class="style5" style="width: 20px">
&nbsp;</td>
<td style="width: 726px">
&nbsp;</td>
</tr>
<tr>
<td class="style4" style="width: 479px">
&nbsp;</td>
<td class="style5" style="width: 20px">
<asp:Label ID="Label2" runat="server" Text="View" ForeColor="#660066"></asp:Label>
</td>
<td style="width: 726px">
&nbsp;</td>
</tr>
<tr>
<td class="style4" colspan="3">
<asp:GridView ID="GridView1" runat="server" BackColor="White"
BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4"
style="margin-left: 27px" AutoGenerateColumns="False"
DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="user_id" HeaderText="user_id"
SortExpression="user_id" />
<asp:BoundField DataField="name" HeaderText="name" SortExpression="name" />
<asp:BoundField DataField="fathername" HeaderText="fathername"
SortExpression="fathername" />
<asp:BoundField DataField="age" HeaderText="age" SortExpression="age" />
<asp:BoundField DataField="address" HeaderText="address"
SortExpression="address" />
<asp:BoundField DataField="email_id" HeaderText="email_id"
SortExpression="email_id" />
<asp:BoundField DataField="mobile_no" HeaderText="mobile_no"
SortExpression="mobile_no" />
<asp:BoundField DataField="username" HeaderText="username"
SortExpression="username" />
<asp:BoundField DataField="password" HeaderText="password"
SortExpression="password" />
<asp:BoundField DataField="gender" HeaderText="gender"
SortExpression="gender" />
</Columns>
<FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
<PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
<RowStyle BackColor="White" ForeColor="#330099" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
<SortedAscendingCellStyle BackColor="#FEFCEB" />
<SortedAscendingHeaderStyle BackColor="#AF0101" />
<SortedDescendingCellStyle BackColor="#F6F0C0" />
<SortedDescendingHeaderStyle BackColor="#7E0000" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM [register]"></asp:SqlDataSource>
</td>
</tr>
<tr>
<td class="style4" style="width: 479px">
&nbsp;</td>
<td class="style5" style="width: 20px">
&nbsp;</td>
<td style="width: 726px">
&nbsp;</td>
</tr>
<tr>
<td class="style4" style="width: 479px">
&nbsp;</td>
<td class="style5" style="width: 20px">
&nbsp;</td>
<td style="width: 726px">
&nbsp;</td>
</tr>
<tr>
<td class="style4" style="width: 479px">
&nbsp;</td>
<td class="style5" style="width: 20px">
&nbsp;</td>
<td style="width: 726px">
&nbsp;</td>
</tr>
<tr>
<td class="style4" style="width: 479px">
&nbsp;</td>
<td class="style5" style="width: 20px">
&nbsp;</td>
<td style="width: 726px">
&nbsp;</td>
</tr>
</table>
</asp:Content>
Screenshots

Home Page
Admin Login
Admin Home
View Register Details
License Details
View Renewal Details
View License Details
User Registration
User Login
Apply License
Renewal
Message

You might also like