Documente Academic
Documente Profesional
Documente Cultură
Submitted to the School of Computer and Information Sciences, In partial fulfillment of the requirements For the degree of
ENROL NO:-032643877
ACKNOWLEDGEMENT
My sincere thanks to all the staff and faculty members, who have given me the support through out the course of this project. To development of software is a very hard work and it is not possible under proper guidance and suggestions. For this I want to give my deep appreciation for the efforts, helpful suggestions, and proper guidance to
DHANANJAY & PRITM DAS,
my teacher
and guide ensured that I move on the right lines. He has been always a great source of inspiration to me and under his guidance I have done my work better. Although I have tried to express my gratitude to every person who contributed to my project work, there may still be someone hiding veils of unknown, whom I may not have been able to recognize would like thank all of them who have worked for me without my knowledge KARUNA KANT
ENROL NO:-032643877
TABEL OF CONTENTS
TOPIC Acknowledgement Title of the Project Objectives, Purpose, Scope Survey of Technologies Requirements and Analysis Process Logic Limitations of the Project Tools/Platforms , Language to be used Scope of Future Application Bibliography Introduction. Objectives Tools Environment Used Analysis Document Design Document Program Code Testing(Test Case) Input And Output Screens Implementation of Security for software Limitations of the project Future Application of the Project Bibliography PAGE NO. 2 4 6 8-16 17-20 21-22 23 24-26 27 28 32 34 34 40 45 55-109 110-113 114-136 137 138 140
ENROL NO:-032643877
ENROL NO:-032643877
ENROL NO:-032643877
2. OBJECTIVES
I have developed my Project which Title is TOURIST HOLIDAY PLACES. It is Web application. I have made it to give all information about all the tourist places of India. And any can get advantage from this site. I am maintaining below:This website is available to anybody and anywhere. This saves lot
of communication time of the registered users and in a very little time span the registered user may look for proper package. This plan cost offered is economic too. A database of the registered users will be created and this will help
the users to fetch the details of particular places as per requirements. There is a separate database for administrator for updating the site. Internet will be available to everybody anywhere anytime here, this makes the site highly mobile. The site has all the necessary details about interested hotels hence, provides all the relevant information therefore. For example, Details of the hotels, price, ratings etc. The site is such that any person of age between 18 to 70 can visit it. Therefore it has a wide range of users. Proper authorization and authentication provisions have been made for the security of the site so that only the authorized users can make changes to the site. Without proper authentication no one is allowed to update site. The site is flexible to any expansion or contraction in the future. For example: Sending telegrams can be included etc.
Flexible .
ENROL NO:-032643877
This software also provides security features and proper validation checks to implement business rules.
Through this project I have tried to automate the task of: Registered Member Management by Admin Registered Member will get there own username and password for login. Registration Number is generated automatically from the table by auto generation Entering the details like Primary Information, Contact Information, and Other Information. Newsletter facility to registered members by Admin Add to favorite facility Readymade package available as well as created by admin for particular tour. For Example:-Holiday Ideas is one of the Category which contains Beach holidays, Weekend Gateways, Hill Holidays as Sub Category Packages. Users can find hotels as per their requirements as well as can provide ratings to hotels and packages. Users can see complete package details such as type of package, number of persons applicable, Users can select state as well as Resort type under Find hotels heading. After that he will get a complete list with resort name, Rating, Type, Location, Tariff and available packages. User can see complete details of a particular hotel with hotel name, hotel summary, ratings and its feedback by customers.
ENROL NO:-032643877
Main Module
User/Admin
Registration Module
ENROL NO:-032643877
DATA FLOW DIAGRAM :It is a graphical representation of flow of data through a system. The basis of DFD is a data flow graph, which pictorially represents transformation on data. DFDs can represent the system at any level of abstraction. Note: Represents External Entity Represents the Process Represents the flow of Control/Data
10
ENROL NO:-032643877
Level-1 DFD:-
Admin/ User
Admin
Login
Log Out
Update record
Updated Site
User
Search Tour
Tour Foun d
Add To Cart
Continue Searching
Check Out
Exit
Logout
12
ENROL NO:-032643877
Yes
No
No
Want to Checkout
Yes Yes
Registe r User ?
No
Login
No
Yes
Continu e Search?
No Logout/Exit
13
ENROL NO:-032643877
Start
No
Is correc t
Yes
Acce pt
Details
Out put
Stop
14
ENROL NO:-032643877
Start
Login in with password & user name Search the holiday places
No
Logout
mode of payment
15
ENROL NO:-032643877
ER-DIAGRAM :The primary purpose of the E-R diagram is to represent the data objects and their relationships.
SYMBOL
Diamond
User name
Passwor Password d
Users
Logi n
Search
Adding Package
Perfor m
16
ENROL NO:-032643877
State-id
state
STATE
State-name
City-id
City
CITY
City-name
c_id C_id
c_name
C_image
Category
c_discripn
H_id H_na
17
ENROL NO:-032643877
REQUIREMENTS AND ANALYSIS :Reports generation is very important as they convey a lot of information. That is help full in further decision making. The reports that will be generated by the system will be based on various criteria like:
18
ENROL NO:-032643877
TOURIST HOLIDAY PLACES DATA -STRUCTURE TABLE NAME : STATE CONSTRAINTS Primary Key NOT NULL NAME State_id state_name DATATYPE varchar varchar SIZE 50 50 DISCRIPTION Unique identification code for the states Name of the States
TABLE NAME : CITY CONSTRAINTS Primary Key NOT NULL NAME city_id city_name DATATYPE varchar varchar SIZE 4 50 DISCRIPTION Uniquely identify the code for the city Name of the city
TABLE NAME : CATEGORY CONSTRAINTS Primary Key Foreign key NOT NULL NOT NULL NAME c_id c_name c_description C_image DATATYPE varchar varchar varchar varchar SIZE 10 50 400 400 DISCRIPTION Unique identify for the category Foreign key of c_name form Application Table c_description form category table Image of the Category
19
ENROL NO:-032643877
TABLE NAME : HOTEL CONSTRAINTS Primary key NOT NULL NAME Hotel_id Hotel_name DATATYPE varchar varchar SIZE 10 50 DISCRIPTION Unique code for Hotel Name for the Hotel.
TABLE NAME : HOTEL FEATURE CONSTRAINTS Primary Key NOT NULL NOT NULL NOT NULL NAME hf_id hf_name hf_feature Hotel_place DATATYPE varchar varchar varchar varchar SIZE 10 100 500 50 DISCRIPTION Unique code for hotel feature hf name description Hotel feature information Name of the hf_place
TABLE NAME : PACKAGE CONSTRAINTS Primary Key NOT NULL NAME p_id Package_name DATATYPE varchar varchar SIZE 4 500 DISCRIPTION Unqidentify code for the Package Name of the Package
20
ENROL NO:-032643877
PROCESS LOGIC :-
Module 1 (Login Module) Form Access Module 1 (Connects to Module) Make Connection Module 1 (Verification & Validation Module) Details Module 2 (Find form & chk Informtion) Check Form details Module 3 (Show Forms) Output
Inputs
PROCESS LOGIC:-
21
ENROL NO:-032643877
In this project (TOURIST HOLIDAY PLACES). The main Concern is to full fill the requirement for tourist. Through this they can get information
about tourist holiday places. After the target has been set, next main job is to maintain production where the activities like daily tour places will be Maintain in this project. This all work will be done by provide update machine information when required because The entire required information vital role in deciding the machine maintenance activities and has its effect on project. The information system requires maintaining following information - state name, city name, hotel information, hotel feature, category name, etc related to this project. Its work like above maintain diagram through that we can say that How our Tourist holiday places worked.
LIMITATIONS OF PROJECT :-
22
ENROL NO:-032643877
TOURIST HOLIDAY PLACES This project will be developed on Windows environment using C # Language & Asp.net Tools. For back end we used Ms-Sql 2000 database. Using this we will generate database for this project. This will not be run on the UNIX & Dos plate form. These will not used online now, but in the future we can do this. This is the limitations of this project.
It will not run any other environment like Dos, UNIX, Linex.
23
ENROL NO:-032643877
TOURIST HOLIDAY PLACES Tools/Platform used : ASP .NET with code behind in C# as Front-end SQL server as the database or Backend. Brief description of the platform used is described below.
ASP .NET
ASP .NET is a set of web development technologies marked be Microsoft. Programmers can use it to build dynamic web sites. Web applications and XML web services. It is part of Microsofts .net platform and is the successor to Microsofts Active Server Pages (ASP) technology.
Principles of ASP .NET
Even though ASP .NET takes its name from Microsofts old web development technology, ASP, the two differ significantly. Microsoft has completely rebuilt ASP .NET, based on the Common Language Runtime (CLR) shared by all Microsoft .NET applications. Programmers can write ASP .NET code using any of the different programming languages supported by the .net framework, usually (proprietary) Visual Basic .NET, Jscript .NET, or (Standardized) C#, but also including open-source languages such as Perl and Python. ASP .NET has performance benefits over previous script-based technologies because the server-side code is compiled to one or a few DLL files on a web server.
Advantages of ASP .NET
ASP.NET was developed in direct response to the problems that developers had with classic ASP. Since ASP is in such wide use, however, Microsoft ensured that ASP scripts execute without modification on a machine with the .NET Separation of Code from HTML Support for compiled languages
24
ENROL NO:-032643877
TOURIST HOLIDAY PLACES Use services provided by the .NET Framework Graphical Development Environment State management Update files while the server is running! XML-Based Configuration Files
C Sharp
The C# language is standardized through ECMA International. This allows for a standardization of the language without the fear of one company controlling it. The ECMA committee has recently accepted two new specifications. These are the Standard ECMA334: C# Language Specification and the Standard ECMA-335: Common Language Infrastructure (CLI) Specification. This standard specifies the syntax and constraints used to create a standard C# program.
SQL SERVER
In today's connected world, data and the systems that manage that data must always be secure yet available to your users. With SQL Server 2000, users and information technology (IT) professionals across your organization will benefit from reduced application downtime, increased scalability and performance, and tight yet flexible security controls. SQL Server 2000 also includes many new and improved capabilities to help make your IT staff more productive.
25
ENROL NO:-032643877
: : :
Pentium 4,500 MHz (or above). 512 MB (or above). 40 GB (or Above).
Client:
Processor RAM HDD
: : :
Celeron 500 MHz or above, Pentium 4,500 MHz or above. 512 MB (or above). 40GB (or Above).
Software Specification :-
Windows 2000, XP, NT IE4 or Netscape 4x or upwards. ASP.NET, C#, HTML, DHTML, JavaScript Microsoft SQL Server 2000
26
ENROL NO:-032643877
THE FUTURE SCOPE OF THIS PROJECT IS AS FOLLOWS:This project is further developing to add more facility. The system is highly flexible one and is well efficient to make easy interactions with the client. The key focus is given on data security, as the project is online and will be transferred in network. The speed and accuracy will be maintained in a proper way. This will be a user-friendly one and can successfully overcome strict and severe validation checks. The system will be a flexible one and changes whenever can be made easy. Using the facility and flexibility in .NET and SQL, the software can be developed in a neat and simple manner there by reducing the operator's work. Since the project is developed in .NET as a front-end and SQL as a back-end it can be modified easily and used for a long period.
CONCLUSION Working on the project was good experience. I understand the importance of Planning and designing as a part of software development. But its very difficult to complete the program for single person. Developing the project has helped us some experience on real-time development Procedures.
BIBLIOGRAPHY
NAME :- KARUNA KANT 27 ENROL NO:-032643877
Software Engineering Pressman , McGRAW HILL Software Engineering Pankaj Jalote. Beginning Asp.Net 2005 wrox Programming asp.NET (Microsoft press) Francesco Balena
An Introduction to Database Systems koarth Microsoft SQL SERVER 2000 Ronald R. Talmage Relational Database System Bipin c.Desai
Websites Referred:
28
ENROL NO:-032643877
ACKNOWLEDGEMENT
My sincere thanks to all the staff and faculty members, who have given me the support through out the course of this project. To development of software is a very hard work and it is not possible under proper guidance and suggestions. For this I want to give my deep appreciation for the efforts, helpful suggestions, and proper guidance to
DHANANJAY & PRITM DAS,
my teacher
and guide ensured that I move on the right lines. He has been always a great source of inspiration to me and under his guidance I have done my work better. Although I have tried to express my gratitude to every person who contributed to my project work, there may still be someone hiding veils of unknown, whom I may not have been able to recognize would like thank all of them who have worked for me without my knowledge
Karuna Kant
29
ENROL NO:-032643877
30
ENROL NO:-032643877
Introduction
Objectives
Tools / Platforms Requirement Analysis Data flow Diagram Flowchart Structures of tables Code Sample Input and Output Screens Test Case
Security Issues
Limitation of Project
Bibliography
31
ENROL NO:-032643877
INTRODUCTION :Tourist Holiday Places is basically India Resorts Survey, brings the feedback of millions of travelers to provide you unparalleled power for planning your next holiday. You can find: guest feedback on hotels, downloadable e-guides etc. With IT revolution as its peak, this task should also be converted into a computerized process and keeping this in mind we thought of buildings this web site which all reduces the time, energy and efforts for systematic processing of data. These days Internet is a very popular mode of communication because most of the people are computer literate. Using the programming skills all the operations involved could be easily made efficient flawless and user friendly. The proposed solution is a website through which users can plan their holidays as per their requirement. This system not only suggests tour, also give the complete cost detail for particular package. The system will be a database driven web-based solution that can provide easy and faster access and posting of information related to any package for tour according to users requirements. The website will be dynamic with a backend Admin Control panel and will allow site administrator to manage site content including management of users, packages, Its category and sub categories etc. Registered Users of this solution will be able to view packages, send package requirement for booking, manage their account and send messages to them. Along with this the site will also have the section where User can post queries anything, give suggestions and add comments on this website.
32
ENROL NO:-032643877
Web site comprises following modules:Administration Module User Module The main BENEFITS of this project are that, it automates the following task: One can select any holiday package as per their choice. A user can select various schedules of the holidays as per their convenience. This product gives various details of available holiday destinations. This product gives all Price Details for the selected holiday package efficiently. It manages all registered members by admin. Member Id is generated automatically from the table by auto generation. Give a modification power to sites owner at any level. So, Administrator of site can make any changes such as he can add new packages, payment details on the working windows. This application provides luxury holiday packages.
33
ENROL NO:-032643877
OBJECTIVES :I have developed my Project which Title is TOURIST HOLIDAY PLACES. It is Web application. I have made it to give all information about all the tourist places of India. And any can get advantage from this site. I am maintaining below:This website is available to anybody and anywhere. This saves lot
of communication time of the registered users and in a very little time span the registered user may look for proper package. This plan cost offered is economic too. A database of the registered users will be created and this will help
the users to fetch the details of particular places as per requirements. There is a separate database for administrator for updating the site. Internet will be available to everybody anywhere anytime here, this makes the site highly mobile. The site has all the necessary details about interested hotels hence, provides all the relevant information therefore. For example, Details of the hotels, price, ratings etc. The site is such that any person of age between 18 to 70 can visit it. Therefore it has a wide range of users. Proper authorization and authentication provisions have been made for the security of the site so that only the authorized users can make changes to the site. Without proper authentication no one is allowed to update site. The site is flexible to any expansion or contraction in the future. For example: Sending telegrams can be included etc.
Flexible .
34
ENROL NO:-032643877
TOURIST HOLIDAY PLACES This software also provides security features and proper validation checks to implement business rules.
Through this project I have tried to automate the task of: Registered Member Management by Admin Registered Member will get there own username and password for login. Registration Number is generated automatically from the table by auto generation Entering the details like Primary Information, Contact Information, and Other Information. Newsletter facility to registered members by Admin Add to favorite facility Readymade package available as well as created by admin for particular tour. For Example:-Holiday Ideas is one of the Category which contains Beach holidays, Weekend Gateways, Hill Holidays as Sub Category Packages. Users can find hotels as per their requirements as well as can provide ratings to hotels and packages. Users can see complete package details such as type of package, number of persons applicable, Users can select state as well as Resort type under Find hotels heading. After that he will get a complete list with resort name, Rating, Type, Location, Tariff and available packages. User can see complete details of a particular hotel with hotel name, hotel summary, ratings and its feedback by customers.
35
ENROL NO:-032643877
: : :
Pentium 4,500 MHz (or above). 512 MB (or above). 40 GB (or Above).
Client:
Processor RAM HDD
: : :
Celeron 500 MHz or above, Pentium 4,500 MHz or above. 512 MB (or above). 40GB (or Above).
Software Specification :-
Windows 2000, XP, NT IE4 or Netscape 4x or upwards. ASP.NET, C#, HTML, DHTML, JavaScript Microsoft SQL Server 2000
36
ENROL NO:-032643877
Tools/Platform used : ASP .NET with code behind in C# as Front-end SQL server as the database or Backend. Brief description of the platform used is described below.
ASP .NET
ASP .NET is a set of web development technologies marked be Microsoft. Programmers can use it to build dynamic web sites. Web applications and XML web services. It is part of Microsofts .net platform and is the successor to Microsofts Active Server Pages (ASP) technology.
Principles of ASP .NET
Even though ASP .NET takes its name from Microsofts old web development technology, ASP, the two differ significantly. Microsoft has completely rebuilt ASP .NET, based on the Common Language Runtime (CLR) shared by all Microsoft .NET applications. Programmers can write ASP .NET code using any of the different programming languages supported by the .net framework, usually (proprietary) Visual Basic .NET, Jscript .NET, or (Standardized) C#, but also including open-source languages such as Perl and Python. ASP .NET has performance benefits over previous script-based technologies because the server-side code is compiled to one or a few DLL files on a web server.
Advantages of ASP .NET
ASP.NET was developed in direct response to the problems that developers had with classic ASP. Since ASP is in such wide use, however, Microsoft ensured that ASP
37
ENROL NO:-032643877
TOURIST HOLIDAY PLACES scripts execute without modification on a machine with the .NET Separation of Code from HTML Support for compiled languages Use services provided by the .NET Framework Graphical Development Environment State management Update files while the server is running! XML-Based Configuration Files
C Sharp
The C# language is standardized through ECMA International. This allows for a standardization of the language without the fear of one company controlling it. The ECMA committee has recently accepted two new specifications. These are the Standard ECMA334: C# Language Specification and the Standard ECMA-335: Common Language Infrastructure (CLI) Specification. This standard specifies the syntax and constraints used to create a standard C# program.
SQL SERVER
In today's connected world, data and the systems that manage that data must always be secure yet available to your users. With SQL Server 2000, users and information technology (IT) professionals across your organization will benefit from reduced application downtime, increased scalability and performance, and tight yet flexible security controls. SQL Server 2000 also includes many new and improved capabilities to help make your IT staff more productive.
38
ENROL NO:-032643877
39
ENROL NO:-032643877
The requirement gathering process is intensified and focused specifically on software. To understand the nature of programs to be built the software engineers, as well as required function, behavior, performance, and interface. Requirement for both the system and the software are documented and reviewed with the customer. CODE EFFICIENCY :The input to the coding phase is the design document. During the coding phase, different modules identified in the design document are coded according to the module specifications. It may be recollected that at the end of the design phase, we have not only the module structure of the system but also the module specifications where the data structures and algorithms for each module are specified. Therefore, we can say that the objective of the coding phase is to transform the design of the system, as given by its module specification, into a high level language code and then to unit test this code. In this project, the code used and thus the software developed, fulfils approximately all requirements of the user. Therefore, we can say that it is efficient. OPTIMIZATION OF CODE:The process of finding the best solution to some problem is known as optimization. In programming, the word optimization is usually applied to part of the code generation phase. Programs can be space efficient in the sense of occupying minimal storage, or time efficient in the sense of executing in the minimum time. Some optimization techniques:In the context of this project, following techniques can be used for code optimaization: 1.USE PROPER DATA TYPE:The simplest optimization trick is use the proper data types for calculations. If the application manipulates integer, do not use doubles, or even worse variants. They will slow down the calculations without increasing numerical
40
ENROL NO:-032643877
accuracy. In general, the shorter the data type, the more efficiency its handled.
2.AVOID VARIANTS :Variants are convenient when we are putting together a short program to display the ASCII character set or the ASCII value of the function keys. They take up much more than other data types and cannot be processed immediately. Actually, the variant is the variable whose type is determined at run time not at compile time. In this project, variants are rarely used. 3.SIMPLIFICATION OF INTER LOOP CODE ::The optimization of code in the loop also increases the efficiency of project. In this project, the code in the various loops, do not have any ^ operator or rigorous mathematical calculations, therefore the loops are optimized. 2.AVOIDING LARGE STRINGS :By avoiding use of large strings also, the code can be optimized. We should not manipulate very long string with Visual Basic. Break long strings into shorter ones, manipulate then individually, and when completed, concatenate the processed strings. Execution times will be reduced tremendously.
41
ENROL NO:-032643877
42
ENROL NO:-032643877
ER-DIAGRAM :The primary purpose of the E-R diagram is to represent the data objects and their relationships.
VARIOUS COMPONENTS USED IN THE GIVEN E-R DIAGRAM :SYMBOL NAME Rectangle SYMBOL MEANING It represent entity sets.
Diamond
43
ENROL NO:-032643877
User name
Passwor Password d
Users
Logi n
Search
Adding Package
Perfor m
44
ENROL NO:-032643877
State-id
state
STATE
State-name
City-id
City
CITY
City-name
c_id C_id
c_name
C_image
Category
c_discripn
H_id H_na
45
ENROL NO:-032643877
Main Module
User/Admin
Registration Module
46
ENROL NO:-032643877
DATA FLOW DIAGRAM :It is a graphical representation of flow of data through a system. The basis of DFD is a data flow graph, which pictorially represents transformation on data. DFDs can represent the system at any level of abstraction. Note: Represents External Entity Represents the Process Represents the flow of Control/Data
47
ENROL NO:-032643877
Level-1 DFD:-
Admin/ User
Admin
Login
Log Out
Update record
Updated Site
48
ENROL NO:-032643877
Level-2 DFD (User Module):User Search Tour Tour Foun d Add To Cart
Continue Searching
Check Out
Exit
Logout
49
ENROL NO:-032643877
Yes
No
No
Want to Checkout
Yes Yes
Registe r User ?
No
Login
No
Yes
Continu e Search?
No Logout/Exit
50
ENROL NO:-032643877
Start
No
Is correc t
Yes
Acce pt
Details
Out put
Stop
51
ENROL NO:-032643877
Start
Login in with password & user name Search the holiday places
No
Logout
mode of payment
52
ENROL NO:-032643877
Design Document :Database Design :DATA -STRUCTURE TABLE NAME : STATE CONSTRAINTS Primary Key NOT NULL NAME State_id state_name DATATYPE varchar varchar SIZE 50 50 DISCRIPTION Unique identification code for the states Name of the States
TABLE NAME : CITY CONSTRAINTS Primary Key NOT NULL NAME city_id city_name DATATYPE varchar varchar SIZE 4 50 DISCRIPTION Uniquely identify the code for the city Name of the city
TABLE NAME : CATEGORY CONSTRAINTS Primary Key Foreign key NOT NULL NOT NULL NAME c_id c_name c_description C_image DATATYPE varchar varchar varchar varchar SIZE 10 50 400 400 DISCRIPTION Unique identify for the category Foreign key of c_name form Application Table c_description form category table Image of the Category
53
ENROL NO:-032643877
TABLE NAME : HOTEL CONSTRAINTS Primary key NOT NULL NAME Hotel_id Hotel_name DATATYPE varchar varchar SIZE 10 50 DISCRIPTION Unique code for Hotel Name for the Hotel.
TABLE NAME : HOTEL FEATURE CONSTRAINTS Primary Key NOT NULL NOT NULL NOT NULL NAME hf_id hf_name hf_feature Hotel_place DATATYPE varchar varchar varchar varchar SIZE 10 100 500 50 DISCRIPTION Unique code for hotel feature hf name description Hotel feature information Name of the hf_place
54
ENROL NO:-032643877
PROGRAM CODE :-
55
ENROL NO:-032643877
using using using using using using using using using using using
System; System.Data; System.Data.SqlClient; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class LoginForm : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=.;database=karan;uid=sa;pwd=;"); SqlDataReader dr; protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { Session["user"] = "karuna"; Session["pass"] = "kant"; string str = "select * from signup where u_id='"+txtuserID.Text+"' And u_pwd='"+txtpwd1.Text+"'"; SqlCommand cmd = new SqlCommand(str,con); con.Open(); dr = cmd.ExecuteReader(); if (dr.HasRows) { Response.Redirect("AdminMenuPage.aspx");
56
ENROL NO:-032643877
Source Code for Login Page :<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LoginForm.aspx.cs" Inherits="LoginForm" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>TOURIST HOLIDAY PLACES</title> </head> <body> <form id="form1" runat="server"> <div> <asp:Panel ID="Panel1" runat="server" BackColor="#FFC0C0" Height="160px" Style="z-index: 100; left: 408px; position: absolute; top: 88px" Width="384px"> <asp:Label ID="Label1" runat="server" BackColor="#FF80FF" Style="z-index: 100; left: 40px; position: absolute; top: 24px" Text="UserID" ForeColor="#0033FF" Font-Bold="True" Font-Size="15pt"></asp:Label> <asp:TextBox ID="txtuserID" runat="server" BackColor="#FF80FF" Style="z-index: 101; left: 184px; position: absolute; top: 24px" ForeColor="#0033FF" Width="136px"></asp:TextBox> <asp:TextBox ID="txtpwd1" runat="server" BackColor="#FF80FF" Style="z-index: 104; left: 184px; position: absolute; top: 72px" TextMode="Password" ForeColor="#0033FF" Width="136px"></asp:TextBox> <asp:Label ID="Label2" runat="server" BackColor="#FF80FF" Style="z-index: 103; left: 40px; position: absolute; top: 72px" Text="Password" ForeColor="#0033FF" Font-Bold="True" Font-Size="15pt"></asp:Label> </asp:Panel> <asp:Button ID="btnsignIN" runat="server" BackColor="Lime" OnClick="Button1_Click" Style="z-index: 101; left: 592px; position: absolute; top: 208px" Text="SignIN" Font-Bold="True" Height="32px" /> <asp:Button ID="btnsignUP" runat="server" BackColor="Lime" PostBackUrl="~/SignUp.aspx" Style="z-index: 102; left: 664px; position: absolute; top: 208px" Text="SignUP" Font-Bold="True" Height="32px" /> <asp:Label ID="Label3" runat="server" BackColor="Lime" FontBold="True" Font-Size="20pt"
57
ENROL NO:-032643877
using using using using using using using using using using
System; System.Data; System.Data.SqlClient; System.Configuration; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page { SqlConnection con=new SqlConnection("server=.;database=karan;uid=sa;pwd=;"); protected void Page_Load(object sender, EventArgs e) { } protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { SqlCommand cmd= new SqlCommand("insert into signup values('"+TxtUserid.Text+"','"+Txtpwd1.Text+"','"+Txtpwd2.Text+"','"+txtf name.Text+"','"+txtlname.Text+"','"+txtemail.Text+"','"+txtmobile.Text+"' )",con); con.Open(); int i = cmd.ExecuteNonQuery();
58
ENROL NO:-032643877
e)
using using using using using using using using using using
System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
59
ENROL NO:-032643877
60
ENROL NO:-032643877
61
ENROL NO:-032643877
Source Code for Add Category ;<head runat="server"> <title>TOURIST HOLIDAY PLACES</title> <script type="text/javascript"> function show() { var v=document.getElementById("FileUpload1").value; document.getElementById("Image1").src=v; } </script> </head> <asp:FileUpload ID="FileUpload1" runat="server" onChange="show()" Style="z-index: 107; left: 344px; position: absolute; top: 400px" BackColor="White" FontSize="Medium" ForeColor="White" TabIndex="3" />
62
ENROL NO:-032643877
public partial class _Default : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=;database=karan;uid=sa;pwd=;"); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("LoginForm.aspx"); } } DataGrid1.AllowPaging = true; DataGrid1.PageSize=3; if (!IsPostBack) { SqlDataAdapter da = new SqlDataAdapter("select * from category",con); DataSet ds = new DataSet(); da.Fill(ds); DataGrid1.DataSource = ds.Tables[0]; DataGrid1.DataBind(); } } protected void Fill() { SqlDataAdapter da = new SqlDataAdapter("select * from category", con); DataSet ds = new DataSet(); da.Fill(ds); DataGrid1.DataSource = ds.Tables[0]; DataGrid1.DataBind(); } protected void DataGrid1_DeleteCommand(object source, DataGridCommandEventArgs e) { string str = DataGrid1.DataKeys[e.Item.ItemIndex].ToString(); string cmd = "delete from category where cid = '" + str + "'"; SqlCommand com = new SqlCommand(cmd,con); con.Open();
63
ENROL NO:-032643877
64
ENROL NO:-032643877
using using using using using using using using using using using
System; System.Data; System.Data.SqlClient; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class Updatecategory : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=.; database=karan; uid=sa;pwd=;"); SqlCommand com; SqlDataReader dr; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("LoginForm.aspx"); } }
65
ENROL NO:-032643877
if (!IsPostBack) { string cmd = "select * from category where cid='" + str + "'"; com = new SqlCommand(cmd, con); con.Open(); dr = com.ExecuteReader(); while (dr.Read()) { TextBox1.Text = dr["cname"].ToString(); TextBox2.Text = dr["discription"].ToString(); Image1.ImageUrl = dr["image1"].ToString(); } con.Close(); } } protected void Button1_Click(object sender, EventArgs e) { string str = Request.QueryString["id"]; if (FileUpload1.HasFile) //if we want to update the picture also then this block will called other wise else { string mypath = Server.MapPath("image"); string imgurl = mypath + "\\" + FileUpload1.FileName; FileUpload1.PostedFile.SaveAs(imgurl); string cmd = "update category set cname='" + TextBox1.Text + "',discription='" + TextBox2.Text + "',image1 ='" + imgurl + "'where cid='" + str + "'"; com = new SqlCommand(cmd, con); con.Open(); dr = com.ExecuteReader(); con.Close(); Label4.Text = "Category Updated"; } else {
con.Open(); com = new SqlCommand("update category set cname='" + TextBox1.Text + "',discription='" + TextBox2.Text + "' where cid='" + str + "'", con); com.ExecuteNonQuery(); con.Close(); Label4.Text = "Category Updated"; } }
66
ENROL NO:-032643877
Source side change :<head runat="server"> <title>TOURIST HOLIDAY PLACES</title> <script language="javascript" type="text/javascript"> function show() { var v=document.getElementById("FileUpload1").value; document.getElementById("Image1").src=v; } </script> </head> <asp:FileUpload ID="FileUpload1" onChange="show()" runat="server" Style="z-index: 106; left: 288px; position: absolute; top: 336px" Width="283px" />
67
ENROL NO:-032643877
public partial class _Default : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=;database=karan;uid=sa;pwd=;"); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("LoginForm.aspx"); } } DataGrid1.AllowPaging = true; DataGrid1.PageSize=3; if (!IsPostBack) { SqlDataAdapter da = new SqlDataAdapter("select * from category",con); DataSet ds = new DataSet(); da.Fill(ds); DataGrid1.DataSource = ds.Tables[0]; DataGrid1.DataBind(); } } protected void Fill() { SqlDataAdapter da = new SqlDataAdapter("select * from category",con); DataSet ds = new DataSet(); da.Fill(ds); DataGrid1.DataSource = ds.Tables[0]; DataGrid1.DataBind(); } protected void DataGrid1_DeleteCommand(object source, DataGridCommandEventArgs e) { string str = DataGrid1.DataKeys[e.Item.ItemIndex].ToString(); string cmd = "delete from category where cid = '" + str + "'"; SqlCommand com = new SqlCommand(cmd,con); con.Open(); com.ExecuteNonQuery(); con.Close(); Fill(); } ImageUrl='<
68
ENROL NO:-032643877
using System; using System.Data; using System.Configuration; using System.Collections; 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.Data.SqlClient; public partial class addpackages : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=;database=karan;uid=sa;pwd=;"); SqlCommand cmd; SqlDataReader dr; DataSet ds = new DataSet(); string cn; string cn1; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack)
69
ENROL NO:-032643877
} cn1= Request.QueryString["id"].ToString(); cn = Request.QueryString["categoryname"].ToString(); if (!IsPostBack) { cn1 = Request.QueryString["id"].ToString(); cn = Request.QueryString["categoryname"]; string str = "select * from category where categoryname='"+cn+"'"; cmd = new SqlCommand(str, conn); conn.Open(); dr = cmd.ExecuteReader(); if (dr.Read()) { TextBox6.Text = dr["id"].ToString(); TextBox1.Text = dr["categoryname"].ToString(); } conn.Close(); } string str1 = "select * from hotalentry"; cmd = new SqlCommand(str1, conn); conn.Open(); dr = cmd.ExecuteReader(); while (dr.Read()) { DropDownList1.Items.Add(dr["hotalname"].ToString()); } conn.Close(); } protected void LinkButton1_Click(object sender, EventArgs e) { Response.Redirect("adminmenupage.aspx"); } protected void LinkButton2_Click(object sender, EventArgs e) { Response.Redirect("loginform.aspx"); } protected void Button1_Click(object sender, EventArgs e) { string filepath = Server.MapPath("image"); string imgurl = ""; imgurl = filepath + "\\" + FileUpload1.FileName; FileUpload1.PostedFile.SaveAs(imgurl); string ins = "insert into package values('"+TextBox6.Text+"','" + TextBox1.Text + "','" + TextBox2.Text + "','"+DropDownList1.Text+"','"+TextBox3.Text+"','"+DropDownList2.Te
70
ENROL NO:-032643877
} protected void Button2_Click(object sender, EventArgs e) { TextBox1.Text = ""; TextBox2.Text = ""; DropDownList1.Text = ""; DropDownList2.Text = ""; TextBox3.Text = ""; TextBox4.Text = ""; TextBox5.Text = ""; Image1.ImageUrl = ""; } protected void LinkButton3_Click(object sender, EventArgs e) { Response.Redirect("listpackages.aspx"); }
Source code change for AddPackage:<head runat="server"> <title>TOURIST HOLIDAY PLACES</title> <script type="text/javascript" src="datetimepicker.js"> </script> <script type="text/javascript"> window.history.forward(1); function show() { var v=document.getElementById("FileUpload1").value; document.getElementById("Image1").src=v; } </script> </head> <asp:DropDownList ID="DropDownList2" runat="server" Style="z-index: 117; left: 491px; position: absolute; top: 119px" Width="171px"> <asp:ListItem>Select the no of person</asp:ListItem> <asp:ListItem>2</asp:ListItem> <asp:ListItem>3</asp:ListItem> <asp:ListItem>4</asp:ListItem> <asp:ListItem>5</asp:ListItem> <asp:ListItem>6</asp:ListItem> <asp:ListItem>7</asp:ListItem> <asp:ListItem>8</asp:ListItem> <asp:ListItem>9</asp:ListItem> <asp:ListItem>10</asp:ListItem>
71
ENROL NO:-032643877
using using using using using using using using using using using
System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls; System.Data.SqlClient;
public partial class packages : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=;database=karan;uid=sa;pwd=;"); SqlDataReader dr; SqlCommand cmd; DataSet ds = new DataSet(); SqlDataAdapter da; protected void Page_Load(object sender, EventArgs e) { DataGrid1.AllowPaging = true; DataGrid1.PageSize = 10; if (!IsPostBack) {
72
ENROL NO:-032643877
73
ENROL NO:-032643877
} {
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) da = new SqlDataAdapter("select * from package where categoryname='" + DropDownList1.SelectedItem + "'", conn); fill(); conn.Close(); protected void DataGrid1_EditCommand(object source, DataGridCommandEventArgs e) string id = DataGrid1.DataKeys[e.Item.ItemIndex].ToString(); string str = "select * from package where packagename='" + id + "'"; cmd = new SqlCommand(str, conn); conn.Open(); dr = cmd.ExecuteReader(); string id1 = ""; string param = ""; if (dr.Read()) { id1 = dr["packageid"].ToString(); param = "id=" + id1; Response.Write(param); } conn.Close(); Response.Redirect("updatepackage.aspx?" + param); } { protected void DataGrid1_DeleteCommand(object source, DataGridCommandEventArgs e) string id = DataGrid1.DataKeys[e.Item.ItemIndex].ToString(); ng del = "delete from package where packagename='" + id + "'"; cmd = new SqlCommand(del, conn); conn.Open(); cmd.ExecuteNonQuery(); fill(); Response.Write("record deleted"); conn.Close(); protected void DataGrid1_PageIndexChanged(object source, DataGridPageChangedEventArgs e) { } } DataGrid1.CurrentPageIndex = e.NewPageIndex; fill();
74
ENROL NO:-032643877
75
ENROL NO:-032643877
} } protected void LinkButton1_Click(object sender, EventArgs e) { Response.Redirect("adminmenupage.aspx"); } protected void LinkButton2_Click(object sender, EventArgs e) { Response.Redirect("loginform.aspx"); } protected void LinkButton3_Click(object sender, EventArgs e) { Response.Redirect("listpackages.aspx"); } protected void Button2_Click(object sender, EventArgs e) { string imgurl = "";
76
ENROL NO:-032643877
Source code change for AddPackage:<head runat="server"> <title>TOURIST HOLIDAY PLACES</title> <script type="text/javascript" language="javascript"> window.history.forward(1); </script> <script type="text/javascript"> function show() {
77
ENROL NO:-032643877
78
ENROL NO:-032643877
:-
79
ENROL NO:-032643877
public partial class addadvertisementPackages : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=;database=karan;uid=sa;pwd=;"); SqlCommand cmd; SqlDataAdapter da; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("loginform.aspx"); } } } protected void LinkButton1_Click(object sender, EventArgs e) { Response.Redirect("adminmenupage.aspx"); } protected void LinkButton2_Click(object sender, EventArgs e) { Response.Redirect("advertisementmenu.aspx"); } protected void Button1_Click(object sender, EventArgs e) { string str = "insert into advertisementPackages values('" + TextBox1.Text + "')"; cmd = new SqlCommand(str, conn); conn.Open(); int r=cmd.ExecuteNonQuery(); if (r > 0) { Response.Write("Record Added"); } conn.Close(); } protected void Button2_Click(object sender, EventArgs e) { TextBox1.Text = ""; }
80
ENROL NO:-032643877
public partial class ListOfAdverPackages : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=;database=karan;uid=sa;pwd=;"); SqlCommand cmd; SqlDataAdapter da; SqlDataReader dr; DataSet ds = new DataSet(); protected void Page_Load(object sender, EventArgs e) { da = new SqlDataAdapter("select * from advertisementPackages", conn); if (!IsPostBack) { fill(); } } private void fill() { da.Fill(ds); DataGrid1.DataSource = ds.Tables[0]; DataGrid1.DataBind(); } protected void LinkButton2_Click(object sender, EventArgs e) { Response.Redirect("adminmenupage.aspx");
81
ENROL NO:-032643877
} }
82
ENROL NO:-032643877
public partial class updateadvertisementpackage : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=;database=karan;uid=sa;pwd=;"); SqlCommand cmd; SqlDataReader dr; string id1; protected void Page_Load(object sender, EventArgs e) { id1 = Request.QueryString["id"]; if (!IsPostBack) { id1 = Request.QueryString["id"]; string str = "select * from advertisementPackages where id='" + id1 + "'"; cmd = new SqlCommand(str, conn); conn.Open(); dr = cmd.ExecuteReader(); if (dr.Read()) { TextBox1.Text = dr["packagename"].ToString(); } conn.Close(); }
83
ENROL NO:-032643877
84
ENROL NO:-032643877
85
ENROL NO:-032643877
using System;
86
ENROL NO:-032643877
public partial class Adverpagedetail : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=;database=karan;uid=sa;pwd=;"); SqlCommand cmd; SqlDataAdapter da; SqlDataReader dr; DataSet ds = new DataSet(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("loginform.aspx"); } else { } } da = new SqlDataAdapter("select * from Adverpagedetail", conn); if (!IsPostBack) { fill(); } } private void fill() { da.Fill(ds); DataGrid1.DataSource = ds.Tables[0]; DataGrid1.DataBind(); } protected void LinkButton1_Click(object sender, EventArgs e) { Response.Redirect("adminmenupage.aspx"); } protected void LinkButton2_Click(object sender, EventArgs e) { Response.Redirect("advertisementmenu.aspx"); } protected void LinkButton3_Click(object sender, EventArgs e) { Response.Redirect("addadverpagedetail.aspx"); }
87
ENROL NO:-032643877
UPDATE RECORD :public partial class updateadverpagedetail : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=;database=karan;uid=sa;pwd=;"); SqlCommand cmd; SqlDataReader dr; string id1; protected void Page_Load(object sender, EventArgs e) { id1 = Request.QueryString["id"]; if (!IsPostBack)
88
ENROL NO:-032643877
id1 = Request.QueryString["id"]; string str = "select * from Adverpagedetail where id='" + id1 + "'"; cmd = new SqlCommand(str, conn); conn.Open(); dr = cmd.ExecuteReader(); if (dr.Read()) { TextBox1.Text = dr["pagedetail"].ToString(); } conn.Close();
} } protected void LinkButton1_Click(object sender, EventArgs e) { Response.Redirect("adminmenupage.aspx"); } protected void LinkButton2_Click(object sender, EventArgs e) { Response.Redirect("adverpagedetail.aspx"); } protected void Button1_Click(object sender, EventArgs e) { string upd = "update Adverpagedetail set pagedetail='" + TextBox1.Text + "' where id='" + id1 + "'"; cmd = new SqlCommand(upd, conn); conn.Open(); cmd.ExecuteNonQuery(); conn.Close(); }
89
ENROL NO:-032643877
90
ENROL NO:-032643877
protected void Button1_Click(object sender, EventArgs e) { com = new SqlCommand("insert into state values('" + TextBox1.Text + "')", con); con.Open(); int r = com.ExecuteNonQuery(); if (r > 0) { Label3.Text = "State is Inserted"; } con.Close(); } protected void Button2_Click(object sender, EventArgs e) { TextBox1.Text = ""; Label3.Text = ""; }
91
ENROL NO:-032643877
public partial class State_List_Page : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=.;database=karan;uid=sa;pwd=;"); DataSet ds = new DataSet(); SqlDataAdapter da; SqlDataReader dr;
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("LoginForm.aspx"); } } DataGrid1.AllowPaging = true; DataGrid1.PageSize = 4; da = new SqlDataAdapter("select * from state", con); if (!IsPostBack) { fill(); } } private void fill() { da.Fill(ds); DataGrid1.DataSource = ds.Tables[0]; DataGrid1.DataBind(); }
92
ENROL NO:-032643877
protected void DataGrid1_DeleteCommand(object source, DataGridCommandEventArgs e) { string str = DataGrid1.DataKeys[e.Item.ItemIndex].ToString(); string cmd = "delete from state where sid = '" + str + "'"; SqlCommand com = new SqlCommand(cmd, con); con.Open(); com.ExecuteNonQuery(); con.Close(); fill(); } protected void DataGrid1_PageIndexChanged(object source, DataGridPageChangedEventArgs e) { DataGrid1.CurrentPageIndex = e.NewPageIndex; fill(); } protected void DataGrid1_EditCommand(object source, DataGridCommandEventArgs e) { string str = DataGrid1.DataKeys[e.Item.ItemIndex].ToString(); string cmd = "select * from state where sid='" + str + "' "; SqlCommand com = new SqlCommand(cmd, con); con.Open(); dr = com.ExecuteReader(); string var = " "; while (dr.Read()) { var = dr["sid"].ToString(); } Response.Redirect("updatestate.aspx?var=" + var); con.Close(); } }
UPDATE STATE :public partial class Updatestate : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=.;database=karan;uid=sa;pwd=;"); SqlCommand com; SqlDataReader dr; string str; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) {
93
ENROL NO:-032643877
str = Request.QueryString["var"]; if (!IsPostBack) { string cmd = "select * from state where sid='" + str + "'"; com = new SqlCommand(cmd, con); con.Open(); dr = com.ExecuteReader(); while (dr.Read()) { TextBox1.Text = dr["state"].ToString(); } con.Close(); } } protected void Button1_Click(object sender, EventArgs e) { string cmd = "update state set state ='" + TextBox1.Text + "' where sid='" + str + "'"; com = new SqlCommand(cmd, con); con.Open(); dr = com.ExecuteReader(); con.Close(); } protected void Button2_Click(object sender, EventArgs e) { TextBox1.Text = ""; }}
94
ENROL NO:-032643877
public partial class Addcity : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=.;database=karan;uid=sa;pwd=;"); SqlDataReader dr; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("LoginForm.aspx"); } } string str = "select state from state"; SqlCommand com = new SqlCommand(str, con); con.Open(); dr = com.ExecuteReader(); while (dr.Read()) { DropDownList1.Items.Add(dr["state"].ToString()); } con.Close();
} protected void Button1_Click(object sender, EventArgs e) { string str = "insert into city values ('" + DropDownList1.SelectedValue + "','" + TextBox1.Text + "')"; SqlCommand com = new SqlCommand(str, con); con.Open(); dr = com.ExecuteReader(); con.Close(); } protected void Button2_Click(object sender, EventArgs e) { DropDownList1.Items.Clear(); TextBox1.Text = ""; } }
Code for CityList Page EDIT & DELETE:NAME :- KARUNA KANT 95 ENROL NO:-032643877
public partial class CityList : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=.;database=karan;uid=sa;pwd=;"); SqlDataAdapter da; SqlDataReader dr; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("LoginForm.aspx"); } } DataGrid1.AllowPaging = true; DataGrid1.PageSize = 2; da = new SqlDataAdapter("select * from city", con); DataSet ds = new DataSet(); da.Fill(ds); DataGrid1.DataSource = ds.Tables[0]; DataGrid1.DataBind(); } protected void fill() { da = new SqlDataAdapter("select * from city", con); DataSet ds = new DataSet(); da.Fill(ds); DataGrid1.DataSource = ds.Tables[0]; DataGrid1.DataBind();
96
ENROL NO:-032643877
UPDATE CITY:public partial class Updatecity : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=.; database = karan; uid=sa;pwd=;"); SqlDataReader dr; string str; SqlCommand com; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack)
97
ENROL NO:-032643877
} string sql = "select state from city"; com = new SqlCommand(sql, con); con.Open(); dr = com.ExecuteReader(); while (dr.Read()) { DropDownList1.Items.Add(dr["state"].ToString()); } con.Close(); str = Request.QueryString["sim"]; if (!IsPostBack) { string cmb = "select * from city where cid = '" + str + "'"; com = new SqlCommand(cmb, con); con.Open(); dr = com.ExecuteReader(); while (dr.Read()) { DropDownList1.SelectedValue = dr["state"].ToString(); TextBox1.Text = dr["city"].ToString(); } con.Close(); } } protected void Button1_Click(object sender, EventArgs e) { String str1 = Request.QueryString["sim"]; string str2 = "update city set state='" + DropDownList1.SelectedValue + "',city='" + TextBox1.Text + "'where cid='" + str1 + "'"; com = new SqlCommand(str2, con); con.Open(); dr = com.ExecuteReader(); con.Close(); } protected void Button2_Click(object sender, EventArgs e) { TextBox1.Text = ""; DropDownList1.Items.Clear(); }
98
ENROL NO:-032643877
using using using using using using using using using using using
System; System.Data; System.Data.SqlClient; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;
public partial class AddFeature : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=.;database=karan;uid=sa;pwd="); SqlCommand com; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("LoginForm.aspx"); } } } protected void Button1_Click(object sender, EventArgs e) {
99
ENROL NO:-032643877
100
ENROL NO:-032643877
101
ENROL NO:-032643877
102
ENROL NO:-032643877
while (dr.Read()) { TextBox1.Text = dr["hf_feature"].ToString(); } con.Close(); } } protected void Button1_Click(object sender, EventArgs e) { string cmd = "update hotelfeature set hf_feature ='" + TextBox1.Text + "' where hf_id='" + str + "'"; com = new SqlCommand(cmd, con); con.Open(); dr = com.ExecuteReader(); con.Close(); } }
103
ENROL NO:-032643877
using using using using using using using using using using using
System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls; System.Data.SqlClient;
public partial class homepage : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=.;database=karan;uid=sa;pwd=;"); SqlDataAdapter da; DataSet ds = new DataSet(); public int i; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) {
104
ENROL NO:-032643877
if (Request.Cookies ["add12"] == null) { i = 0; } else { i = 1; } if (i == 0) { SqlCommand cmd = new SqlCommand("delete from temp1", conn); conn.Open(); cmd.ExecuteNonQuery(); conn.Close(); i = 1; } } da = new SqlDataAdapter("select * from category", conn); da.Fill(ds); DataGrid1.DataSource = ds.Tables[0]; DataGrid1.DataBind(); //ds.Clear(); //string str = "select top 8 * from package order by cost desc"; //da = new SqlDataAdapter(str, conn); //da.Fill(ds); //DataList1 .DataSource = ds.Tables[0]; //DataList1 .DataBind();
} {
protected void DataGrid1_ItemCommand(object source, DataGridCommandEventArgs e) SqlConnection con = new SqlConnection("server=.;database=karan;uid=sa;pwd=;"); DataSet ds1 = new DataSet(); int i = 0; i = Convert.ToInt32(DataGrid1.DataKeys[e.Item.ItemIndex].ToString()); string str = "select * from package where id=" + i + ""; da = new SqlDataAdapter(str, conn); da.Fill(ds1); DataGrid dt = (DataGrid)e.Item.FindControl("DataGrid2"); dt.DataSource = ds1.Tables[0]; dt.DataBind(); // Response.Write(i.ToString());
105
ENROL NO:-032643877
} protected void ImageButton2_Click(object sender, ImageClickEventArgs e) { } protected void LinkButton2_Click(object sender, EventArgs e) { } protected void ImageButton2_Click1(object sender, ImageClickEventArgs e) { } protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { } protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e) { //int i=Convert .ToInt32 (DataList1.DataKeys [e.Item.ItemIndex]); //Response.Redirect("pagediscription.aspx?id="+i); } protected void LinkButton6_Click(object sender, EventArgs e) { Response.Redirect("search.aspx"); }
106
ENROL NO:-032643877
<html> <head runat="server"> <title>TOURIST HOLIDAY PLACES</title> <script language="javascript"> window.history.forward(1); </script> </head> <body bgcolor="#e8e6c8"> <form id="form1" runat="server"> <div> <asp:Label ID="Label1" runat="server" Font-Size="X-Large" Style="z-index: 100; left: 71px; position: absolute; top: 150px" Text="About Us" FontBold="True" Font-Italic="True"></asp:Label> <asp:Label ID="Label2" runat="server" Style="z-index: 101; left: 99px; position: absolute; top: 206px" Text="Tourist Holiday Places,is a proactive travel organization in tourism.We are a professionally managed all the Requirement for coustmer the first generation promoter entrepreneurs.Tourist hloiday Location Service team has a cumulative experience of in tourism industry. The team is well aware and equipped to cater to requirements of various market segments and understands the nuances of tourism in India.travelers to provide you unparalleled power for planning your next holiday. You can find: guest feedback on hotels. These days Internet is a very popular mode of communication because most of the people are computer literate.
107
ENROL NO:-032643877
Code :<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>TOURIST HOLIDAY PLACES</title> <script language="javascript"> window.history.forward(1); </script> </head> <body bgcolor="#e8e6c8"> <form id="form1" runat="server"> <div> <asp:Label ID="Label1" runat="server" Font-Size="X-Large" Style="z-index: 100; left: 76px; position: absolute; top: 130px" Text="Contact Us"></asp:Label> <asp:LinkButton ID="LinkButton1" runat="server" Style="z-index: 101; left: 132px; position: absolute; top: 188px">contacts :- KARUNA KANT,EMail :- karunakant99@gmail.com ,For any query you can contact Me on this MOBILE NO. 0-9868600355</asp:LinkButton>
108
ENROL NO:-032643877
using using using using using using using using using using using
System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls; System.Data.SqlClient;
public partial class search : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=.;database=karan;uid=sa;pwd=;"); SqlCommand cmd; DataSet ds = new DataSet(); SqlDataReader dr; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string str1 = "select * from package"; cmd = new SqlCommand(str1, conn); conn.Open(); dr = cmd.ExecuteReader();
109
ENROL NO:-032643877
} protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { string str1 = "select * from package where packagename='" + DropDownList1.SelectedItem + "'"; cmd = new SqlCommand(str1, conn); conn.Open(); dr = cmd.ExecuteReader(); string str2 = ""; if (dr.Read()) { str2 = dr["packageid"].ToString(); } Response.Redirect("pagediscription.aspx?id=" + str2); conn.Close(); }}
110
ENROL NO:-032643877
TESTING
METHODOLOGY USED FOR TESTING:-
Testing is the process of running a system with the intention of finding errors. Testing enhances the integrity of a system by detecting deviations in design and errors in the system. Testing aims at detecting error-prone areas. This helps in the prevention of errors in a system. Testing also adds value to the product by conforming to the requirements. The development of software systems involves a series of production activities where opportunities for injection of human fallibility are enormous. Errors may begin to occur at every inception of the process where the objectives may be erroneously or imperfectly specified as well as later design and development stages. Because of human inability to perform and communicate with perfection, software development is accompanied by quality assurance activity. Software testing is a critical element of software quality assurance and represents the ultimate review of specification, design and coding. Testing Objectives: Software reliability: - System must be reliable that can perform critical tasks correctly. Software quality: - Software quality is characterized by the correctness of program logic and implementation. It begins with testing the software during development. Price of non-conformance:- The main purpose of testing is to detect errors and error-prone areas in a system. Testing must be thorough and well planned. A partially tested system is as well as untested system. And the price of an untested and under- tested system is high. TESTING STRATEGIES :NAME :- KARUNA KANT 111 ENROL NO:-032643877
A Software testing strategy provides a road map for the software Developer, the Quality Assurance Organization, and the customer-a road map that describes the steps to be conducted as part of testing. Any testing strategy must incorporate test planning, test case design test execution, and the resultant data collection and evaluation. A number of software testing strategies have been proposed in the literature. All provides the software developer with a template for testing and all have the following generic characteristics:UNIT TESTING: Unit testing focuses verification effort on the smallest unit of software design the module. The unit test is always White box-oriented, and the steps can be conducted in parallel for multiple modules. INTEGRATION TESTING: Integration testing addresses the issues associated with the dual problems of verification and program construction. Black box test case design techniques are the most prevalent during integration, although a limited amount of White box testing may be used to ensure coverage of major control paths. VALIDATION TESTING: Validation testing provides the final assurance that software meets all functional, behavioral, and performance requirements. Black box testing techniques are used exclusively during validation.
112
ENROL NO:-032643877
If software is developed as a product to be used by many customers, it is impractical to perform formal acceptance tests with each one. Most software product builders use a process called Alpha and Beta testing to uncover errors that only the end user seems able to find. A customer conducts the Alpha Test at the developers site. The Beta test is conducted at one or more customer site by the end user of the software SYSTEM TESTING:System testing tests the flow of data through to the entire system. Data flows from the table were checked. This also includes the preparation of test, checking the entire system with this data to see if all the requirements are met and the system performs as specified by the requirements. The system being developed will follow Bottom Up approach of Testing where each Functional unit will be independently tested and then the Integrated testing of the Module or Sub Module will be done. TEST CASE DESIGN : The design of tests can be challenging as the initial design of the product itself .Testing design tests that have the highest likelihood of finding the most errors with a minimum amount of time and effort. White Box and Black Box Testing Techniques White Box Testing Complete path Testing Branch or Decision Condition Testing Data Flow Testing Loop Testing WHITE BOX TESTING: Black Box Testing Equivalence Partitioning Boundary Value Analysis Cause Effect Graphing Syntax Testing
113
ENROL NO:-032643877
White box testing is a test case design method that uses the control structure of the procedural design to derive test cases .using white box testing methods, the software engineer can derive test cases that guarantee that all independent paths within a module have been exercised at least once, , exercise all logical decisions on their true and false sides , execute all loops at their boundaries and within their operational bounds, and exercise internal data structures to ensure their validity. BLACK BOX TESTING: Black box testing methods focus on the functional requirements of the software. That is, black box testing enables the software engineer to derive sets of input conditions that will fully exercise all functional requirements for a program. This approach is likely to uncover different class of errors than white box methods. Black box testing attempts to find errors in the following categories: incorrect or missing functions, interface errors, Errors in data structures or external database access, Performance errors, and Initialization and termination errors.
Unlike white box testing, which is performed early in the testing process, black box testing tends to be applied during later design. Tests are designed to answer the following questions: How is functional validity tested? What classes of input will make good test case? Is the system particularly sensitive to certain input values? How are the boundaries of a data class isolated? What data rate and data volume can the system tolerate?
INPUTS AND OUTPUT SCREENS :NAME :- KARUNA KANT 114 ENROL NO:-032643877
Reports generation is very important as they convey a lot of information. That is help full in further decision making. The reports that will be generated by the system will be based on various criteria like:
115
ENROL NO:-032643877
INPUTS SCREENS :-
116
ENROL NO:-032643877
ADD CATEGORY.
117
ENROL NO:-032643877
118
ENROL NO:-032643877
119
ENROL NO:-032643877
120
ENROL NO:-032643877
121
ENROL NO:-032643877
ADDING HOTEL
122
ENROL NO:-032643877
123
ENROL NO:-032643877
124
ENROL NO:-032643877
OUTPUT SCREENS :-
125
ENROL NO:-032643877
126
ENROL NO:-032643877
CATEGORY DELETED.
127
ENROL NO:-032643877
PACKAGE DELETED.
128
ENROL NO:-032643877
LIST OF ADVERPACKAGE
129
ENROL NO:-032643877
130
ENROL NO:-032643877
131
ENROL NO:-032643877
132
ENROL NO:-032643877
133
ENROL NO:-032643877
134
ENROL NO:-032643877
HOME PAGE
135
ENROL NO:-032643877
CONTACT US.
136
ENROL NO:-032643877
137
ENROL NO:-032643877
IMPLEMENTATION OF SECURITY: Security is critical in system development. The amount of protection depends on the sensitive of the data, the reliability of the user and complexity of the user of the system. There are three categories of control in data security:I. Physical security. II. Database Integrity. III. Control measurements (Password, encryption). Potential threats to system security include errors and omissions and employees. Errors and omission cause the most damage. However, Password is the most commonly used means for authenticating the identify of people. Password should be hard to guess and easy to remember. They should not be recoverable except from the mind of the password holder. The process of accepting a password should not permit the recovery of passwords. Many user copies down a difficulty password or given passwords to associates, making them subject to potential unauthorized access. Experience has shown that many illicitly entities to system are due to critter password. If a password is written, it is no longer a password. In this project I had given the password security. If password is correct the project work continues other wise it gives error Plz Enter the correct Userid & Password.
138
ENROL NO:-032643877
LIMITATIONS OF PROJECT :This project will be developed on Windows environment using C # Language & Asp.net Tools. For back end we used Ms-Sql 2000 database. Using this we will generate database for this project. This will not be run on the UNIX & Dos plate form. These will not used online now, but in the future we can do this. This is the limitations of this project.
It will not run any other environment like Dos, UNIX, Linex.
139
ENROL NO:-032643877
FUTURE APPLICATION OF THE PROJECT :THE FUTURE SCOPE OF THIS PROJECT IS AS FOLLOWS:-
This project is further developing to add more facility. The system is highly flexible one and is well efficient to make easy interactions with the client. The key focus is given on data security, as the project is online and will be transferred in network. The speed and accuracy will be maintained in a proper way. This will be a user-friendly one and can successfully overcome strict and severe validation checks. The system will be a flexible one and changes whenever can be made easy. Using the facility and flexibility in .NET and SQL, the software can be developed in a neat and simple manner there by reducing the operator's work. Since the project is developed in .NET as a front-end and SQL as a back-end it can be modified easily and used for a long period.
CONCLUSION Working on the project was good experience. I understand the importance of Planning and designing as a part of software development. But its very difficult to complete the program for single person. Developing the project has helped us some experience on real-time development Procedures.
10. BIBLIOGRAPHY
NAME :- KARUNA KANT 140 ENROL NO:-032643877
Software Engineering Pressman , McGRAW HILL Software Engineering Pankaj Jalote. Beginning Asp.Net 2005 wrox Visual Basic .NET programming-Steven Holzner
An Introduction to Database Systems koarth Microsoft SQL SERVER 2000 Ronald R. Talmage Relational Database System Bipin c.Desai
Websites Referred:
141
ENROL NO:-032643877