Sample Student
Sample Student
INTRODUCTION
Since the advent of computers in last two decades, every organization is going under
the process of computerization. The computerization has many benefits. Primarily a
computer is helpful in four major aspects of any kind of organization:
Time efficiency
Cost effective
Huge data storage capacity
1
Simple operation.
This is a public website for appling for Passport online. All the registered users of
Passport site have there own personal home page. The Passport site include a Search
button for finding Quick Passport, it has four option that is
Search by location
Search by Date
Search by Qualification.
Search by Passport Title.
This Passport site uses forms authentication to authenticate users. When new users
register the forms, authentication module automatically give a authentication ticket to the
user’s browser to identify the user.
Several of the pages include in the Passport site use validation controls to validate form
information before it is added to Database table.
To simplify development all the pages in the Passport site are built with user
controls. For example, the standard header and footer for each page are created with
header and footer user control. Uses of the website can publicity post Passport and find
better Passport of companies. If a user is interested in a Passport , the user can submit a
resume, and if employer is interested in that user then they enquiry about user and send
response by mail or phone.
OBJECTIVE
To store data of the entire user who are registered in the site.
To solve the user’s problem in time efficient manner. Helping the user to search
different Passport with a robust search tools
To facilitate easy and efficient retrieval of data as and when required for Passport
by the company.
2
To generate and print out the various reports.
Online updating of all type of data, updating data using web based interfaces and
with the help of buttons and links in an easy and convenient way.
3
SURVEY OF TECHNOLOGY
ADO.NET
Business Logic
4
SQL DATABASE MANAGEMENT SYSTEM
Database systems have become ubiquitous across the computing
landscape. This is partly because of the basic facilities offered by database
management systems: physical data independence, ACID transaction properties, a
high-level query language, stored procedures, and triggers. These facilities
permits sophisticated applications to ‘push’ much of their complexity into the
database itself. The proliferation of database systems in the mobile and embedded
market segments is due, in addition to the features above, to the support for two-
way database replication and synchronization offered by most commercial
database management systems. Data synchronization technology makes it
possible for remote users to both access and update corporate data at a remote,
off-site location. With local (database) storage, this can be accomplished even
when disconnected from the corporate network.
5
PROJECT CATEGORY
The relational model was propounded by E.F. codd of the IBM in 1972. One of
the main advantages of the relational model is that it is conceptually simple and more
importantly based on mathematical theory of relation. It is also frees the users from
details of storage structure and access methods.
A database can be understood as a collection of related files. How those files are
related depends on the model used. Early models included the hierarchical model (where
files are related in a parent/child manner, with each child file having at most one parent
file), and the network model (where files are related as owners and members, similar to
the network model except that each member file can have more than one owner).
FUTURE OR RDBMS: -
Data are the values stored in the database. On its own, data means very little.
A database is a collection of tables.
Each table contains records, which are the horizontal rows in the table. These are
also called tuples.
Each record contains fields, which are the vertical columns of the table. These are
also called attributes.
Fields can be of many different types. There are many standard types, and each
DBMS (database management system, such as Oracle or SQL) can also have their
own specific types, but generally they fall into at least three kinds - character,
numeric and date
The domain refers to the possible values each field can contain (it's sometimes
called a field specification).
An index is a physical mechanism that improves the performance of a database.
Indexes are often confused with keys
A view is a virtual table made up of a subset of the actual tables.
6
HARDWARE & SOFTWARE SPECIFICATION
7
DESIGN SPECIFICATION
registration
Document
verificatio
Applicant n Registrar
Acknowled
gment slip
8
2. 2. DATA FLOW DIAGRAM
info
Document info
Copy of scaned
document
Document
details
9
Browser database
info
Selection process
Selection info
Control no info Control No
info Process
Enter
Document New applicant info
New applicant
Process info Database
Login info
Login info Login process Login register
Password
10
System Updating
Applicant profile
Applicant
profile details
Applicant Detail
info
info
Applicant info
details
info Configure
System
Database
info
info Listing of all the
Apply registered Applicant
info
Details
User process info Apply details
Applicant Interact
Process
Login info
Registration info
11
3. ENTITY RELATIONSHIP DIAGRAM
12
DATABASE STRUCTURE
Passport table
Login table
13
Apply table
Passport table
Field Name Data Type Size Description
Passport _Id Varchar, [primary key ] 50 Passport id
Passport _sdate Date Passport apply date
Passport _mail_id Varchar 50 Passport email id
Passport _location Varchar 50 Passport location
Enqirytable
Field Name Data Type Size Description
enquiry _id Varchar, [primary key ] 50 Enquiry id
enquiry _date Date Enquiry date
enquiry _status Varchar 50 Status of enquiery
enquiry _description Varchar 50 Description of enquiey
Delevery
Field Name Data Type Size Description
delivery_number Varchar, [primary key ] 50 Deleveryid
delivery _date Date Delevery date
delivery _status Varchar 50 Status of Delevery
delivery _address Varchar 50 Address of delivery
14
delivery _contact Varchar 50 Contact detail of person
Remark Varchar 50 Remark for delevery
15
PROCESS LOGIC
User
Database
Home page open and computer asked for login and password
No
By Date of
submition
if
By passport
Number
Passport search
1
16
Companydetails
User are assign the input
2
1
Apply passport
17
MODULES
Registration of user: It takes the information the user and enter it into the
database. This module uses the table ‘Documantations for its operation
This table has following sub module.
18
Add
Edit
Save
Delete
Passport description: It takes the information form the user and enters it
into database. This module user the table ‘PASSPORT’ for its operation.
This table has following sub module.
Add
Edit
Update
Delete
Company info: It takes the information form the user and enters it into database.
This module user the table. ‘ Company’ for its operation
User profile info:It table the information the user enters it into database. This
module user the table ‘resumes’ for its operation.This table user has following sub
module:-
add
update
delete
Validation master:This module validation the entry made by user if the entry is
not as per the specification a wrong message is given.
Application module:With the user of this module user apply to this company he
desire this modules user the table ‘Passport and “apply” for its operation.
19
20
REPORT GENERATION
Report generation: This system will generate the report for the an file software
like. Following reports are genreaded:-
How many user are currently wring the site
How many companies are there who has Passport requirement.
How many candidate are there who user eligible for particular Passport option
Report on Passport selection
For Passport seeker on the baric of Passport search by option
Search by Application Number
Search by Name and Date of birth
Search by data
Report of company detail that have Passport requirement.
Report on Passport selection for Passport seeker on the basis of quick search
option
Report of the new user who has registered and enter Passport and other detail.
Report of the registered user who have user id and password.
21
FUTURE SCOPE
Enhancement of our proposed system after successfully implementing the it can be added
in the system that automatically displays the details when the User apply for Passport
after mailing his resume.When the developed system runs successfully, it can be also be
used that the all Passport company can automatically get the Passport of the user they
have same Passport vacancies.
Online User register facility could be brought on Web that would enable the User
to register and can see the detail in the system itself by entering his login id No.
There should be some page like Passport sample question paper and online test can give
the better option for finding Passport and company need only to conduct viva-exam not
written exam for that user who has passed online examination.
If user want to send Passport detail to his friend then there is option to mail
Passport detail to friend is necessary in Passport page.
Each of these tasks serves describes the problem so that an overall approach or
solution may be synthesized.
1: Registered Module:
In this module, User enters a login & password and the software checks its
validity. If the login & password is valid then he is allowed to enter, otherwise “Invalid
User/Password” message is displayed. Different data access rights are assigned to
different users.
2: Master Module.
This module is used to add new candidate, new Passport ,new company details
etc.
3: Apply Module:
In this module, User apply for the Passport which is best suited to him as per their
qualification, location.
22
4: Modifying/Updating Existing Entries:
In this module, whenever an existing entity is required to be modified the
corresponding forms are opened and the database is manipulated and the data is fetched.
Now the user can made the required changes and then accordingly, he updates the data.
Again, the checks are followed in case there is any invalid entry.
5: Searching:
In this module, User can search on the requirement their choice that mean, it
(search engine) will help to search in all record/ information of available Passport
/company/candidate.
23
SECURITY MESAURES
Security in database involves both policies and mechanisms to protect the data and ensure
that it is not accessed, altered or deleted without proper authorization. Integrity implies that any
properly authorized access, alternation or deletion of the data in the database does not change the
validity of the data. The economic or strategic reasons for protecting data from unauthorized
access, corruption or destruction, there is a privacy dimension for data security or integrity.
Privacy is the ethical and legal rights that individual have with regard to control over the
dissemination and use of their personal information.
Data has to be protected in the database. There is a similar need for protection in a non
database environment. The operating system must ensure that files belonging to the database are
not used directly without proper authorization.
AUTHENTICATION
The simplest and most common authentication scheme used is a password to
authenticate the user. The user enters the user name or number and then authenticates
her /him by the password. A number of methods can be used in the authentication: by
something known only by the user, by something that only the user possesses, or by some
physical/physiological characteristics of the user.
24
BIBLIOGRAPHY
www.w3school.com
Addison.WesleyASP.NET Solutions—23 Case Studies: Best Practices for Developers
Premier Press - Ado.net Professional Projects
Wrox.Press-ProfessionalADO.NETProgramming
Wrox.Press-Professional ASP.NET Programming
25
2.PROJECT
2. TITLE
26
3.INTRODUCTION
3.
Since the advent of computers in last two decades, every organization is going under the
process of computerization. The computerization has many benefits. Primarily a
computer is helpful in four major aspects of any kind of organization:
Time efficiency
Cost effective
Huge data storage capacity
Simple operation.
This is a public website for appling for Passport online. All the registered users of
Passport site have there own personal home page. The Passport site include a Search
button for finding Quick Passport, it has four option that is
Search by location
Search by Date
Search by Qualification.
Search by Passport Title.
This Passport site uses forms authentication to authenticate users. When new users
register the forms, authentication module automatically give a authentication ticket to the
user’s browser to identify the user.
Several of the pages include in the Passport site use validation controls to validate form
information before it is added to Database table.
To simplify development all the pages in the Passport site are built with user
controls. For example, the standard header and footer for each page are created with
header and footer user control. Uses of the website can publicity post Passport and find
better Passport of companies. If a user is interested in a Passport , the user can submit a
resume, and if employer is interested in that user then they enquiry about user and send
response by mail or phone.
27
4.0 OBJECTIVE
To solve the user’s problem in time efficient manner. Helping the user to search
different Passport with a robust search tools
To facilitate easy and efficient retrieval of data as and when required for Passport
by the company.
Online updating of all type of data, updating data using web based interfaces and
with the help of buttons and links in an easy and convenient way.
28
5.0 SYSTEM ANALYSIS
29
processing and behavioral operation, and information content. The model serves as a
foundation for software design and as the basis for the creation of a specification for the
software.
Present system is manual. The working of the organization May be described as:
All details of customer, product, sale, purchase, registration etc are maintained in
registers. All registrations are also maintained in registers. All Bills are manually created,
and send at desired place for further use. The daily-to-daily entries are also being
manually.
Questionnaire:
4.Can you show me the environment in which the software will be used?
30
6.What will be the economic benefit of a successful solution?
Ans.The slow working process of the work due to high number of calculations.
Ans. Usually it delays our work. As such we have to prepare ourselves 3 to 4 days
beforehand to say the least.
Ans. No because it hardly leads to a conclusive result rather generating further queries.
Also the bulk of work sometimes forces us to limit our capabilities and skip through
some material and information since they may not be available.
5.3Feasibility Study
Before getting started on the new system it was important to determine the feasibility
involved in the developed system so that the new system development could be develop.
Feasibility is the determination of whether or not a project is not worth doing. The project
followed in making this determination is called a feasibility study. This type of study
determines if a project can and should Be Taken. Once it has been determined that project
is feasible, the analyst can go ahead and the prepare the project specification which
finalizes project requirements.
Generally, feasibility studies are undertaken within tight time constraints and
Normally culminate in a written and feasibility report.
The developed system is started after considering the main three type of
feasibilities which are discussed below: -
1)-Technical feasibility
31
2)-Operational feasibility
3)-Economic feasibility
1. Technical Feasibility
2. Economic Feasibility
Economic analysis is the most frequently used technique for evaluating the
effectiveness of a proposed system. More commonly known as cost/benefits analysis the
procedure is to determine the benefits and savings that are expected from a purposed
system and compare with costs.
If benefits out weigh cost, a decision is taken to design and implement the system
otherwise further justification or alternative in the proposed system will have to be made
if it is to have a chance of being approved. This is an on going effort that improves in
accuracy at each phase of the system life cycle.
The analysis part also clears the doubt of economic problems could be possible in
developing the system. As already mentioned that the company has to just pay the
32
developed software cost and not other investment is needed at the time of implementation
of the new system as the preliminary requirement are already exist in the company.
Since the cost difference between the present system and the new proposed computerized
system will be large. Considering the fact that new system will require only one time
monetary investment whereas the present system keeps on adding to the cost in a daily
basis. We can conclude that the breakeven point will be reached
within a year, making this proposed computerized news management system
economically feasible.
3. Operational Feasibility
Proposed projects are beneficial only if they can be turned into information system
that will meet the operating requirements of the organization. This test of feasibility asks
if the system will work when it developed and installed. Are there major barriers to
implementation? Some of the important questions that are useful to test the operational
feasibility of a project are given below:
Is there sufficient support for the project from the implementation? From user? If
the present system is well liked and used to the extent that persons will not be
able to see reasons for change, there may be resistance.
Are current business methods acceptable to the user? If they are not, user may
welcome a change that will bring about a more operational and useful system.
Have the user been involved in the planning and development of the project? If
they are involved at the earliest stage of project development, the chances of
resistance can be possibly reduced.
Will the proposed system cause harm? Will it produce poorer result in any case
or area? Will the performance of staff member fall down after implementation?
Issue that appears to be quite minor at the early stage can grow into major
problem after implementation. Therefore, it is always advisable to consider operational
aspects carefully. The system is developed in keeping mind that it should be user friendly
and easy to operate hence the system is operational feasible.
33
34
5.4Project planning
Gantt chart
Gantt charts (developed by Henry L. Gantt) are project control techniques that can be
used for several purposes, including scheduling, budgeting and resource planning. A
Gantt chart is a bar chart, with each bar representing an activity. The bars are drawn
against a time line. The length of each bar is proportional to the length of time planned
for the activity.
We estimated the number of weeks required for each of the seven tasks as follows:
1. Analysis 3 Weeks
2. Design 4 Weeks
3. Coding 8 Weeks
4. Testing 4 Weeks
5. Write Manual 2 Weeks
6. Implementation 1 Week
7. Maintenance 2 Weeks
35
Gantt Chart
36
5.5Project Scheduling
A PERT (Program Evaluation and Review Technology) chart is a network of boxes (or
circles) and arrows. There are different variations of PERT Charts, some use the boxes to
represent the activities and some use arrows to do so. We will use the first approach here.
Each box thus represents an activity. The arrows are used to show the dependencies of
activities on one another. The activity at the head of an arrow can not start until activity at
the tail of the arrow is finished.
37
5.6 Software Requirement Specification
Introduction
a. Purpose
b. Scope
c. Definition, Acronyms, Abbreviations
d. References
e. Developer’s Responsibilities Overview
General Description
a. Product Functions Overview
b. User Characteristics
c. General Constraints
d. General Assumptions and Dependencies
Specific Requirements
a. Inputs and Outputs
b. Functional Requirements
c. External Interface Requirements
d. Performance Constraints
e. Design Constraints
(i) Software Constraints
(ii) Hardware Constraints
Validation and Criteria
a. Performance bounds
b. Classes of tests
c. Expected Software response
d. Special Considerations
38
Acceptance Criteria
1.Introduction: -
This is the requirements document for the project that will be used
throughout the work. The system to be developed is for front office and financial work of
agency, based on the inputs given. This document follows the IEEE standard for a
requirement specification document, with some variations.
a) Purpose:
This document is the only one that describes the requirements of the
system. It is meant for use by the developers and will be the basis for validating
the final delivered system. Any changes made to the requirements in the future
have to go through a formal change approval process. The developer is
responsible for asking for clarifications, where necessary, and will not make any
alterations without the permission of the client.
c) Definitions, Acronyms, Abbreviations:
Not applicable.
d) References:
Not applicable.
The developer is responsible for (i) developing the system, (ii) installing
the software on the client’s hardware, (iii) conducting any user training that might
be needed for using the system, and (iv) maintaining the system for a period of
one year after installation.
39
2. General Description: -
Every user must enter his Passport and some details about itself for login the
home page and after submitted his Passport system provided a particular user-
id and password at the time of registration. The administrator can also login
from this module. He can insert, delete or update the user login name and
password.this module check the authenticity of the person accessing the
project. The main objective behind this module is to provide security to the
project so that access is restricted to the authorized users.
Input is taken as login and password that the user Enters.
This login id and password sent back to the activeX exe through DLL to
check the information in the database.
b) User Characteristics:
The main users of this system will be the registration department and
accounts department, who are somewhat literate with computers and can use
programs efficiently.
c) General Constraints:
Not applicable.
3. Specific Requirements:-
40
This Passport site uses forms authentication to authenticate users. When
new users register the forms, authentication module automatically give a
authentication ticket to the user’s browser to identify the user.
Several of the pages include in the Passport site use validation controls to
validate form information before it is added to Database table.
b) Functional Requirements:
Only one user command is required. The file name must be prompted by the
system in status bar.
d)Performance Constraints:
e) Design Constraints:
4. Validation Criteria:-
41
matter has not been dealt with by the concerned SSA in a fair, just or objective manner or
has been unduly delayed. It may take up such a care for investigation, call for a report
and or file from the concerned SSA and ask them to reconsider the matter and to arrive at
a fair decision in a time bound manner.
5.Acceptance Criteria:-
Before accepting the system, the developer must demonstrate that the system
works on the course data for the last 4 semesters. The developer will have to show
through test cases that all conditions are satisfied.
After getting detail of each section, whole process was re-evaluated and a proper design
for the system was brought into existence.
42
The activates are defined as follows:
Identification of the system or subsystem’s key “Stakeholders”
Determination of the stakeholders “Win conditions”
Negotiation of the stakeholders’ win conditions to reconcile them into a set of
win-win conditions for all concerned.
registration
Document
verificatio
Applicant n Registrar
Acknowled
gment slip
43
Data Flow Diagram
info
Document info
Copy of scaned
document
Document
details
44
Browser database
info
Selection process
Selection info
Control no info Control No
info Process
Enter
Document New applicant info
New applicant
Process info Database
Login info
Login info Login process Login register
Password
45
System Updating
Applicant profile
Applicant
profile details
Applicant Detail
info
info
Applicant info
details
info Configure
System
Database
info
info Listing of all the
Apply registered Applicant
info
Details
User process info Apply details
Applicant Interact
Process
Login info
Registration info
46
Entity Relationship Diagram
47
6.0 SYSTEM DESIGN
Registration of user:
It takes the information the user and enter it into the database. This module uses
the table ‘Documantations for its operation
48
This table has following sub module.
Add
Edit
Save
Delete
Passport description: It takes the information form the user and enters it
into database. This module user the table ‘PASSPORT’ for its operation.
This table has following sub module.
Add
Edit
Update
Delete
Company info: It takes the information form the user and enters it into database.
This module user the table. ‘ Company’ for its operation
User profile info:It table the information the user enters it into database. This
module user the table ‘resumes’ for its operation.This table user has following sub
module:-
add
update
delete
Validation master:This module validation the entry made by user if the entry is
not as per the specification a wrong message is given.
Application module:With the user of this module user apply to this company he
desire this modules user the table ‘Passport and “apply” for its operation.
49
6.2 Database Design
Passport table
50
51
User Registeration table
52
Apply table
53
Passport Fee
54
Enqirytable
55
Admin Login
56
6.3 User InterfaceDesign
Index
57
About us
58
Fees
59
Instruction
60
Login
61
Registeration
62
User Homepage
63
PassportForm
64
65
66
67
After login status form
68
Without Login Status Form
69
Admin Home
70
Admin Fees Updating
71
Passport Request
72
RequestDetails
73
74
PassportPatched
75
Passport Dispatched
76
User Registeration Details
77
Status Patch with login
78
Status patch without login
79
Coding
7.1 Complete Project Coding
C Sharp Code (C#)
fees.aspx.cs
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;
publicpartialclassfees : System.Web.UI.Page
{
data code = newdata();
protectedvoid Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ddlbind();
}
}
void ddlbind()
{
string sqlstatement = "select fees from passportfee where aplicantage='"
+ ddlage.Text + "' and noofbooklet='" + ddlbookpage.Text + "' and
RequiredSchema='" + ddlschema.Text + "'";
SqlDataAdapter adp =
code.adpObj(code.conObj(ConnectionStr.Connectionstr()), sqlstatement);
DataTable dt = newDataTable();
adp.Fill(dt);
foreach (DataRow dr in dt.Rows)
{
lblamount.Text = (dr["fees"].ToString());
}
}
protectedvoid ddlschema_SelectedIndexChanged(object sender, EventArgs e)
{
ddlbind();
}
protectedvoid ddlbookpage_SelectedIndexChanged(object sender, EventArgs
e)
{
ddlbind();
}
protectedvoid ddlage_SelectedIndexChanged(object sender, EventArgs e)
{
ddlbind();
}
80
}
Home.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
publicpartialclassHome : System.Web.UI.Page
{
data code = newdata();
protectedvoid Page_Load(object sender, EventArgs e)
{
try
{
Label1.Text = Session["name"].ToString();
Label1.Text.ToUpper();
}
catch (Exception)
{
Server.Transfer("login.aspx");
}
checkentry();
}
protectedvoid LinkButton1_Click1(object sender, EventArgs e)
{
Session.Abandon();
Response.Redirect("login.aspx");
}
void checkentry()
{
data code = newdata();
string id=Session["rid"].ToString();
DataTable dt = newDataTable();
SqlDataAdapter adp =
code.adpObj(code.conObj(ConnectionStr.Connectionstr()), "select * from
passportform where Regid='" + id + "'");
adp.Fill(dt);
foreach (DataRow dr in dt.Rows)
{
if (dr["passform"].ToString()!="NOT")w
{
ImageButton5.Visible = false;
}
81
else
{
ImageButton5.Visible = true;
}
}
}
}
Login.aspx.cs
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;
publicpartialclasslogin : System.Web.UI.Page
{
data code = newdata();
if (dr.Read())
{
Session["rid"] = txtuid.Text;
Session["name"] = txtuname.Text;
Response.Redirect("Home.aspx");
}
else
{
ClientScript.RegisterStartupScript(Page.GetType(),
"validation", "<script language='javascript'>alert('Invalid Username and
Password')</script>");
}
82
dr.Close();
SqlCommand cmd1 = newSqlCommand("select * from AdminLogin where
Adminid='" + txtuid.Text + "' and AdminName='" + txtuname.Text + "' and
Adminpass='" + txtpass.Text + "'", con);
if (dr1.Read())
{
Session["Aaminid"] = txtuid.Text;
Session["adminname"] = txtuname.Text;
dr1.Close();
Response.Redirect("~/Admin/AdminHome.aspx");
}
else
{
txtpass.Text = "";
txtuid.Text = "";
txtuname.Text = "";
ClientScript.RegisterStartupScript(Page.GetType(),
"validation", "<script language='javascript'>alert('Invalid Username and
Password')</script>");
}
}
catch (Exception ex)
{
Response.Write(ex);
}
finally
{
if (con.State != ConnectionState.Closed && con != null)
{
con.Close();
}
}
}
}
Passportform.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
publicpartialclasspassportform : System.Web.UI.Page
{
data code = newdata();
protectedvoid Page_Load(object sender, EventArgs e)
{
try
{
string uid = Session["rid"].ToString();
}
catch (Exception)
83
{
Server.Transfer("login.aspx");
}
TextBox27.Enabled = false;
TextBox27.Text = DateTime.Now.ToShortDateString();
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
if (CheckBox1.Checked==true)
{
string typeofapplication;
string pages;
string validityrequired;
string anothername;
string changeevername;
string addoutofindia;
string permanentaddsamepresentadd;
string haveapplypass;
string criminalrecord;
string criminaloffen;
string refuseordenied;
string revoked;
string politicasylum;
string emergencycertificate;
if (RadioButton1.Checked==true)
{
typeofapplication = "Normal";
}
else
{
typeofapplication = "Tatkal";
}
if (RadioButton3.Checked==true)
{
pages = "36 Pages";
}
else
{
pages = "60 Pages";
}
if (RadioButton5.Checked==true)
{
validityrequired = "10 Year";
}
else
{
validityrequired = "Up to 18 Year Old";
}
if (RadioButton8.Checked==true)
{
anothername = "Yes";
}
else
84
{
anothername = "No";
}
if (RadioButton10.Checked==true)
{
changeevername = "Yes";
}
else
{
changeevername = "No";
}
if (RadioButton12.Checked==true)
{
addoutofindia = "Yes";
}
else
{
addoutofindia = "No";
}
if (RadioButton14.Checked==true)
{
permanentaddsamepresentadd = "Yes";
}
else
{
permanentaddsamepresentadd = "No";
}
if (RadioButton16.Checked==true)
{
haveapplypass = "Yes";
}
else
{
haveapplypass = "No";
}
if (RadioButton18.Checked==true)
{
criminalrecord = "Yes";
}
else
{
criminalrecord = "No";
}
if (RadioButton20.Checked==true)
{
criminaloffen = "Yes";
}
else
{
criminaloffen = "No";
}
85
if (RadioButton22.Checked==true)
{
refuseordenied = "Yes";
}
else
{
refuseordenied = "No";
}
if (RadioButton24.Checked==true)
{
revoked = "Yes";
}
else
{
revoked = "No";
}
if (RadioButton26.Checked==true)
{
politicasylum = "Yes";
}
else
{
politicasylum = "No";
}
if (RadioButton28.Checked==true)
{
emergencycertificate = "Yes";
}
else
{
emergencycertificate = "No";
}
string dob = TextBox3.Text;
string reid= Session["rid"].ToString();
sqlquery = "update passportform set typeofapplication='" +
typeofapplication + "',typeofpassbooklet='" + pages +
"',applicantname='" + TextBox1.Text + "',applicantsurname='" +
TextBox2.Text + "',anothrname='" + anothername + "',changename='" +
changeevername + "',applicantdob='" + dob + "',vilagetowncity='" +
TextBox4.Text + "',country='" + DropDownList1.Text + "',state='" +
DropDownList2.Text + "',gender='" + DropDownList4.Text + "',
maritalstatus='" + DropDownList5.Text + "',pan='" + TextBox5.Text +
"',voterid='" + TextBox6.Text + "',employementtype='" +
DropDownList11.Text + "',gvservent='" + DropDownList6.Text +
"',eduqualification='" + DropDownList7.Text + "',ecrcatlog='" +
DropDownList8.Text + "',fathername='" + TextBox9.Text +
"',fathersurename='" + TextBox10.Text + "',legalgardianname='" +
TextBox11.Text + "',legalgardiansurname='" + TextBox12.Text +
"',mothername='" + TextBox13.Text + "',mothersurename='" +
TextBox14.Text + "',presentaddoutind='" + addoutofindia +
"',permanentaddaspresentadd='" + permanentaddsamepresentadd +
"',emrgamandadd='" + TextBox15.Text + "',emrgmob='" + TextBox16.Text +
"',emrgtelphone='" + TextBox17.Text + "',emrgemailadd='" +
TextBox18.Text + "',rifffirstnameadd='" + TextBox19.Text +
86
"',rifffirstmob='" + TextBox20.Text + "',rifffirsttelphone='" +
TextBox21.Text + "',prvpassno='" + TextBox22.Text + "',privissuedate='"
+ TextBox23.Text + "',privdateexp='" + TextBox24.Text +
"',evrapplynotissued='" + haveapplypass + "',arrstvarentpending='" +
criminalrecord + "',arrstcriminalofften='" + criminaloffen +
"',reessueddeniedpassport='" + refuseordenied + "',impoundedrevoke='" +
revoked + "',politicleassylum='" + politicasylum +
"',emergencycertificate='" + emergencycertificate + "',place='" +
TextBox26.Text + "',dateofsubmitform='" + TextBox27.Text +
"',passform='" + "YES" + "',status='"+"Dispatch"+"' where Regid='" +
reid + "'";
code.cmdObj(code.conObj(ConnectionStr.Connectionstr()),
sqlquery);
}
else
{
}
}
Status.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
publicpartialclassstatus : System.Web.UI.Page
{
protectedvoid Page_Load(object sender, EventArgs e)
{
TextBox1.Enabled = false;
try
{
string uid = Session["rid"].ToString();
bind();
}
catch (Exception)
{
Server.Transfer("login.aspx");
}
}
void bind()
87
{
string query = string.Empty;
string uid = Session["rid"].ToString();
SqlCommand cmd = newSqlCommand();
SqlConnection con = newSqlConnection(ConnectionStr.Connectionstr());
try
{
query = "select * from passportform where Regid='" + uid +
"'";
cmd.Connection = con;
cmd.CommandText = query;
SqlDataAdapter adp = newSqlDataAdapter(cmd);
DataTable dt = newDataTable();
adp.Fill(dt);
foreach (DataRow dr in dt.Rows)
{
TextBox1.Text = dr["status"].ToString();
}
}
catch (Exception ex)
{
Response.Write("ERROR :" + ex.Message);
}
}
}
StatusDetails.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
publicpartialclassstatusdetails : System.Web.UI.Page
{
data code = newdata();
protectedvoid Page_Load(object sender, EventArgs e)
{
Label2.Visible = false;
status.Visible = false;
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
string query = string.Empty;
SqlCommand cmd = newSqlCommand();
SqlConnection con = newSqlConnection(ConnectionStr.Connectionstr());
try
88
{
query = "select * from passportform where applicantname='" +
TextBox1.Text + "' and vilagetowncity='" + TextBox2.Text + "'";
cmd.Connection = con;
cmd.CommandText = query;
con.Open();
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
status.Text = dr["status"].ToString();
Label2.Visible = true;
status.Visible = true;
}
else
{
status.Text = "NO Records Found";
}
}
catch (Exception ex)
{
Response.Write("ERROR :" + ex.Message);
}
finally
{
if (con.State!=ConnectionState.Closed && con!=null)
{
con.Close();
}
}
}
}
User.master.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using System.Data.SqlClient;
publicpartialclassUser : System.Web.UI.MasterPage
{
protectedvoid Page_Load(object sender, EventArgs e)
{
try
89
{
string uid = Session["rid"].ToString();
Label1.Text = Session["name"].ToString();
Label1.Text.ToUpper();
}
catch (Exception)
{
Server.Transfer("login.aspx");
}
checkentry();
}
protectedvoid LinkButton1_Click1(object sender, EventArgs e)
{
Session.Abandon();
Response.Redirect("login.aspx");
}
void checkentry()
{
data code = newdata();
string id = Session["rid"].ToString();
DataTable dt = newDataTable();
SqlDataAdapter adp =
code.adpObj(code.conObj(ConnectionStr.Connectionstr()), "select * from
passportform where Regid='" + id + "'");
adp.Fill(dt);
foreach (DataRow dr in dt.Rows)
{
if (dr["passform"].ToString() != "NOT")
{
ImageButton5.Visible = false;
}
else
{
ImageButton5.Visible = true;
}
}
}
}
Userregisteration.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
90
publicpartialclassUserRegisteration : System.Web.UI.Page
{
data code = newdata();
protectedvoid Page_Load(object sender, EventArgs e)
{
lblregid.Visible = false;
Label1.Visible = false;
Label2.Visible = false;
HyperLink1.Visible = false;
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
string regid= code.generateid("select * from userregisteration",
ConnectionStr.Connectionstr());
lblregid.Text=regid;
code.cmdObj(code.conObj(ConnectionStr.Connectionstr()), "insert
into userregisteration(name,email,pwd,addd,phone,regid) values('" +
txtname.Text + "','" + txtemail.Text + "','" + txtpass.Text + "','" +
txtadd.Text + "','" + txtphone.Text + "','"+regid+"')");
code.cmdObj(code.conObj(ConnectionStr.Connectionstr()), "insert
into passportform(Regid,passform)
values('"+lblregid.Text+"','"+"NOT"+"')");
lblregid.Visible = true;
Label1.Visible = true;
Label2.Visible = true;
HyperLink1.Visible = true ;
txtreset();
}
void txtreset()
{
txtadd.Text = "";
txtemail.Text = "";
txtname.Text = "";
txtpass.Text = "";
txtphone.Text = "";
}
}
AdminPanel
AdminMaseterPage.master.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
91
publicpartialclassAdmin_AdminMasterPage : System.Web.UI.MasterPage
{
protectedvoid Page_Load(object sender, EventArgs e)
{
try
{
string id= Session["adminname"].ToString();
}
catch (Exception)
{
Server.Transfer("~/login.aspx");
}
}
protectedvoid LinkButton1_Click(object sender, EventArgs e)
{
Session.Abandon();
Response.Redirect("~/login.aspx");
}
}
Passportfee.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
publicpartialclassAdmin_PassportFee : System.Web.UI.Page
{
data code = newdata();
protectedvoid Page_Load(object sender, EventArgs e)
{
}
protectedvoid btnsubmit_Click(object sender, EventArgs e)
{
code.cmdObj(code.conObj(ConnectionStr.Connectionstr()),"update
passportfee set fees='"+txtamount.Text+"' where
aplicantage='"+ddlage.SelectedItem.Text+"' and
noofbooklet='"+ddlbookpage.SelectedItem.Text+"' and
RequiredSchema='"+ddlschema.SelectedItem.Text+"'");
}
}
Requestdetails.aspx.cs
using System;
using System.Collections;
92
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Text;
publicpartialclassAdmin_requestdetails : System.Web.UI.Page
{
data code = newdata();
protectedvoid Page_Load(object sender, EventArgs e)
{
try
{
string id=Request.QueryString["id"].ToString();
datalistbind();
}
catch (Exception)
{
Server.Transfer("UserRequest.aspx");
}
}
privatevoid datalistbind()
{
string id=Request.QueryString["id"].ToString();
DetailsView1.DataSource =
disconnectedCode.datasetObject(code.adpObj(code.conObj(ConnectionStr.Con
nectionstr()), "select typeofapplication as 'APPLICATION
TYPE',typeofpassbooklet as 'BOOKLET SIZE',applicantname as 'APPLICANT
NAME',applicantsurname as 'SURE NAME',anothrname as 'ANOTHER
NAME',changename as 'EVER CHANGE NAME',applicantdob as 'DATE OF
BIRTH',vilagetowncity as 'CITY',country as 'COUNTRY',state as
'STATE',gender as 'GENDER',maritalstatus as 'MARITAL STATUS',pan as
'PAN',voterid as 'VOTER ID',employementtype as 'EMPLOYEMENT
TYPE',gvservent as 'PARENTS GOVERMENT SERVENT',eduqualification as
'QUALIFICATION',ecrcatlog as 'NON-ECR CATEGORY',fathername as 'FATHER
NAME',fathersurename as 'FATHER SURE NAME',legalgardianname as 'LEGAL
GUARDIANS',legalgardiansurname as 'LEGAL GUARDIANS SURE NAME',mothername
as 'MOTHER NAME',mothersurename as 'MOTHER SURE NAME',presentaddoutind
as 'PRESENT ADDRESS OUT OF INDIA',permanentaddaspresentadd as 'PERMANENT
ADDRESS SAME AS PRESENT ADDRESS',emrgamandadd as 'EMERGENCY NAME AND
ADDRESS',emrgmob as 'EMERGENCY MOBILE NO',emrgtelphone as 'EMERGENCY
TELEPHONE NO',emrgemailadd as 'EMERGENCY MAIL ADDRESS',rifffirstnameadd
as 'REFERENCE NAME AND ADDRESS',rifffirstmob as 'REFERENCE
MOBILE',rifffirsttelphone as 'REFERENCE TELEPHONE NO',prvpassno as
'PREVIOUS PASSPORT NO',privissuedate as 'PREVIOUS ISSUE
DATE',privdateexp as 'PREVIOUS EXPIRY DATE',evrapplynotissued as
'APPLIED PASSPORT BUT NOT ISSUED?',arrstvarentpending as 'EVER CHARGED
WITH CRIMINAL PROCEEDING',arrstcriminalofften as '5 YEARS IMMEDIATELY
PRECEDING THE DATE',reessueddeniedpassport as 'EVER BEEN REFUSED OR
DENIED PASSPORT?',impoundedrevoke as 'PASSPORT EVER BEEN IMPOUNDED OR
93
REVOKED',politicleassylum as 'EVER APPLIED FOR/BEEN GRANTED POLITICAL
ASYLUM FORIGEN COUNTRY?',emergencycertificate as 'EVER RETURNED TO INDIA
ON EMERGENCY CERTIFICATE ?',place as 'PLACE',dateofsubmitform as 'DATE
OF SUBMITT FORM',Regid as 'APPLICANT REGISTERATION ID',status as
'STATUS' from passportform where id='" + id + "'"));
DetailsView1.DataBind();
}
protectedvoid DetailsView1_ItemDeleting(object sender,
DetailsViewDeleteEventArgs e)
{
}
protectedvoid Button1_Click(object sender, EventArgs e)
{
if (DropDownList1.Text!="SELECT STATUS")
{
code.cmdObj(code.conObj(ConnectionStr.Connectionstr()), "update
passportform set status='" + DropDownList1.SelectedItem.Text + "'");
datalistbind();
}
}
protectedvoid Button2_Click(object sender, EventArgs e)
{
string id=Request.QueryString["id"].ToString();
code.cmdObj(code.conObj(ConnectionStr.Connectionstr()), "delete
from passportform where id='" + id + "'");
Response.Redirect("UserRequest.aspx");
}
}
UserRegisteration.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
publicpartialclassAdmin_UserRegisteration : System.Web.UI.Page
{
data code = newdata();
protectedvoid Page_Load(object sender, EventArgs e)
{
gridbind();
}
void gridbind()
{
94
SqlDataAdapter
adp=code.adpObj(code.conObj(ConnectionStr.Connectionstr()),"Select *
from userregisteration");
GridView1.DataSource=disconnectedCode.datasetObject(adp);
GridView1.DataBind();
}
protectedvoid GridView1_PageIndexChanging(object sender,
GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
gridbind();
}
protectedvoid GridView1_RowDeleting(object sender,
GridViewDeleteEventArgs e)
{
string id = GridView1.DataKeys[e.RowIndex].Value.ToString();
code.cmdObj(code.conObj(ConnectionStr.Connectionstr()),"delete
from userregisteration where id='"+id+"'");
gridbind();
}
}
UserRequest.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
publicpartialclassAdmin_UserRequest : System.Web.UI.Page
{
data code = newdata();
protectedvoid Page_Load(object sender, EventArgs e)
{
bind();
}
void bind()
{
string sqlstatement = string.Empty;
sqlstatement = "select * from passportform order by id DESC";
SqlDataAdapter adp =
code.adpObj(code.conObj(ConnectionStr.Connectionstr()), sqlstatement);
95
DataTable dt = newDataTable();
adp.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
}
}
AppCode
ConnectionString.cs
using System.Data.SqlClient;
///<summary>
/// Summary description for ConnectionString
///</summary>
publicclassConnectionStr
{
public ConnectionStr()
{
//
// TODO: Add constructor logic here
//
}
publicstaticstring Connectionstr()
{
SqlConnectionStringBuilder sb = newSqlConnectionStringBuilder();
sb.DataSource = ".";
sb.InitialCatalog = "PassportManagementSystem";
sb.IntegratedSecurity = true;
return sb.ConnectionString;
}
data.cs
using System;
using System.Data;
using System.Data.SqlClient;
///<summary>
/// Summary description for data
///</summary>
publicclassdata:datacodeinterface
{
public data()
{
96
//
// TODO: Add constructor logic here
//
}
throw;
}
finally
{
97
if ( con.State != ConnectionState.Closed || con == null )
{
con.Close();
}
}
}
#endregion
}
}
disconnectedCode.cs
using System.Data;
using System.Data.SqlClient;
///<summary>
/// Summary description for disconnectedCode
///</summary>
publicclassdisconnectedCode
{
public disconnectedCode()
{
//
// TODO: Add constructor logic here
//
}
publicstaticDataTable datatableObject( SqlDataAdapter adp )
{
DataTable dt = newDataTable();
adp.Fill(dt);
return dt;
98
{
DataSet ds = newDataSet();
adp.Fill(ds);
return ds;
}
}
datacodeinterface.cs
using System.Data.SqlClient;
///<summary>
/// Summary description for datacodeinterface
///</summary>
publicinterfacedatacodeinterface
{
99
Html Code(html)
Aboutus.aspx
<%@PageTitle="About-Us"Language="C#"MasterPageFile="~/
MasterPage.master"AutoEventWireup="true"CodeFile="aboutus.aspx.cs"Inheri
ts="aboutus"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat
="Server">
<tablewidth="700px">
<tr>
<tdalign="center">
<strong>Passport Seva</strong>
</td>
</tr>
<tr>
<td>
<strong>
<p>
This is a public website for appling for Passport online. All the
registered users of Passport site have there own personal home page. The
Passport site include a Search button for finding Quick Passport, it has
four option that is
*Search by location
* Search by Date
* Search by Qualification.
* Search by Passport Title.
This Passport site uses forms authentication to authenticate users. When
new users register the forms, authentication module automatically give a
authentication ticket to the user’s browser to identify the user.</p>
100
antecedents and with India Post for delivery of passports. Key aspects
of the service transformation achieved by PSP are as
follows</p></strong>
</td></tr></table>
</asp:Content>
fees.aspx
<%@PageTitle="Fee
Details"Language="C#"MasterPageFile="~/MasterPage.master"AutoEventWireup
="true"CodeFile="fees.aspx.cs"Inherits="fees"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat
="Server">
<tablewidth="600px">
<tr>
<tdstyle="text-align: center"colspan="2">
<h2>FEE DETAILS</h2>
</td>
</tr>
<tr>
<tdstyle="width: 339px; text-align: center; font-weight: 700;">
Type of Service *</td>
<td>
<asp:LabelID="lblfresh"runat="server"style="font-weight:
700"Text="Fresh"></asp:Label>
</td>
</tr>
<tr>
<tdstyle="text-align: center; font-weight: 700">
Applicant's Age *</td>
<td>
<asp:DropDownListID="ddlage"runat="server"
onselectedindexchanged="ddlage_SelectedIndexChanged">
<asp:ListItem>Select Age</asp:ListItem>
<asp:ListItem>10 Year</asp:ListItem>
<asp:ListItem>18 Year And Above</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
101
<tdclass="style2"style="height: 26px; text-align: center; font-weight:
700;">
No of pages in Booklet *</td>
<tdstyle="height: 26px">
<asp:DropDownListID="ddlbookpage"runat="server"AutoPostBack="True"
onselectedindexchanged="ddlbookpage_SelectedIndexChanged">
<asp:ListItem>Select Booklet</asp:ListItem>
<asp:ListItem>36 Pages</asp:ListItem>
<asp:ListItem>60 Pages</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<tdclass="style2"style="text-align: center; font-weight: 700">
Required Scheme *</td>
<td>
<asp:DropDownListID="ddlschema"runat="server"
onselectedindexchanged="ddlschema_SelectedIndexChanged"
AutoPostBack="True">
<asp:ListItem>Select Schema</asp:ListItem>
<asp:ListItem>Normal</asp:ListItem>
<asp:ListItem>Tatkal</asp:ListItem>
</asp:DropDownList>
</td>
<tr>
<tdstyle="width: 339px; text-align: center; font-weight: 700;">
Fee Amount (in Rs.)</td>
<tdstyle="font-weight: 700">
<asp:LabelID="lblamount"runat="server"></asp:Label>
</td>
</tr>
<tr>
<tdstyle="width: 339px; text-align: center">
</td>
<td>
</td>
</tr>
</table>
</asp:Content>
Home.aspx
<
%@PageLanguage="C#"AutoEventWireup="true"CodeFile="Home.aspx.cs"Inherits
="Home"%>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<headid="Head1"runat="server">
<title>Home Page</title>
</head>
<bodyleftmargin="0"topmargin="0"style="color: rgb(0, 0, 128);
background-color: rgb(204, 204, 153);">
102
<formid="form1"runat="server">
<div>
<br/>
<divid="header"align="center">
<imgsrc="img/cpvdc.jpg"width="577"height="99"/><br/>
<imgsrc="img/cpvda.jpg"width="438"height="18"/>
<br/>
</div>
<tablealign="center">
<tr>
<tdalign="center"style="width: 0px;"bgcolor="#808000"
height="18">
<pstyle="word-spacing: 1px; margin-top: 1px; margin-bottom: 1px; width:
796px;"><font
color="#ffffff"face="Arial, Helvetica, sans-serif"size="3"><b>W E L C O
M E
T O C P V D I V I S I O N</b></font></p></td>
</tr>
<tr>
<tdalign="center">
<table>
<tr><td></td><tdalign="right"style="font-weight: 700">Welcome
<asp:LabelID="Label1"runat="server"></asp:Label> !
<asp:LinkButtonID="LinkButton1"runat="server"onclick="LinkButton1_Click1
">LOGOUT</asp:LinkButton>
</td></tr>
<tr><tdwidth="120px">
<tableclass="style1">
<tr>
<td>
<asp:ImageButtonID="ImageButton5"runat="server"Height="33px"
ImageUrl="~/my pms btn/forms.png"PostBackUrl="~/passportform.aspx"
Width="121px"/>
</td>
</tr>
<tr>
<td>
<asp:ImageButtonID="ImageButton7"runat="server"Height="33px"
ImageUrl="~/my pms btn/statusinquery.png"PostBackUrl="~/status.aspx"
Width="121px"/>
</td>
</tr>
</table>
103
Official/Diplomatic Passports and visa note***</a></b></font></p>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Index.aspx
<%@PageTitle="Home
Page"Language="C#"MasterPageFile="~/MasterPage.master"AutoEventWireup="t
rue"CodeFile="index.aspx.cs"Inherits="index"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat
="Server">
<imgsrc="index.png"/>
</asp:Content>
Introduction.aspx
<%@PageTitle="Instruction"Language="C#"MasterPageFile="~/
MasterPage.master"AutoEventWireup="true"CodeFile="introduction.aspx.cs"I
nherits="introduction"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat
="Server">
<div>
<table>
<tr>
<td>
<imgsrc="instruction.png"/></td>
</tr>
</table>
</div>
</asp:Content>
Login.aspx
<%@PageTitle="Login
Page"Language="C#"MasterPageFile="~/MasterPage.master"AutoEventWireup="t
rue"CodeFile="login.aspx.cs"Inherits="login"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat
="Server">
<tablewidth="700px"align="center"><tr><td>
<tablewidth="300px"
style="border-color: #333333"border="3px"align="center">
<tr>
<tdalign="right">
REGISTER ID</td>
<td>
104
<asp:TextBoxID="txtuid"runat="server"Height="22px"Width="139px"></
asp:TextBox>
</td>
</tr>
<tr>
<tdalign="right">
USER NAME</td>
<td>
<asp:TextBoxID="txtuname"runat="server"Height="22px"Width="139px"></
asp:TextBox>
</td>
</tr>
<tr>
<tdalign="right">
PASSWORD</td>
<td>
<asp:TextBoxID="txtpass"runat="server"Height="23px"Width="139px"
TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:ButtonID="btnlogin"runat="server"Text="Login"
onclick="btnlogin_Click"/>
</td>
</tr>
</table>
</td></tr></table>
</asp:Content>
Masterpage.master
<
%@MasterLanguage="C#"AutoEventWireup="true"CodeFile="MasterPage.master.c
s"Inherits="MasterPage"%>
<%@Registersrc="menubar.ascx"tagname="menubar"tagprefix="uc1"%>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<headid="Head1"runat="server">
<title>Untitled Page</title>
<styletype="text/css">
.style1
{
width: 10px;
}
</style>
<linkhref="css/StyleSheet.css"rel="stylesheet"type="text/css"/>
</head>
<bodyleftmargin="0"topmargin="0"style="color: rgb(0, 0, 128);
background-color: rgb(204, 204, 153);">
<formid="form1"runat="server">
<div>
<br/>
105
<divid="header"align="center">
<imgsrc="img/cpvdc.jpg"width="577"height="99"/><br/>
<imgsrc="img/cpvda.jpg"width="438"height="18"/>
<br/>
</div>
<tablealign="center">
<tr>
<tdalign="center"style="width: 0px;"bgcolor="#808000"
height="18">
<pstyle="word-spacing: 1px; margin-top: 1px; margin-bottom: 1px; width:
796px;"><font
color="#ffffff"face="Arial, Helvetica, sans-serif"size="3"><b>W E L C O
M E
T O C P V D I V I S I O N</b></font></p></td>
</tr>
<tr>
<td>
<table><tr><tdwidth="120px">
<uc1:menubarID="menubar3"runat="server"/>
</td><tdwidth="700px">
<asp:ContentPlaceHolderID="ContentPlaceHolder1"runat="server">
</asp:ContentPlaceHolder>
</td></tr></table>
</td>
</tr>
<tr>
<tdstyle="width: 0px;"align="center"bgcolor="#808000"
height="18">
<pstyle="word-spacing: 1px; margin-top: 1px; margin-bottom: 1px; width:
795px;"
align="left"><fontcolor="#ffffff"><b>***Instruction and Application form
For issue of
Official/Diplomatic Passports note***</b></font></p>
<tablealign="right"class="tblcsss"style="width: 408px">
<trwidth="300px"><td>Design & Develope by :- Mohd Hashir
Akhtar</td></tr></table>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Passportform.aspx
<
%@PageLanguage="C#"AutoEventWireup="true"CodeFile="passportform.aspx.cs"
Inherits="passportform"%>
106
<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0
Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<headrunat="server">
<title>Passport Form</title>
<linkhref="css/StyleSheet.css"rel="stylesheet"type="text/css"/>
<styletype="text/css">
.style1
{
width: 100%;
}
.style2
{
height: 25px;
}
</style>
<scriptlanguage="javascript"type="text/javascript">
// <!CDATA[
function Button2_onclick() {
window.print();
}
// ]]>
</script>
</head>
<body>
<formid="form1"runat="server">
<tableclass="style1">
<tr>
<td>
<asp:LinkButtonID="LinkButton1"runat="server"PostBackUrl="~/
Home.aspx">Back
To Previous Page</asp:LinkButton>
<br/>
<asp:ImageID="Image1"runat="server"ImageUrl="~/img/loin.png"Width="70px"
CssClass="img"Height="100px"/>
</td>
<td>
</td>
</tr>
<tr>
<tdcolspan="2"style="text-align: center">
<strong>PASSPORT APPLICATION FORM</strong><br/>
<strong>Government of India, Ministry of External
Affairs</strong><br/>
Please read the Passport Information Booklet carefully before
filling the form.
Furnishing of incorrect information/ suppression of
information would lead to
rejection of application and would attract penal
provisions as prescribed under
the Passports Act, 1967. Please produce your original
documents at the time of
107
submission of the form. All fields marked with (*) are
mandatory to fill.</td>
</tr>
<tr>
<tdbgcolor="Silver"colspan="2">
<strong>Service Required</strong></td>
</tr>
<tr>
<tdstyle="font-weight: 700"class="style2">
Type of Application * </td>
<tdclass="style2">
<asp:RadioButtonID="RadioButton1"runat="server"GroupName="1"Text="Normal
"/>
<asp:RadioButtonID="RadioButton2"runat="server"GroupName="1"
Text="Tatkaal"/>
</td>
</tr>
<tr>
<tdstyle="font-weight: 700">
Type of Passport Booklet * </td>
<td>
<asp:RadioButtonID="RadioButton3"runat="server"GroupName="2"
Text="36 Pages"/>
<asp:RadioButtonID="RadioButton4"runat="server"GroupName="2"
Text="60 Pages"/>
</td>
</tr>
<tr>
<tdstyle="font-weight: 700">
Validity Required (For minors between 15 and 18)</td>
<td>
<asp:RadioButtonID="RadioButton5"runat="server"GroupName="3"
Text="10 Years"/>
<asp:RadioButtonID="RadioButton6"runat="server"GroupName="3"
Text="Up to age 18"/>
</td>
</tr>
<tr>
<tdbgcolor="Silver"colspan="2">
<strong>Applicant Details</strong></td>
</tr>
<tr>
<tdcolspan="2">
<strong>Applicant's Given Name (Given Name means First Name followed
by middle
Name (if any)) *</strong></td>
</tr>
<tr>
<tdcolspan="2">
<asp:TextBoxID="TextBox1"runat="server"Width="600px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<strong>Surname</strong></td>
<td>
</td>
108
</tr>
<tr>
<tdcolspan="2">
<asp:TextBoxID="TextBox2"runat="server"Width="600px"></asp:TextBox>
</td>
</tr>
<tr>
<tdstyle="font-weight: 700">
Are you known by any other names(aliases)? *</td>
<td>
<asp:RadioButtonID="RadioButton8"runat="server"GroupName="4"Text="Yes"/>
<asp:RadioButtonID="RadioButton9"runat="server"GroupName="4"Text="No"/>
</td>
</tr>
<tr>
<tdstyle="font-weight: 700">
Have you ever changed your name ? *
</td>
<td>
<asp:RadioButtonID="RadioButton10"runat="server"GroupName="5"Text="Yes"/
>
<asp:RadioButtonID="RadioButton11"runat="server"GroupName="5"Text="No"/>
</td>
</tr>
<tr>
<tdstyle="font-weight: 700">
Date of Birth (DD/MM/YYYY) *</td>
<td>
<asp:TextBoxID="TextBox3"runat="server"Width="300px"></asp:TextBox>
</td>
</tr>
<tr>
<tdbgcolor="Silver"colspan="2">
<strong>Place Of Birth </strong>
</td>
</tr>
<tr>
<td>
Village or Town or City *</td>
<td>
<asp:TextBoxID="TextBox4"runat="server"Width="300px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Country (If abroad)*
</td>
<td>
<asp:DropDownListID="DropDownList1"runat="server"Width="300px">
<asp:ListItem>Select Country</asp:ListItem>
<asp:ListItem>India</asp:ListItem>
<asp:ListItem>Pakistan</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<tdcolspan="2">
109
<tableclass="style1">
<tr>
<td>
State (If in India)*
</td>
<td>
<asp:DropDownListID="DropDownList2"runat="server"Width="150px">
<asp:ListItem>Select State</asp:ListItem>
<asp:ListItem>Up</asp:ListItem>
<asp:ListItem>Mp</asp:ListItem>
<asp:ListItem>Lahore</asp:ListItem>
</asp:DropDownList>
</td>
<td>
District (If in India)*</td>
<td>
<asp:DropDownListID="DropDownList3"runat="server"Width="150px">
<asp:ListItem>Select City</asp:ListItem>
<asp:ListItem>Lucknow</asp:ListItem>
<asp:ListItem>Kanpur</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<tdcolspan="4">
If born before 15/08/1947 in a place now in
Pakistan or Bangladesh, select
"Undivided India".</td>
</tr>
<tr>
<td>
Gender *</td>
<td>
<asp:DropDownListID="DropDownList4"runat="server"Width="150px">
<asp:ListItem>Select</asp:ListItem>
<asp:ListItem>Male</asp:ListItem>
<asp:ListItem>Female</asp:ListItem>
</asp:DropDownList>
</td>
<td>
Marital Status *</td>
<td>
<asp:DropDownListID="DropDownList5"runat="server"Width="150px">
<asp:ListItem>Select</asp:ListItem>
<asp:ListItem>Single</asp:ListItem>
<asp:ListItem>Married</asp:ListItem>
<asp:ListItem>Divorced</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
PAN (If available)</td>
<td>
<asp:TextBoxID="TextBox5"runat="server"Width="300px"></asp:TextBox>
</td>
<td>
110
Voter ID (If available)</td>
<td>
<asp:TextBoxID="TextBox6"runat="server"Width="300px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Employment Type *
</td>
<tdcolspan="3">
<asp:DropDownListID="DropDownList11"runat="server"Width="400px">
<asp:ListItem>Select</asp:ListItem>
<asp:ListItem>Goverment</asp:ListItem>
<asp:ListItem>Homemaker</asp:ListItem>
<asp:ListItem>Not employed</asp:ListItem>
<asp:ListItem>Others</asp:ListItem>
<asp:ListItem>Owner</asp:ListItem>
<asp:ListItem>Private</asp:ListItem>
<asp:ListItem>Retiered Goverment Servant</asp:ListItem>
<asp:ListItem>Retired-Private Service</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<tdcolspan="3">
Is either of your parent (in case of minor)/
spouse, a government servant? *</td>
<td>
<asp:DropDownListID="DropDownList6"runat="server"Width="150px">
<asp:ListItem>Select</asp:ListItem>
<asp:ListItem>Yes</asp:ListItem>
<asp:ListItem>No</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
Educational Qualification *</td>
<td>
<asp:DropDownListID="DropDownList7"runat="server">
<asp:ListItem>Select</asp:ListItem>
<asp:ListItem>5th pass or less</asp:ListItem>
<asp:ListItem>Between 6th and 9th standard</asp:ListItem>
<asp:ListItem>10th pass and above</asp:ListItem>
<asp:ListItem>Gradute and above</asp:ListItem>
</asp:DropDownList>
</td>
<td>
Are you eligible for Non-ECR category?
*</td>
<td>
<asp:DropDownListID="DropDownList8"runat="server"Width="150px">
<asp:ListItem>Select</asp:ListItem>
<asp:ListItem>Yes</asp:ListItem>
<asp:ListItem>No</asp:ListItem>
</asp:DropDownList>
</td>
111
</tr>
<tr>
<tdbgcolor="Silver"colspan="4">
<strong>Family Details (You have to provide atleast one
Father/Mother/Legal
Guardian details.)</strong></td>
</tr>
<tr>
<tdcolspan="4">
Father's Given Name (Given Name means
First Name followed by Middle Name (If
any))</td>
</tr>
<tr>
<tdcolspan="4">
<asp:TextBoxID="TextBox9"runat="server"Width="600px"></asp:TextBox>
</td>
</tr>
<tr>
<tdcolspan="2">
<strong>Surname</strong></td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<tdcolspan="4">
<asp:TextBoxID="TextBox10"runat="server"Width="600px"></asp:TextBox>
</td>
</tr>
<tr>
<tdcolspan="4">
Legal Guardian's Given Name (if
applicable)</td>
</tr>
<tr>
<tdcolspan="4">
<asp:TextBoxID="TextBox11"runat="server"Width="600px"></asp:TextBox>
</td>
</tr>
<tr>
<tdcolspan="2">
<strong>Surname</strong></td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<tdcolspan="4">
<asp:TextBoxID="TextBox12"runat="server"Width="600px"></asp:TextBox>
</td>
</tr>
<tr>
<tdcolspan="4">
112
<strong>Mother's Given Name (Given Name means First Name followed by
Middle Name
(If any))</strong></td>
</tr>
<tr>
<tdcolspan="4">
<asp:TextBoxID="TextBox13"runat="server"Width="600px"></asp:TextBox>
</td>
</tr>
<tr>
<tdcolspan="2">
<strong>Surname</strong></td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<tdcolspan="4">
<asp:TextBoxID="TextBox14"runat="server"Width="600px"></asp:TextBox>
</td>
</tr>
<tr>
<tdbgcolor="Silver"colspan="4"style="font-weight: 700">
Present Residential Address details (where
applicant presently resides)</td>
</tr>
<tr>
<tdcolspan="2">
Is your present address out of India? *</td>
<tdcolspan="2">
<asp:RadioButtonID="RadioButton12"runat="server"GroupName="6"Text="Yes"/
>
<asp:RadioButtonID="RadioButton13"runat="server"GroupName="6"Text="No"/>
</td>
</tr>
<tr>
<tdcolspan="2">
Is permanent address same as present
address?</td>
<tdcolspan="2">
<asp:RadioButtonID="RadioButton14"runat="server"GroupName="7"Text="Yes"/
>
<asp:RadioButtonID="RadioButton15"runat="server"GroupName="7"Text="No"/>
</td>
</tr>
<tr>
<tdbgcolor="Silver"colspan="4">
<strong>Emergency Contact Details *</strong></td>
</tr>
<tr>
<tdcolspan="4">
<strong>Name and Address *</strong></td>
</tr>
<tr>
<tdcolspan="4">
<asp:TextBoxID="TextBox15"runat="server"Width="600px"></asp:TextBox>
113
</td>
</tr>
<tr>
<td>
Mobile Number</td>
<td>
<asp:TextBoxID="TextBox16"runat="server"Width="300px"></asp:TextBox>
</td>
<td>
Telephone Number</td>
<td>
<asp:TextBoxID="TextBox17"runat="server"Width="300px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
E-mail</td>
<tdcolspan="3">
<asp:TextBoxID="TextBox18"runat="server"Width="600px"></asp:TextBox>
</td>
</tr>
<tr>
<tdbgcolor="Silver"colspan="4">
<strong>References in your Village or Town or City</strong></td>
</tr>
<tr>
<tdcolspan="4">
<strong>First Reference Name and Address *</strong></td>
</tr>
<tr>
<tdcolspan="4">
<asp:TextBoxID="TextBox19"runat="server"Width="600px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Mobile Number</td>
<td>
<asp:TextBoxID="TextBox20"runat="server"Width="300px"></asp:TextBox>
</td>
<td>
Telephone Number</td>
<td>
<asp:TextBoxID="TextBox21"runat="server"Width="300px"></asp:TextBox>
</td>
</tr>
<tr>
<tdbgcolor="Silver"colspan="4">
<strong>Previous Passport/ Application Details</strong></td>
</tr>
<tr>
<tdcolspan="4">
<strong>Have you held/ hold any diplomatic/ official passport?
</strong></td>
</tr>
<tr>
<td>
114
Passport Number</td>
<td>
<asp:TextBoxID="TextBox22"runat="server"Width="300px"></asp:TextBox>
</td>
<td>
Date of Issue(DD/MM/YYYY)</td>
<td>
<asp:TextBoxID="TextBox23"runat="server"Width="300px"></asp:TextBox>
</td>
</tr>
<tr>
<tdcolspan="2">
Date of Expiry (DD/MM/YYYY)</td>
<tdcolspan="2">
<asp:TextBoxID="TextBox24"runat="server"Width="300px"></asp:TextBox>
</td>
</tr>
<tr>
<tdcolspan="2">
<strong>Have you ever applied for passport, but not issued?
*</strong></td>
<tdcolspan="2">
<asp:RadioButtonID="RadioButton16"runat="server"GroupName="8"Text="Yes"/
>
<asp:RadioButtonID="RadioButton17"runat="server"GroupName="8"Text="No"/>
</td>
</tr>
<tr>
<tdbgcolor="Silver"colspan="4"style="font-weight: 700">
Other Details</td>
</tr>
<tr>
<tdcolspan="3"style="font-weight: 700">
1) Have you ever been charged with criminal
proceedings or any arrest warrant/
summon pending before a court of India?
*</td>
<td>
<asp:RadioButtonID="RadioButton18"runat="server"GroupName="9"Text="Yes"/
>
<asp:RadioButtonID="RadioButton19"runat="server"GroupName="9"Text="No"/>
</td>
</tr>
<tr>
<tdcolspan="3"style="font-weight: 700">
2) Have you at any time during the period of
5 years immediately preceding the
date of this application been convicted by a
court in India for any criminal
offence and sentenced to imprisonment for
two years or more? *</td>
<td>
<asp:RadioButtonID="RadioButton20"runat="server"GroupName="10"Text="Yes"
/>
<asp:RadioButtonID="RadioButton21"runat="server"GroupName="10"Text="No"/
>
</td>
115
</tr>
<tr>
<tdcolspan="3">
<strong>3) Have you ever been refused or denied passport?
*</strong></td>
<td>
<asp:RadioButtonID="RadioButton22"runat="server"GroupName="11"Text="Yes"
/>
<asp:RadioButtonID="RadioButton23"runat="server"GroupName="11"Text="No"/
>
</td>
</tr>
<tr>
<tdcolspan="3"style="font-weight: 700">
4) Has your Passport ever been impounded or
Revoked? *</td>
<td>
<asp:RadioButtonID="RadioButton24"runat="server"GroupName="12"Text="Yes"
/>
<asp:RadioButtonID="RadioButton25"runat="server"GroupName="12"Text="No"/
>
</td>
</tr>
<tr>
<tdcolspan="3"style="font-weight: 700">
5) Have you ever applied for/ been granted
political asylum to/ by any foreign
country? *</td>
<td>
<asp:RadioButtonID="RadioButton26"runat="server"GroupName="13"Text="Yes"
/>
<asp:RadioButtonID="RadioButton27"runat="server"GroupName="13"Text="No"/
>
</td>
</tr>
<tr>
<tdcolspan="3"style="font-weight: 700">
6) Have you ever returned to India on
Emergency Certificate (EC) or were ever
deported or repatriated? *</td>
<td>
<asp:RadioButtonID="RadioButton28"runat="server"GroupName="14"Text="Yes"
/>
<asp:RadioButtonID="RadioButton29"runat="server"GroupName="14"Text="No"/
>
</td>
</tr>
<tr>
<tdcolspan="4"style="font-weight: 700">
Self Declaration I owe allegiance to the
sovereignty , unity & integrity of
India, and have not voluntarily acquired
citizenship or travel document of any
other country. I have not lost, surrendered
or been deprived of the the
citizenship of India and I affirm that the
information given by me in this form
116
and the enclosures is true and I solely
responsible for its accuracy, and I am
liable to be penalized or prosecuted if
found otherwise. I am aware that under
the Passport Act, 1967 it is a criminal
offence to furnish any false information
or to suppress any material information with
a view to obtaining passport or
travel document.</td>
</tr>
<tr>
<td>
<asp:CheckBoxID="CheckBox1"runat="server"Text="I Agree"/>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
Place *</td>
<td>
<asp:TextBoxID="TextBox26"runat="server"Width="300px"></asp:TextBox>
</td>
<td>
Date (DD/MM/YYYY) *</td>
<td>
<asp:TextBoxID="TextBox27"runat="server"Width="300px"></asp:TextBox>
</td>
</tr>
<tr>
<tdcolspan="2">
<asp:ButtonID="Button1"runat="server"Text="Validate & Save"
onclick="Button1_Click"style="font-weight: 700"/>
</td>
<td>
<inputid="Button2"type="button"value="Print"onclick="return
Button2_onclick()"/></td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
117
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
</table>
</form>
</body>
</html>
Status.aspx
<%@PageLanguage="C#"MasterPageFile="~/
User.master"AutoEventWireup="true"CodeFile="status.aspx.cs"Inherits="sta
tus"Title="Status Page"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat
="Server">
<tablewidth="700px"
style="border-color: #333333"border="3px"align="center">
<tr>
<tdalign="center"width="160px">
</td>
<tdwidth="300px"align="center">
</td>
118
</tr>
<tr>
<tdalign="center"width="160px">
STATUS</td>
<tdwidth="300px"align="center">
<asp:TextBoxID="TextBox1"runat="server"TextMode="MultiLine"></
asp:TextBox>
</td>
</tr>
<tr>
<tdalign="center"width="160px">
</td>
<tdwidth="300px"align="center">
</td>
</tr>
</table>
</asp:Content>
Statusdetails.aspx
<%@PageLanguage="C#"MasterPageFile="~/
MasterPage.master"AutoEventWireup="true"CodeFile="statusdetails.aspx.cs"
Inherits="statusdetails"Title="Status Inquery"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat
="Server">
<tablewidth="450px"
style="border-color: #333333"border="3px"align="center">
<tr>
<tdalign="center"width="160px"colspan="2"
style="width: 299px; font-weight: 700">
<h2>
STATUS INQUERY</h2>
</td>
</tr>
<tr>
<tdalign="center"width="160px">
NAME(without sure name)</td>
<tdwidth="139px"align="center">
<asp:TextBoxID="TextBox1"runat="server"TextMode="MultiLine"></
asp:TextBox>
</td>
</tr>
<tr>
<tdalign="center"width="160px">
CITY</td>
<tdwidth="139px"align="center">
<asp:TextBoxID="TextBox2"runat="server"TextMode="MultiLine"></
asp:TextBox>
</td>
</tr>
<tr>
<tdalign="center"width="160px">
</td>
119
<tdwidth="139px"align="center">
<asp:ButtonID="Button1"runat="server"onclick="Button1_Click"
Text="GET STATUS"/>
</td>
</tr>
<tr>
<tdalign="center"width="160px">
<asp:LabelID="Label2"runat="server"Text="STATUS"></asp:Label>
</td>
<tdwidth="139px"align="center">
<asp:LabelID="status"runat="server"></asp:Label>
</td>
</tr>
</table>
</asp:Content>
User.master
<
%@MasterLanguage="C#"AutoEventWireup="true"CodeFile="User.master.cs"Inhe
rits="User"%>
<%@Registersrc="usermenu.ascx"tagname="usermenu"tagprefix="uc1"%>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<headid="Head1"runat="server">
<title>Untitled Page</title>
</head>
<bodyleftmargin="0"topmargin="0"style="color: rgb(0, 0, 128);
background-color: rgb(204, 204, 153);">
<formid="form1"runat="server">
<div>
<br/>
<divid="header"align="center">
<imgsrc="img/cpvdc.jpg"width="577"height="99"/><br/>
<imgsrc="img/cpvda.jpg"width="438"height="18"/>
<br/>
</div>
<tablealign="center">
<tr>
<tdalign="center"style="width: 0px;"bgcolor="#808000"
height="18">
<pstyle="word-spacing: 1px; margin-top: 1px; margin-bottom: 1px; width:
796px;"><font
color="#ffffff"face="Arial, Helvetica, sans-serif"size="3"><b>W E L C O
M E
T O C P V D I V I S I O N</b></font></p></td>
</tr>
<tr>
<tdalign="center">
<table>
<tr><td></td><tdalign="right"style="font-weight: 700">Welcome
<asp:LabelID="Label1"runat="server"></asp:Label> !
<asp:LinkButtonID="LinkButton1"runat="server"onclick="LinkButton1_Click1
">LOGOUT</asp:LinkButton>
120
</td></tr>
<tr><tdwidth="120px">
<tableclass="style1">
<tr>
<td>
<asp:ImageButtonID="ImageButton5"runat="server"Height="33px"
ImageUrl="~/my pms btn/forms.png"PostBackUrl="~/passportform.aspx"
Width="121px"/>
</td>
</tr>
<tr>
<td>
<asp:ImageButtonID="ImageButton7"runat="server"Height="33px"
ImageUrl="~/my pms btn/statusinquery.png"PostBackUrl="~/status.aspx"
Width="121px"/>
</td>
</tr>
</table>
</
td><tdwidth="700px"><asp:ContentPlaceHolderID="ContentPlaceHolder1"runat
="server">
</asp:ContentPlaceHolder>
</td></tr>
</table>
</td>
<tr>
<tdstyle="width: 0px;"align="center"bgcolor="#808000"
height="18">
<pstyle="word-spacing: 1px; margin-top: 1px; margin-bottom: 1px; width:
795px;"
align="left"><fontcolor="#ffffff"><b><a
href="http://passport.gov.in/cpv/dpPandvisaform.pdf"
style="text-decoration: none;"> ***Instruction and Application form
For issue of
Official/Diplomatic Passports and visa note***</a></b></font></p>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
UserRegisteration.aspx
<%@PageLanguage="C#"MasterPageFile="~/
MasterPage.master"AutoEventWireup="true"CodeFile="UserRegisteration.aspx
.cs"Inherits="UserRegisteration"Title="Registeration Page"%>
<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat
="Server">
<tablewidth="470px"
style="border-color: #333333"border="3px"align="center">
121
<tr>
<tdalign="center"colspan="2">
<b>USER REGISTERATION FORM</b></td>
</tr>
<tr>
<tdalign="right"style="width: 154px">
<b>Name</b></td>
<td>
<asp:TextBoxID="txtname"runat="server"Width="200px"></asp:TextBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator1"runat="server"
ErrorMessage="*"ControlToValidate="txtname"></
asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<tdalign="right"style="width: 154px">
<b>Email</b></td>
<td>
<asp:TextBoxID="txtemail"runat="server"Width="200px"></asp:TextBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator2"runat="server"
ErrorMessage="*"ControlToValidate="txtemail"></
asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<tdalign="right"style="width: 154px">
<b>Password</b></td>
<td>
<asp:TextBoxID="txtpass"runat="server"Width="200px"TextMode="Password"><
/asp:TextBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator3"runat="server"
ControlToValidate="txtpass"ErrorMessage="*"></
asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<tdalign="right"style="width: 154px">
<b>Re-Password</b></td>
<td>
<asp:TextBoxID="TextBox6"runat="server"Width="200px"TextMode="Password">
</asp:TextBox>
<asp:CompareValidatorID="CompareValidator1"runat="server"
ErrorMessage="Not Match"ControlToCompare="txtpass"
ControlToValidate="TextBox6"></asp:CompareValidator>
</td>
</tr>
<tr>
<tdalign="right"style="width: 154px">
<b>Address</b></td>
<td>
<asp:TextBoxID="txtadd"runat="server"Width="200px"></asp:TextBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator4"runat="server"
ControlToValidate="txtadd"ErrorMessage="*"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<tdalign="right"style="width: 154px">
122
<b>Phone</b></td>
<td>
<asp:TextBoxID="txtphone"runat="server"Width="200px"></asp:TextBox>
<asp:RequiredFieldValidatorID="RequiredFieldValidator5"runat="server"
ControlToValidate="txtphone"ErrorMessage="*"></
asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<tdalign="right"style="width: 154px">
</td>
<td>
<asp:ButtonID="Button1"runat="server"onclick="Button1_Click"
Text="Register Now"/>
<asp:LabelID="Label2"runat="server"></asp:Label>
</td>
</tr>
<tr>
<tdalign="center"colspan="2">
<asp:LabelID="Label1"runat="server"Text="Registeration ID"></asp:Label>
<asp:LabelID="lblregid"runat="server"></asp:Label>
<br/>
<asp:HyperLinkID="HyperLink1"runat="server"NavigateUrl="~/login.aspx">Go
to
Login Page</asp:HyperLink>
</td>
</tr>
</table>
</asp:Content>
AdminHome.aspx
<%@PageLanguage="C#"MasterPageFile="~/Admin/
AdminMasterPage.master"AutoEventWireup="true"CodeFile="AdminHome.aspx.cs
"Inherits="Admin_AdminHome"Title="Untitled Page"%>
<asp:ContentID="Content1"ContentPlaceHolderID="head"Runat="Server">
</asp:Content>
<asp:ContentID="Content2"ContentPlaceHolderID="ContentPlaceHolder1"Runat
="Server">
<h1>This is Admin Home Page!</h1>
</asp:Content>
AdminMasterPage.master
123
<
%@MasterLanguage="C#"AutoEventWireup="true"CodeFile="AdminMasterPage.mas
ter.cs"Inherits="Admin_AdminMasterPage"%>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<headrunat="server">
<title>Untitled Page</title>
<linkhref="css/menu.css"rel="stylesheet"type="text/css"/>
<asp:ContentPlaceHolderid="head"runat="server">
</asp:ContentPlaceHolder>
<styletype="text/css">
.style1
{
font-size: 40pt;
font-weight: bold;
background-color:Gray;
height: 115px;
}
</style>
</head>
<body>
<formid="form1"runat="server">
<divalign="center"style="background-color:"Lime">
<tablewidth="900px">
<tr>
<tdclass="style1"style="background-color: #FFFF99">Welcome To Admin
Panel</td>
</tr>
<tr>
<tdalign="center">
<ul>
<ahref="AdminHome.aspx"><liclass="li"style="width:45px;">HOME</li></a>
<ahref="PassportFee.aspx"><liclass="li"style="width:155px;">PASSPORT
FEES</li></a>
<ahref="UserRequest.aspx"><liclass="li"style="width:160px;">PASSPORT
REQUEST</li></a>
<ahref="UserRegisteration.aspx"><liclass="li"style="width:180px;">USER
REGISTERATION</li></a>
<asp:LinkButtonID="LinkButton1"runat="server"onclick="LinkButton1_Click"
>LOGOUT
?</asp:LinkButton>
</ul>
</td>
</tr>
<tr>
<tdalign="center">
<asp:ContentPlaceHolderID="ContentPlaceHolder1"runat="server">
</asp:ContentPlaceHolder>
</td>
124
</tr>
<tr>
<tdstyle="background-color: #333333">
<br/>
<br/>
<br/>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Passportfees.aspx
<%@PageLanguage="C#"MasterPageFile="~/Admin/
AdminMasterPage.master"AutoEventWireup="true"CodeFile="PassportFee.aspx.
cs"Inherits="Admin_PassportFee"Title="Untitled Page"%>
<asp:ContentID="Content1"ContentPlaceHolderID="head"Runat="Server">
</asp:Content>
<asp:ContentID="Content2"ContentPlaceHolderID="ContentPlaceHolder1"Runat
="Server">
<tablealign="center">
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<tdstyle="font-weight: 700">
Applicant's Age *</td>
<td>
<asp:DropDownListID="ddlage"runat="server">
<asp:ListItem>Select Age</asp:ListItem>
<asp:ListItem>10 Year</asp:ListItem>
<asp:ListItem>18 Year And Above</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<tdstyle="font-weight: 700">
No of pages in Booklet *</td>
<td>
<asp:DropDownListID="ddlbookpage"runat="server">
<asp:ListItem>Select Booklet</asp:ListItem>
<asp:ListItem>36 Pages</asp:ListItem>
<asp:ListItem>60 Pages</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
125
<tr>
<tdstyle="font-weight: 700">
Required Scheme *</td>
<td>
<asp:DropDownListID="ddlschema"runat="server">
<asp:ListItem>Select Schema</asp:ListItem>
<asp:ListItem>Normal</asp:ListItem>
<asp:ListItem>Tatkal</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<tdstyle="font-weight: 700">
Fee Amount (in Rs.)</td>
<td>
<asp:TextBoxID="txtamount"runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:ButtonID="btnsubmit"runat="server"onclick="btnsubmit_Click"
style="font-weight: 700"Text="Submit"/>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
</table>
</asp:Content>
RequestDetails.aspx
<%@PageLanguage="C#"MasterPageFile="~/Admin/
AdminMasterPage.master"AutoEventWireup="true"CodeFile="requestdetails.as
px.cs"Inherits="Admin_requestdetails"Title="Untitled Page"%>
<asp:ContentID="Content1"ContentPlaceHolderID="head"Runat="Server">
<styletype="text/css">
.style2
{
width: 100%;
}
.style3
{
height: 23px;
126
}
</style>
</asp:Content>
<asp:ContentID="Content2"ContentPlaceHolderID="ContentPlaceHolder1"Runat
="Server">
<tableclass="style2">
<tr>
<tdclass="style3">
</td>
<tdclass="style3">
</td>
</tr>
<tr>
<tdalign="center"colspan="2">
<asp:DetailsViewID="DetailsView1"runat="server"BackColor="White"BorderCo
lor="#CCCCCC"
BorderStyle="None"BorderWidth="1px"CellPadding="3"CssClass="detailcontro
l"
Height="50px"Width="500px"onitemdeleting="DetailsView1_ItemDeleting">
<FooterStyleBackColor="White"ForeColor="#000066"/>
<RowStyleForeColor="#000066"/>
<PagerStyleBackColor="White"ForeColor="#000066"HorizontalAlign="Left"/>
<HeaderStyleBackColor="#006699"Font-Bold="True"ForeColor="White"/>
<EditRowStyleBackColor="#669999"Font-Bold="True"ForeColor="White"/>
</asp:DetailsView>
</td>
</tr>
<tr>
<tdwidth="330"align="right">
Delete This Record</td>
<td>
<asp:ButtonID="Button2"runat="server"onclick="Button2_Click"Text="Delete
"/>
</td>
</tr>
<tr>
<tdwidth="300"align="right">
Update Status</td>
<td>
<asp:DropDownListID="DropDownList1"runat="server"Width="200px">
<asp:ListItem>SELECT STATUS</asp:ListItem>
<asp:ListItem>Patch</asp:ListItem>
<asp:ListItem>Dispatch</asp:ListItem>
</asp:DropDownList>
<asp:ButtonID="Button1"runat="server"onclick="Button1_Click"
Text="UPDATE"/>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
</table>
</asp:Content>
127
UserRegisteration.aspx
<%@PageLanguage="C#"MasterPageFile="~/Admin/
AdminMasterPage.master"AutoEventWireup="true"CodeFile="UserRegisteration
.aspx.cs"Inherits="Admin_UserRegisteration"Title="Untitled Page"%>
<asp:ContentID="Content1"ContentPlaceHolderID="head"Runat="Server">
<styletype="text/css">
.style2
{
width: 100%;
}
</style>
</asp:Content>
<asp:ContentID="Content2"ContentPlaceHolderID="ContentPlaceHolder1"Runat
="Server">
<tableclass="style2">
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<tdcolspan="2"align="center">
<asp:GridViewID="GridView1"runat="server"CellPadding="4"ForeColor="#3333
33"
GridLines="None"AllowPaging="True"AutoGenerateDeleteButton="True"
onpageindexchanging="GridView1_PageIndexChanging"
onrowdeleting="GridView1_RowDeleting"DataKeyNames="id">
<RowStyleBackColor="#F7F6F3"ForeColor="#333333"/>
<FooterStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>
<PagerStyleBackColor="#284775"ForeColor="White"HorizontalAlign="Center"/
>
<SelectedRowStyleBackColor="#E2DED6"Font-
Bold="True"ForeColor="#333333"/>
<HeaderStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>
<EditRowStyleBackColor="#999999"/>
<AlternatingRowStyleBackColor="White"ForeColor="#284775"/>
</asp:GridView>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
</table>
</asp:Content>
UserRequest.aspx
<%@PageLanguage="C#"MasterPageFile="~/Admin/
AdminMasterPage.master"AutoEventWireup="true"CodeFile="UserRequest.aspx.
cs"Inherits="Admin_UserRequest"Title="Untitled Page"%>
128
<asp:ContentID="Content1"ContentPlaceHolderID="head"Runat="Server">
<styletype="text/css">
.style2
{
color: #00CC00;
font-family: Calibri;
font-size: x-large;
text-transform: uppercase;
text-decoration: underline;
text-align: center;
border-left-color: #A0A0A0;
border-right-color: #C0C0C0;
border-top-color: #A0A0A0;
border-bottom-color: #C0C0C0;
}
</style>
<linkhref="css/menu.css"rel="stylesheet"type="text/css"/>
</asp:Content>
<asp:ContentID="Content2"ContentPlaceHolderID="ContentPlaceHolder1"Runat
="Server">
<tableborder="1px">
<tr>
<tdwidth="80px">Submission Date</td>
<tdwidth="50px">Application Type</td>
<tdwidth="120px">Booklet Type</td>
<tdwidth="80px">Applicant Name</td>
<tdwidth="70px">Applicant Surname</td>
<tdwidth="110px">Date of Birth</td>
<tdwidth="90px">Town</td>
<tdwidth="80px">State</td>
<tdwidth="80px">Country</td>
<tdwidth="120px">All Details</td>
</tr></table>
<table>
<tr>
<td>
<asp:GridViewID="GridView1"runat="server"AutoGenerateColumns="False"
BorderWidth="0px"CssClass="gridcountrol">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table>
<tr>
<tdwidth="100px"><asp:LabelID="Label1"runat="server"Text='<
%#Eval("dateofsubmitform") %>'></asp:Label></td>
<tdwidth="150px"><asp:LabelID="Label2"runat="server"Text='<
%#Eval("typeofapplication") %>'></asp:Label></td>
<tdwidth="150px"><asp:LabelID="Label3"runat="server"Text='<
%#Eval("typeofpassbooklet") %>'></asp:Label></td>
<tdwidth="150px"><asp:LabelID="Label4"runat="server"Text='<
%#Eval("applicantname") %>'></asp:Label></td>
<tdwidth="150px"><asp:LabelID="Label5"runat="server"Text='<
%#Eval("applicantsurname") %>'></asp:Label></td>
<tdwidth="150px"><asp:LabelID="Label6"runat="server"Text='<
%#Eval("applicantdob") %>'></asp:Label></td>
129
<tdwidth="150px"><asp:LabelID="Label7"runat="server"Text='<
%#Eval("vilagetowncity") %>'></asp:Label></td>
<tdwidth="150px"><asp:LabelID="Label8"runat="server"Text='<
%#Eval("state") %>'></asp:Label></td>
<tdwidth="150px"><asp:LabelID="Label9"runat="server"Text='<
%#Eval("country") %>'></asp:Label></td>
<tdwidth="150px"><ahref='requestdetails.aspx?id=<%#Eval("id") %>'>Show
All Details</a></td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
</asp:Content>
Menu bar.ascx
<
%@ControlLanguage="C#"AutoEventWireup="true"CodeFile="menubar.ascx.cs"Inherits="me
nubar"%>
<styletype="text/css">
.style1
{
width: 100px;
}
</style>
<tableclass="style1">
<tr>
<td>
<asp:ImageButtonID="ImageButton5"runat="server"Width="121px"Height="33px"
ImageUrl="~/my pmsbtn/home.png"PostBackUrl="~/index.aspx"
CausesValidation="False"/>
</td>
</tr>
<tr>
<td>
<asp:ImageButtonID="ImageButton1"runat="server"Width="121px"Height="33px"
ImageUrl="~/my pmsbtn/aboutus.png"PostBackUrl="~/aboutus.aspx"
style="margin-right: 0px"CausesValidation="False"/>
</td>
</tr>
<tr>
<td>
<asp:ImageButtonID="ImageButton4"runat="server"Width="121px"Height="33px"
ImageUrl="~/my pmsbtn/fees.png"PostBackUrl="~/fees.aspx"
CausesValidation="False"/>
</td>
</tr>
130
<tr>
<td>
<asp:ImageButtonID="ImageButton6"runat="server"Width="121px"Height="33px"
ImageUrl="~/my pmsbtn/introduction.png"PostBackUrl="~/introduction.aspx"
CausesValidation="False"/>
</td>
</tr>
<tr>
<td>
<asp:ImageButtonID="ImageButton7"runat="server"Width="121px"Height="33px"
ImageUrl="~/my pmsbtn/log (1).png"PostBackUrl="~/login.aspx"
CausesValidation="False"/>
</td>
</tr>
<tr>
<td>
<asp:ImageButtonID="ImageButton2"runat="server"Width="121px"Height="33px"
ImageUrl="~/my pmsbtn/reg.png"PostBackUrl="~/UserRegisteration.aspx"
CausesValidation="False"/>
</td>
</tr>
<tr>
<td>
<asp:ImageButtonID="ImageButton3"runat="server"Width="121px"Height="33px"
ImageUrl="~/my pmsbtn/statusinquery.png"
PostBackUrl="~/statusdetails.aspx"CausesValidation="False"/>
</td>
</tr>
</table>
131
7.2 Code Efficiency
Ithas been recognized that good coding style can overcome many of the
deficiencies of a primitive programming language, while poor styles can defeat the intent
of an excellent language. The goal of a good coding style is to provide easily understood,
straight–forward and elegant code. The guidelines for coding include:
Use of a few standard control constants.
Use of unconditional branching (go to) in a disciplined manner.
Introduction of user-defined data types to model entities in the problem domain.
Hiding of data structures behind access functions.
Providing standard documentation prologues for each subprogram and
compilation unit.
Use of indentation, parenthesis, and blank spaces, blank lines, borders and
comments to enhance readability.
7.3Optimisation of Code
132
7.4 Validation Checks
133
8.0Testing
Guarantee that all independent paths within a module have been exercised at
least once.
Exercise all logical decisions on their true and false sides Executes all loops
at their boundaries and within their operational bounds.
Execute all loops at their boundaries and within their operational bounds.
Exercise internal data structures to ensure their validity.
134
Black Box Testing:-
Black–box testing focuses on the functional requirements of the
software i.e. it enables the software engineer to derive sets of input conditions
that will fully exercise all functional requirements for a program. It is also
called behavioral testing. Black–box testing attempts to find errors in the
following categories: -
Alpha and Beta testing are also used to uncover errors that only the end-user seems
able to find.
The customer conducts the Alpha test at the developer’s site. The software
is used in a natural setting with the developer “looking over the shoulder” of the
user and recording errors and usage problem. Alpha test are conducted in
controlled environment.
b). Beta Testing
135
In this work, we will perform incremental testing in which components and
subsystem of the system are tested separately before integrating them to form, the
system from system testing. This type of testing will provide quality.
System testing
Validation testing
Integration testing
Unit testing
Code
Design
Requirements
Unit testing
Integration testing
Validation testing
137
Next step is the validation testing where requirements established as
part of software requirements analysis are validated against the software that
has been constructed. At the culmination of integration testing, software is
completely assembled as a package, interfacing errors has been uncovered and
corrected, and a final series of software tests i.e. validation testing begins.
Validation succeeds when software functions in a manner that can be
reasonably expected by the customer.
System testing
Finally, we arrive at system testing where the software and other system
elements are tested as a whole. System testing verifies that all elements mesh
properly and that overall system function / performance is achieved. Ultimately
software is incorporated with other system elements and a series of system
integration and validation tests are conducted. Recovery testing, stress testing,
security testing, performance testing are some system tests which are
performed during system testing.
138
9.0 SYSTEM SECURITY MEASURES
Security in database involves both policies and mechanisms to protect the data and ensure
that it is not accessed, altered or deleted without proper authorization. Integrity implies
that any properly authorized access, alternation or deletion of the data in the database
does not change the validity of the data. The economic or strategic reasons for protecting
data from unauthorized access, corruption or destruction, there is a privacy dimension for
data security or integrity. Privacy is the ethical and legal rights that individual have with
regard to control over the dissemination and use of their personal information.
Data has to be protected in the database. There is a similar need for protection in a
non database environment. The operating system must ensure that files belonging to the
database are not used directly without proper authorization.
Authentication
The simplest and most common authentication scheme used is a password to
authenticate the user. The user enters the user name or number and then authenticates
her /him by the password. A number of methods can be used in the authentication: by
something known only by the user, by something that only the user possesses, or by some
physical/physiological characteristics of the user.
139
10.0 IMPLEMENTATION AND MAINTENACE
INTRODUCTION: -
MAINTENANCE
140
Configuration management is concerned with tracking and controlling of the
work product that constitute a software product
Configuration management tools include
Configuration management data bases
Version control libraries
141
o Design Activities Design is concerned with developing the functional
components, conceptual data structures and interconnection in a software system.
The most important activity for enhancing maintainability during the design.
Automated tools to support software maintenance include technical support tools
and managerial support tools. Tolls to support the technical aspects of software
maintenance span the spectrum from analysis and design tolls to implementation to
debugging and testing tools. Automated tolls include text editors debugging aids, cross-
reference generators, linkage editors, comparators, complexity metric calculators, and
version control system and configuration management databases.
Text editor permits rapid, efficient modification of source programs, test data and
supporting documents. Text editors can be used to insert and replace segments of source
code, internal comments, test data and supporting documents; to systematically change
all occurrences of an identifier or other textual strings to locate all references to a given
identifier or other string of text; and to save both old and new versions of a routine, test
file or document. A syntax-directed text editor can ensure that all cross-references in text
editor can ensure that all cross-references in the supporting documents are correctly
updated.
Debugging aids provide traps, dumps, and traces assertion checking and history
file aid in locating the causes of known errors. System-level-cross-reference generators
provide cross-reference listings for procedure calls, statements usage and data references.
Cross-references directories provide the calling structures of who calls whom and from
where, and procedures names and statement numbers where formal parameters local
variables and global variables are defined, set and used.
142
11.0 COST ESTIMATION OF PROJECT
It includes the overall estimation of cost of the proposed software on the basis of money,
effort, resources and time to build the software. Estimation begins with the description of
the scope of the project. The problem is then decomposed into a set of smaller problems
and each of these is estimated using historical data and experience as guides. Estimation
carries inherent risk and this risk leads to uncertainty.
There are three factors, which affect the uncertainty inherent in
planning factors. These are: -
Project complexity
Project size
I have done the estimation of the proposed software on the basis of object points weights
on the object are given by “Boehm” which are constant. Taking these constants we can
easily estimate the cost of proposed project.
Complexity weight
Screen 1 2 3
Reports 2 5 8
3GL/4GL 10
component
143
Table for Productivity rates for object points : -
PROD
4 7 13 25 50
Screen 18 4 2
Reports 10 2 0
3GL/4GL component 1
18* 1 + 4* 2 + 2 * 3
=18 + 8+ 6 = 32
10*2+ 2*5 = 30
10 * 1 = 10
= 72
144
Estimated effort = NOP/PROD
= 72/13
~ 6 programmer months
= Rs.1, 26000
145
12.0 PERT AND GANT CHART
We estimated the number of weeks required for each of the seven tasks as follows:
1. Analysis 3 Weeks
2 .Design 4 Weeks
3. Coding 8 Weeks
4. Testing 4 Weeks
5. Write Manual 2 Weeks
6. Implementation 1 Week
7. Maintenance 2 Weeks
146
Gantt Chart
147
12.2 Pert Charts
A PERT (Program Evaluation and Review Technology) chart is a network of boxes (or
circles) and arrows. There are different variations of PERT Charts, some use the boxes to
represent the activities and some use arrows to do so. We will use the first approach here.
Each box thus represents an activity. The arrows are used to show the dependencies of
activities on one another. The activity at the head of an arrow can not start until activity at
the tail of the arrow is finished.
148
13.0 FUTURE SCOPE
Enhancement of our proposed system after successfully implementing the it can be added
in the system that automatically displays the details when the User apply for Passport
after mailing his resume.When the developed system runs successfully, it can be also be
used that the all Passport company can automatically get the Passport of the user they
have same Passport vacancies.
Online User register facility could be brought on Web that would enable the User
to register and can see the detail in the system itself by entering his login id No.
There should be some page like Passport sample question paper and online test can give
the better option for finding Passport and company need only to conduct viva-exam not
written exam for that user who has passed online examination.
If user want to send Passport detail to his friend then there is option to mail
Passport detail to friend is necessary in Passport page.
Each of these tasks serves describes the problem so that an overall approach or
solution may be synthesized.
1: Registered Module:
In this module, User enters a login & password and the software checks its
validity. If the login & password is valid then he is allowed to enter, otherwise “Invalid
User/Password” message is displayed. Different data access rights are assigned to
different users.
2: Master Module.
This module is used to add new candidate, new Passport ,new company details
etc.
3: Apply Module :
In this module, User apply for the Passport which is best suited to him as per their
qualification ,location .
149
4: Modifying/Updating Existing Entries:
In this module, whenever an existing entity is required to be modified the
corresponding forms are opened and the database is manipulated and the data is fetched.
Now the user can made the required changes and then accordingly, he updates the data.
Again, the checks are followed in case there is any invalid entry.
5: Searching:
In this module, User can search on the requirement their choice that mean, it
(search engine) will help to search in all record/ information of available Passport
/company/candidate.
150
14.0 BIBLIOGRAPHY
www.w3school.com
www.dotnetfounda.com
www.sqlauthority.com
Elsevier Inc, C# 2.0 Practical Guide For Programmers
Wrox.Press-ProfessionalADO.NETProgramming
Addison.WesleyASP.NET Solutions—23 Case Studies: Best Practices for Developers
Premier Press - Ado.net Professional Projects
Wrox.Press-Professional ASP.NET Programming
151