Sunteți pe pagina 1din 141

TOURIST HOLIDAY PLACES

TOURIST HOLIDAY PLACES


DEVLOPED BY NAME: - KARUNA KANT ENROLMENT NO:-032643877 UNDER GUIDANCE NAME: - PRITAM DAS

Submitted to the School of Computer and Information Sciences, In partial fulfillment of the requirements For the degree of

Master of Computer Applications (MCA)

Indira Gandhi National Open University


Maidan Garhi, New Delhi -110068

NAME :- KARUNA KANT

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

NAME :- KARUNA KANT

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

NAME :- KARUNA KANT

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

NAME :- KARUNA KANT

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

1. TITLE OF THE PROJECT

NAME :- KARUNA KANT

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

Time Effective and Cost

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

Database Creation Mobility

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.

Informative Wide Approach Security

Flexible .

PURPOSE, SCOPE , APPLICABILITY:-

NAME :- KARUNA KANT

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.

3. (SURVEY OF TECHNOLOGIES):NAME :- KARUNA KANT 7 ENROL NO:-032643877

TOURIST HOLIDAY PLACES

INPUT TO THE PROJECT


There are many situations in which initial software requirements are reasonably well defined but overall scope of the development efforts reduces a purely linear process. In addition, there may be a complete need to provide a limited set of software functionally to user quickly and then refine and expand that functionality in later software releases. In such cases, methodology that is designs to produce software in increments is chosen. Module employed in this project is incremental model since the basic requirement will be addressed first and then the enhancements will be done, if necessary. It provides the potential for rapid development of incremental versions of software in a series of incremental versions of software. During the early iterations, the incremental release might be a proper model or prototype. During the later iterations increasingly more versions of the engineering system produced.

For Admin Menu Page


Adding Category Adding State Adding City Adding Packages Advertisement About Hotel Feature

For User Page


Home Category Sub Category Search About Us Contact Us

NAME :- KARUNA KANT

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Main Module

User/Admin

Tourist Holiday Places

Users get required packages with complete details of Places,hotel.

Admin Manages registered users and Update site regularly.

Registration Module

REGISTRATION New user Existing User

Tourist Holiday Places

Reports ( No of users Registered )

Search Result New user Existing User

NAME :- KARUNA KANT

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

Represents Close Database

Represents Open Table

NAME :- KARUNA KANT

10

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Level-1 DFD:-

Admin/ User

Our product Tourist Holiday Places

Manages all activities/get holiday packages of their choice

Level-2 DFD (Admin Module):-

Add/ Modify categor y

Admin

Login

Modify/ Update Site

Add/ Modify Advertise -ment

Log Out

Update record

Verify register user

Updated Site

Level-2 DFD (User Module):NAME :- KARUNA KANT 11 ENROL NO:-032643877

TOURIST HOLIDAY PLACES

User

Search Tour

Tour Foun d

Add To Cart

Tour not found

Continue Searching

Check Out

New user fill Form for Registration

Registered user login

Select Mode of Payment

Exit

Form Submitted To admin

User/ Payments Details are reviewed by user

Logout

NAME :- KARUNA KANT

12

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Flow Chart :User


Search Tour Place

Yes

Tour Place Found

No

Add To Cart Continue Search? Yes

No

Want to Checkout

Yes Yes
Registe r User ?

No

Login

Fill the Form For Registration

No

Select Mode Of Payment

Yes

Continu e Search?

No Logout/Exit

NAME :- KARUNA KANT

13

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Start

User name & password

Checking Details for tour Places

No
Is correc t

Yes

Accept the Details

Enter the Details

Acce pt

Details

Pro ces sing

Out put
Stop

NAME :- KARUNA KANT

14

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

NAVIGATIONAL FLOW CHART


It would be helpful if you could provide us with a navigational flow chart for your website. This is very much in the format of a family tree with your home page at the top of the tree/chart with branches/links to all other pages and then sub pages Ne w use r No Make Registration

Start

Login in with password & user name Search the holiday places

if found the place

No

Logout

Booking hotel See Feature

mode of payment

NAME :- KARUNA KANT

15

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

It represents relationship sets.

User name

Passwor Password d

Users

Logi n
Search

Valid user Valid User


Adding Category

Modifying the details

Adding State, city

Adding Package

Transactions Task Four tourist holiday places

Perfor m

NAME :- KARUNA KANT

16

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

NAME :- KARUNA KANT

17

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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:

For Admin Menu Page


Showing the Category Showing the State Showing the City Showing the Packges Adevertismenmt About Hotel Feature (Edit / Delete /Cancle) (Edit / Delete /Cancle) (Edit / Delete /Cancle) (Edit / Delete /Cancle) (Edit / Delete /Cancle) (Edit / Delete /Cancle)

For User Page


Showing the Home page Showing the Category List Page. Sub Category Search About us Contact Us (Home page for this project) (All the information about category) (User can select Category from homepage) (we can search all Packages ) (About Project Detail) (Contact Person Who Make the WebSite)

NAME :- KARUNA KANT

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

NAME :- KARUNA KANT

19

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

NAME :- KARUNA KANT

20

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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:-

NAME :- KARUNA KANT

21

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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 :-

NAME :- KARUNA KANT

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.

There are some limitations of this project which are as follows :-

It will run only Windows environment like windows 2000, XP.

It will not run any other environment like Dos, UNIX, Linex.

The work of printer will not be done with this project.

It will generate only its related future.

Work will done only on .net environment not other.

TOOLS/PLATFORMS , LANGUAGES TO BE USED :-

NAME :- KARUNA KANT

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

NAME :- KARUNA KANT

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.

NAME :- KARUNA KANT

25

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

SOFTWARE / HARDWARE REQUIREMENTS :-

Hardware specification :Server:


Processor RAM HDD

: : :

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 :-

Operating System Web Browser Development Tools Database

Windows 2000, XP, NT IE4 or Netscape 4x or upwards. ASP.NET, C#, HTML, DHTML, JavaScript Microsoft SQL Server 2000

SCOPE OF FUTURE APPLICATION :-

NAME :- KARUNA KANT

26

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

TOURIST HOLIDAY PLACES

Software Engineering Pressman , McGRAW HILL Software Engineering Pankaj Jalote. Beginning Asp.Net 2005 wrox Programming asp.NET (Microsoft press) Francesco Balena

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:

www.msden.microsoft.com www.asp.net www.microsoft.com www.mysql.com www.dotnetspider.com

NAME :- KARUNA KANT

28

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

NAME :- KARUNA KANT

29

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

NAME :- KARUNA KANT

30

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

Future Scope of Project

Bibliography

NAME :- KARUNA KANT

31

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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.

NAME :- KARUNA KANT

32

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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.

NAME :- KARUNA KANT

33

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

Time Effective and Cost

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

Database Creation Mobility

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.

Informative Wide Approach Security

Flexible .

NAME :- KARUNA KANT

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.

NAME :- KARUNA KANT

35

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

3. TOOLS / ENVIRONMENT USED : Hardware specification :Server:


Processor RAM HDD

: : :

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 :-

Operating System Web Browser Development Tools Database

Windows 2000, XP, NT IE4 or Netscape 4x or upwards. ASP.NET, C#, HTML, DHTML, JavaScript Microsoft SQL Server 2000

NAME :- KARUNA KANT

36

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

NAME :- KARUNA KANT

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.

NAME :- KARUNA KANT

38

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

SOFTWARE REQUIREMENT SPECIFICATION


The software requirement specification is an analysis task. The function and performance allocated to software as part of system engineering are refined by establishing a complete information description, as a detailed functional description, a representation of system behavior, an indication of performance Requirement and design constraints, appropriate validation criteria, and other information are required. Software requirement specification states the goal and objectives of the software, describing it in the context of computer based system. In software requirement specification provides a detailed description of the problem that the software must be solved. Information content flow and structure are documented. Hardware & software and human interfaces are described for external system element and internal system elements. A description of each function required to solve the problem is presented in the functional description. A processing narrative is provided for each function, design, constraints are stated and justified performance characteristics are stated and one or more diagrams are included to graphically represent the overall structure of the software and interplay among software functions and other system element. The specification examines the operations of the software as a consequence of external events and internally generated control characteristics. A validation criterion is probably the most important and ironically, the most often neglected section of the software requirement specification. How do we recognize a successful implementation? What classes of tests must be conducted to validate function, performance, and constraints? We neglect this section because completing it demands a through understanding of software requirement something that we often do not have at this stage. Finally the specification includes a bibliography and appendix. The bibliography contains references to all documents that relate to the software. These include other software engineering documentation, technical references, vendor literature and standards. The appendix contains information that supplements the specifications. Tabular data, detailed description of algorithms, chart, graphs, graphs and other materials are presented as appendixes.

NAME :- KARUNA KANT

39

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

NAME :- KARUNA KANT

40

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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.

NAME :- KARUNA KANT

41

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

4. Analysis Document :Requirement Analysis


:- The aim of the requirement analysis is to understand the exact requirement of the customer and to document them properly. This is a very important of the customer that they get very easy function to find his holiday places. This is a very important phase of the web site to find any error in this phase affect all the subsequent phase of development. There are many basic questions pertaining of the project such, as the following should understand clearly. What the Problem? What is it important top solve the problem? What are the possible solutions to the problem? What exactly is the data input to the system and what exactly is the data output by the system? What are the living complexities that might arise while solving the problem. In this project (TOURIST HOLIDAY PLACES). The main Concern are 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. These all work will be done by provide update machine information when required because, All the 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.

NAME :- KARUNA KANT

42

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

It represents relationship sets.

NAME :- KARUNA KANT

43

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

User name

Passwor Password d

Users

Logi n
Search

Valid user Valid User


Adding Category

Modifying the details

Adding State, city

Adding Package

Transactions Task Four tourist holiday places

Perfor m

NAME :- KARUNA KANT

44

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

NAME :- KARUNA KANT

45

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Main Module

User/Admin

Tourist Holiday Places

Users get required packages with complete details of Places,hotel.

Admin Manages registered users and Update site regularly.

Registration Module

REGISTRATION New user Existing User

Tourist Holiday Places

Reports ( No of users Registered )

Search Result New user Existing User

NAME :- KARUNA KANT

46

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

Represents Close Database

Represents Open Table

NAME :- KARUNA KANT

47

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Level-1 DFD:-

Admin/ User

Our product Tourist Holiday Places

Manages all activities/get holiday packages of their choice

Level-2 DFD (Admin Module):-

Add/ Modify categor y

Admin

Login

Modify/ Update Site

Add/ Modify Advertise -ment

Log Out

Update record

Verify register user

Updated Site

NAME :- KARUNA KANT

48

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Level-2 DFD (User Module):User Search Tour Tour Foun d Add To Cart

Tour not found

Continue Searching

Check Out

New user fill Form for Registration

Registered user login

Select Mode of Payment

Exit

Form Submitted To admin

User/ Payments Details are reviewed by user

Logout

NAME :- KARUNA KANT

49

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Flow Chart :User


Search Tour Place

Yes

Tour Place Found

No

Add To Cart Continue Search? Yes

No

Want to Checkout

Yes Yes
Registe r User ?

No

Login

Fill the Form For Registration

No

Select Mode Of Payment

Yes

Continu e Search?

No Logout/Exit

NAME :- KARUNA KANT

50

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Start

User name & password

Checking Details for tour Places

No
Is correc t

Yes

Accept the Details

Enter the Details

Acce pt

Details

Pro ces sing

Out put
Stop

NAME :- KARUNA KANT

51

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

NAVIGATIONAL FLOW CHART


It would be helpful if you could provide us with a navigational flow chart for your website. This is very much in the format of a family tree with your home page at the top of the tree/chart with branches/links to all other pages and then sub pages Ne w use r No Make Registration

Start

Login in with password & user name Search the holiday places

if found the place

No

Logout

Booking hotel See Feature

mode of payment

NAME :- KARUNA KANT

52

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

NAME :- KARUNA KANT

53

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

NAME :- KARUNA KANT

54

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

PROGRAM CODE :-

NAME :- KARUNA KANT

55

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Code for Login Form :-

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");

NAME :- KARUNA KANT

56

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


} else {

Response.Write("Plz Enter Valid UserID & Password"); } dr.Close(); } }

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"

NAME :- KARUNA KANT

57

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


Height="16px" Style="z-index: 104; left: 408px; position: absolute; top: 40px" Text="TOURIST HOLIDAY PLACES" Width="384px"></asp:Label>

Code for Registration Form :-

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();

NAME :- KARUNA KANT

58

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


if(i>0) { } } protected void ImageButton2_Click(object sender, ImageClickEventArgs { TxtUserid.Text = ""; Txtpwd1.Text = ""; Txtpwd2.Text = ""; txtfname.Text = ""; txtlname.Text = ""; txtemail.Text = ""; txtmobile.Text = ""; Response.Write("New User Created Sucessfully");

e)

Code for AdminMenu Form :-

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;

NAME :- KARUNA KANT

59

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


public partial class Admin_Menu_Page : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("LoginForm.aspx"); } } Label2.Text = Session["User"].ToString();

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

Code for AddCategory Form :-

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;

NAME :- KARUNA KANT

60

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; public partial class AddCategory : 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 Button2_Click(object sender, EventArgs e) { TextBox2.Text = ""; TextBox3.Text = ""; Label6.Text = ""; Image1.ImageUrl = ""; } protected void Button1_Click(object sender, EventArgs e) { string filepath = Server.MapPath("image"); string imgurl = filepath + "\\" + FileUpload1.FileName; FileUpload1.PostedFile.SaveAs(imgurl); com=new SqlCommand("insert into category values('"+TextBox2.Text+"','"+TextBox3.Text+"','"+imgurl+"')",con); con.Open(); int i=com.ExecuteNonQuery(); if(i>0) { Label6.Text="Category Saved Sucessfully"; } else { } } protected void LinkButton1_Click1(object sender, EventArgs e) { Response.Redirect("CategoryList.aspx"); } } Label6.Text = "Category is not Saved Sucessfully";

NAME :- KARUNA KANT

61

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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" />

Code for CategoryList Form :-

using System; using System.Data; using System.Data.SqlClient;

NAME :- KARUNA KANT

62

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


using using using using using using using using 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 _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();

NAME :- KARUNA KANT

63

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


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 category where cid='" + str + "'"; //SqlCommand com = new SqlCommand(cmd, con); //con.Open(); //SqlDataReader dr = com.ExecuteReader(); //string id = " "; //string cnam = " "; //while (dr.Read()) //{ // id = dr["cid"].ToString(); // cnam = dr["cname"].ToString(); //} ////Response.Write(id); //Response.Write(cnam); Response.Redirect("Updatecategory.aspx?id="+str); //Response.Redirect("Updatecategory.aspx?cnam="+cnam); // con.Close(); } protected void DataGrid1_SelectedIndexChanged(object sender, EventArgs e) { } }

NAME :- KARUNA KANT

64

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Code for Updateing Category Form :-

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"); } }

NAME :- KARUNA KANT

65

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


string str = Request.QueryString["id"];

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"; } }

NAME :- KARUNA KANT

66

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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" />

Code for Deleteing Category Form :-

using using using using using using using

System; System.Data; System.Data.SqlClient; System.Configuration; System.Collections; System.Web; System.Web.Security;

NAME :- KARUNA KANT

67

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


using using using using 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) { 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='<

Source side change :-

<asp:Image ID="Image1" runat="server" Height="90px" %#Eval("image1")%>' />

NAME :- KARUNA KANT

68

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Code for Add Package :-

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)

NAME :- KARUNA KANT

69

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


{

if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("loginform.aspx"); } else { }

} 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

NAME :- KARUNA KANT

70

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


xt+"','"+TextBox7.Text+"','"+TextBox8.Text+"','"+TextBox4.Text+"',' "+TextBox5.Text+"','" + imgurl + "')"; cmd = new SqlCommand(ins, conn); conn.Open(); cmd.ExecuteNonQuery(); conn.Close(); Image1.ImageUrl = imgurl;

} 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>

NAME :- KARUNA KANT

71

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


</asp:DropDownList> <asp:FileUpload ID="FileUpload1" runat="server" onchange="show()" Style="z-index: 125; left: 173px; position: absolute; top: 388px" Width="177px" />

Code for PackageList :-

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) {

NAME :- KARUNA KANT

72

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("loginform.aspx"); } else { } } if (!IsPostBack) { string str = "select * from category"; cmd = new SqlCommand(str, conn); conn.Open(); dr = cmd.ExecuteReader(); while (dr.Read()) { DropDownList1.Items.Add(dr["categoryname"].ToString()); } conn.Close(); } da = new SqlDataAdapter("select packagename,noofdays,cost,numberofperson,insertpicture from package", 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("loginform.aspx"); } protected void LinkButton3_Click(object sender, EventArgs e) { Response.Redirect("adminmenupage.aspx"); } protected void LinkButton1_Click(object sender, EventArgs e) { string str = "select * from category where categoryname='"+DropDownList1 .SelectedItem+"'"; cmd = new SqlCommand(str, conn); conn.Open(); dr = cmd.ExecuteReader(); string id1 = ""; string name = ""; string param = ""; while (dr.Read()) { id1 = dr["id"].ToString();

NAME :- KARUNA KANT

73

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


name = dr["categoryname"].ToString(); param = "categoryname=" + name + "&&" + "id=" + id1; } conn.Close(); Response.Redirect("addpackages.aspx?"+param);

} {

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();

NAME :- KARUNA KANT

74

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


<ItemTemplate> <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("insertpicture") %>' /> </ItemTemplate>

Code for UpDate & Delete Package:-

Delete Package from Package List From


public partial class updatepackage : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=;database=karan;uid=sa;pwd=;"); SqlDataReader dr; SqlCommand cmd;

NAME :- KARUNA KANT

75

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


DataSet ds = new DataSet(); string id1=""; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("loginform.aspx"); } else { } } id1 = Request.QueryString["id"]; if (!IsPostBack) { id1 = Request.QueryString["id"]; string str = "select * from package where packageid='" + id1 + "'"; cmd = new SqlCommand(str, conn); conn.Open(); dr = cmd.ExecuteReader(); if (dr.Read()) { TextBox1.Text = dr["packagename"].ToString(); TextBox2.Text = dr["details"].ToString(); DropDownList1.SelectedValue = dr["noofdays"].ToString(); TextBox3.Text = dr["cost"].ToString(); TextBox4.Text = dr["numberofperson"].ToString(); Calendar1.SelectedDate = Convert.ToDateTime(dr["startdate"]); Calendar2.SelectedDate = Convert.ToDateTime(dr["enddate"]); Image1.ImageUrl = dr["insertpicture"].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 LinkButton3_Click(object sender, EventArgs e) { Response.Redirect("listpackages.aspx"); } protected void Button2_Click(object sender, EventArgs e) { string imgurl = "";

NAME :- KARUNA KANT

76

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


string upd=""; if (FileUpload1.FileName != "") { string filepath = Server.MapPath("image"); imgurl = filepath + "\\" + FileUpload1.FileName; FileUpload1.PostedFile.SaveAs(imgurl); Image1.ImageUrl = imgurl; upd = "update package set packagename='" + TextBox1.Text + "',details='" + TextBox2.Text + "',noofdays='" + DropDownList1.Text + "',cost='" + TextBox3.Text + "',numberofperson='" + TextBox4.Text + "',startdate='" + Calendar1.SelectedDate + "',enddate='" + Calendar2.SelectedDate + "',insertpicture='" + imgurl + "' where packageid='" + id1 + "'"; } else { upd = "update package set packagename='" + TextBox1.Text + "',details='" + TextBox2.Text + "',noofdays='" + DropDownList1.Text + "',cost='" + TextBox3.Text + "',numberofperson='" + TextBox4.Text + "',startdate='" + Calendar1.SelectedDate + "',enddate='" + Calendar2.SelectedDate + "' where packageid='" + id1 + "'"; } cmd = new SqlCommand(upd, conn); conn.Open(); int r = cmd.ExecuteNonQuery(); if (r > 0) { Response.Write("Record Updated"); } else { Response.Write("Record Not Updated"); } conn.Close(); } protected void Button1_Click(object sender, EventArgs e) { TextBox1.Text = ""; TextBox2.Text = ""; DropDownList1.Text = ""; TextBox3.Text = ""; TextBox4.Text = ""; } }

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() {

NAME :- KARUNA KANT

77

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


var v=document.getElementById("FileUpload1").value; document.getElementById("Image1").src=v; </script> </head> <asp:DropDownList ID="DropDownList1" runat="server" Style="z-index: 114; left: 803px; position: absolute; top: 157px" Width="152px"> <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:DropDownList> <asp:Calendar ID="Calendar1" runat="server" Style="z-index: 116; left: 166px; position: absolute; top: 257px" BackColor="#FFFFCC" BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana" FontSize="8pt" ForeColor="#663399" Height="113px" ShowGridLines="True" Width="167px"> <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" /> <TodayDayStyle BackColor="#FFCC66" ForeColor="White" /> <SelectorStyle BackColor="#FFCC66" /> <OtherMonthDayStyle ForeColor="#CC9966" /> <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" /> <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" /> <TitleStyle BackColor="#990000" Font-Bold="True" FontSize="9pt" ForeColor="#FFFFCC" /> </asp:Calendar> <asp:Calendar ID="Calendar2" runat="server" Style="z-index: 117; left: 507px; position: absolute; top: 259px" BackColor="#FFFFCC" BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana" FontSize="8pt" ForeColor="#663399" Height="133px" ShowGridLines="True" Width="165px" SelectedDate="2007-01-01"> <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" /> <TodayDayStyle BackColor="#FFCC66" ForeColor="White" /> <SelectorStyle BackColor="#FFCC66" /> <OtherMonthDayStyle ForeColor="#CC9966" /> <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" /> <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" /> <TitleStyle BackColor="#990000" Font-Bold="True" FontSize="9pt" ForeColor="#FFFFCC" /> </asp:Calendar> }

NAME :- KARUNA KANT

78

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


<asp:FileUpload ID="FileUpload1" runat="server" onchange="show()" Style="z-index: 121; left: 715px; position: absolute; top: 423px" />

Advertisement Menu Page:-

Code for Add Advertisement Package

:-

NAME :- KARUNA KANT

79

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


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 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 = ""; }

NAME :- KARUNA KANT

80

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


protected void LinkButton3_Click(object sender, EventArgs e) { Response.Redirect("ListOfAdverPackages.aspx"); }}

Code for AdvertisementList Package:-

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");

NAME :- KARUNA KANT

81

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


} protected void LinkButton1_Click(object sender, EventArgs e) { Response.Redirect("advertisementmenu.aspx"); } protected void LinkButton3_Click(object sender, EventArgs e) { Response.Redirect("addadvertisementPackages.aspx"); } protected void DataGrid1_EditCommand(object source, DataGridCommandEventArgs e) { string id = DataGrid1.DataKeys[e.Item.ItemIndex].ToString(); string str = "select * from advertisementPackages where packagename='" + id + "'"; cmd = new SqlCommand(str, conn); conn.Open(); dr = cmd.ExecuteReader(); string id1 = ""; string name = ""; string param = ""; if (dr.Read()) { id1 = dr["id"].ToString(); name = dr["packagename"].ToString(); param = "packagename=" + name + "&&" + "id=" + id1; Response.Write(param); } conn.Close(); Response.Redirect("updateadvertisementpackage.aspx?" + param); } { protected void DataGrid1_DeleteCommand(object source, DataGridCommandEventArgs e) string id = DataGrid1.DataKeys[e.Item.ItemIndex].ToString(); string del = "delete from advertisementPackages where packagename='" + id + "'"; cmd = new SqlCommand(del, conn); conn.Open(); cmd.ExecuteNonQuery(); fill(); Response.Write("record deleted"); conn.Close();

} }

NAME :- KARUNA KANT

82

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Code for Update & Delete AdverList Package:-

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(); }

NAME :- KARUNA KANT

83

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


} 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 Button2_Click(object sender, EventArgs e) { TextBox1.Text = ""; } protected void Button1_Click(object sender, EventArgs e) { string upd = "update advertisementPackages set packagename='" + TextBox1.Text + "' where id='" + id1 + "'"; cmd = new SqlCommand(upd, conn); conn.Open(); int r=cmd.ExecuteNonQuery(); if (r > 0) { Response.Write("Record Updated"); } conn.Close(); } }

Code for Add Advertised Page:-

public partial class addadverpagedetail : System.Web.UI.Page {

NAME :- KARUNA KANT

84

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


SqlConnection con = new SqlConnection("server=;database=karan;uid=sa;pwd=;"); SqlCommand cmd; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("loginform.aspx"); } else { } } } 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 str = "insert into Adverpagedetail values('" + TextBox1.Text + "')"; cmd = new SqlCommand(str, conn); conn.Open(); int r = cmd.ExecuteNonQuery(); if (r > 0) { Response.Write("Record Added"); } conn.Close(); } }

NAME :- KARUNA KANT

85

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Code for AdvertisePageDetail List Update & Delete :-

using System;

NAME :- KARUNA KANT

86

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


using using using using using using using using using using 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 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"); }

NAME :- KARUNA KANT

87

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


protected void DataGrid1_EditCommand(object source, DataGridCommandEventArgs e) { string id = DataGrid1.DataKeys[e.Item.ItemIndex].ToString(); string str = "select * from Adverpagedetail where pagedetail='" + id + "'"; cmd = new SqlCommand(str, conn); conn.Open(); dr = cmd.ExecuteReader(); string id1 = ""; string param = ""; if (dr.Read()) { id1 = dr["id"].ToString(); param = "id=" + id1; Response.Write(param); } conn.Close(); Response.Redirect("updateadverpagedetail.aspx?" + param); } { } protected void DataGrid1_DeleteCommand(object source, DataGridCommandEventArgs e) { string id = DataGrid1.DataKeys[e.Item.ItemIndex].ToString(); string del = "delete from Adverpagedetail where pagedetail='" + id + "'"; cmd = new SqlCommand(del, conn); conn.Open(); cmd.ExecuteNonQuery(); fill(); Response.Write("record deleted"); conn.Close(); protected void DataGrid1_SelectedIndexChanged(object sender, EventArgs e)

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)

NAME :- KARUNA KANT

88

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


{

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(); }

HOTEL MENU PAGE :-

NAME :- KARUNA KANT

89

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Code for Add State:-

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;

NAME :- KARUNA KANT

90

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class Add_State_Page : 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) { 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 = ""; }

Code for StateList Page EDIT & DELETE:-

NAME :- KARUNA KANT

91

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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(); }

NAME :- KARUNA KANT

92

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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) {

NAME :- KARUNA KANT

93

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


Response.Redirect("LoginForm.aspx");

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 = ""; }}

Code for Add City According State Name:-

using System; using System.Data;

NAME :- KARUNA KANT

94

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


using using using using using using using using using 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 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

TOURIST HOLIDAY PLACES

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();

NAME :- KARUNA KANT

96

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


} 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 city where cid='" + str + "'"; SqlCommand com = new SqlCommand(cmd, con); con.Open(); dr = com.ExecuteReader(); string sim = ""; while (dr.Read()) { sim = dr["cid"].ToString(); } Response.Redirect("Updatecity.aspx?sim=" + sim); con.Close(); } protected void DataGrid1_DeleteCommand(object source, DataGridCommandEventArgs e) { string str = DataGrid1.DataKeys[e.Item.ItemIndex].ToString(); SqlCommand com = new SqlCommand("delete from city where cid='" + str + "'", con); con.Open(); dr = com.ExecuteReader(); con.Close(); fill(); } }

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)

NAME :- KARUNA KANT

97

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


{

if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("LoginForm.aspx"); }

} 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(); }

NAME :- KARUNA KANT

98

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

Code for ADD Hotel Feature:-

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) {

NAME :- KARUNA KANT

99

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


com=new SqlCommand("insert into hotelfeature values('" + TextBox1.Text + "')", con); con.Open(); int k = com.ExecuteNonQuery(); if (k > 0) { Label3.Text = "Hotel Feature inserted"; } con.Close(); } protected void Button2_Click(object sender, EventArgs e) { TextBox1.Text=""; Label3.Text = ""; } }

Code for Hotel FeatureList(Update & Delete)

NAME :- KARUNA KANT

100

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


public partial class HotelFeature : System.Web.UI.Page { SqlConnection con =new SqlConnection("server=.;database=karan;uid=sa;pwd=;"); SqlCommand com; 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"); } } DataGrid1.AllowPaging = true; DataGrid1.PageSize = 3; com = new SqlCommand("select * from hotelfeature",con); da = new SqlDataAdapter(com); if (!IsPostBack) { fill(); } } protected void fill() { da.Fill(ds); DataGrid1.DataSource = ds.Tables[0]; DataGrid1.DataBind(); } 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 hotelfeature where hf_id='" + str + "'"; SqlCommand com = new SqlCommand(cmd, con); con.Open(); dr = com.ExecuteReader(); string kk = ""; while (dr.Read()) { kk = dr["hf_id"].ToString();

NAME :- KARUNA KANT

101

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


} Response.Redirect("UpdateHotelFeature.aspx?kk=" + kk); con.Close(); } protected void DataGrid1_DeleteCommand(object source, DataGridCommandEventArgs e) { string str = DataGrid1.DataKeys[e.Item.ItemIndex].ToString(); string cmd = "delete from hotelfeature where hf_id='" + str + "'"; SqlCommand com = new SqlCommand(cmd, con); con.Open(); com.ExecuteNonQuery(); con.Close(); fill();

Code for Update HotelFuture:-

public partial class UpdateHotelFeature : System.Web.UI.Page { SqlConnection con = new SqlConnection("server=.;database=karan;uid=sa;pwd=;");

NAME :- KARUNA KANT

102

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


SqlCommand com; SqlDataReader dr; string str; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["user"] == null && Session["pass"] == null) { Response.Redirect("LoginForm.aspx"); } } str = Request.QueryString["kk"]; if (!IsPostBack) { string cmd = "select * from hotelfeature where hf_id='" + str + "'"; com = new SqlCommand(cmd, con); con.Open(); dr = com.ExecuteReader();

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(); } }

CODE FOR HOME PAGE :-

NAME :- KARUNA KANT

103

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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) {

NAME :- KARUNA KANT

104

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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());

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

NAME :- KARUNA KANT

105

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

} 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"); }

Code for About US :-

NAME :- KARUNA KANT

106

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

<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> &nbsp; <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.

NAME :- KARUNA KANT

107

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


Using the programming skills all the operations involved could be easily made efficient flawless and user friendly. only Registered Users of this solution will be able to view packages, " Height="196px" Width="796px"></asp:Label> <uc2:Bottomusercontrol ID="Bottomusercontrol1" runat="server" /> <uc3:topusercontrol ID="Topusercontrol1" runat="server" /> </div> </form> </body> </html>

Code for About US :-

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> &nbsp; <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>

NAME :- KARUNA KANT

108

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


<uc2:Bottomusercontrol ID="Bottomusercontrol1" runat="server" /> <uc3:topusercontrol ID="Topusercontrol1" runat="server" /> </div> </form> </body> </html>

CODE FOR SEARCH PACKAGE :-

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();

NAME :- KARUNA KANT

109

ENROL NO:-032643877

TOURIST HOLIDAY PLACES


while (dr.Read()) { DropDownList1.Items.Add(dr["packagename"].ToString()); } conn.Close(); string str = "select * from addstate"; cmd = new SqlCommand(str, conn); conn.Open(); dr = cmd.ExecuteReader(); while (dr.Read()) { DropDownList3.Items.Add(dr["statename"].ToString()); } conn.Close(); } { DropDownList2.Items.Clear(); string str1 = "select * from city where statename='" + DropDownList3.SelectedItem + "'"; cmd = new SqlCommand(str1, conn); conn.Open(); dr = cmd.ExecuteReader(); while (dr.Read()) { DropDownList2.Items.Add(dr["cityname"].ToString()); } conn.Close(); } protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e)

} 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(); }}

NAME :- KARUNA KANT

110

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

TOURIST HOLIDAY PLACES

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.

ALPHA AND BETA TESTING:-

NAME :- KARUNA KANT

112

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

NAME :- KARUNA KANT

113

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

TOURIST HOLIDAY PLACES

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:

For Admin Menu Page


Showing the Category Showing the State Showing the City Showing the Packages Advertisement About Hotel Feature (Edit / Delete /Cancle) (Edit / Delete /Cancle) (Edit / Delete /Cancle) (Edit / Delete /Cancle) (Edit / Delete /Cancle) (Edit / Delete /Cancle)

For User Page


Showing the Home page Showing the Category List Page. Sub Category Search About us Contact Us (Home page for this project) (All the information about category) (User can select Category from homepage) (we can search all Packages ) (About Project Detail) (Contact Person Who Make the WebSite)

NAME :- KARUNA KANT

115

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

INPUTS SCREENS :-

Registration form for New Users.

Login form you users.

NAME :- KARUNA KANT

116

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

ADD CATEGORY.

ADD PACKAGE( PACKAGE DETAIL).

NAME :- KARUNA KANT

117

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

ADD ADVERTISEMENT PACKAGE

ADVERTISED ADDED PAGE

NAME :- KARUNA KANT

118

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

DELETE THE ADVER PAGE RECORD.

HOTEL MENU PAGE.

NAME :- KARUNA KANT

119

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

ADD STATE NAME.

UPDATE STATE NAME.

NAME :- KARUNA KANT

120

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

ADDING CITY NAME ACCORDING TO STATE NAME.

DELETE CITY LIST PAGE.

NAME :- KARUNA KANT

121

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

ADDING HOTEL

ADDING HOTEL FUTURE.

NAME :- KARUNA KANT

122

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

UPDATING HOTEL FEATURE.

DELETE HOTEL FEATURE.

NAME :- KARUNA KANT

123

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

SEARCH FOR PACKAGE.

NAME :- KARUNA KANT

124

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

OUTPUT SCREENS :-

REGISTRATION FORM CREATED SUCESSFULLY

USER LOGIN SUCESSFULLY.

NAME :- KARUNA KANT

125

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

ADD CATEGORY SUCESSFULLY.

CATEGORY LIST PAGE.

NAME :- KARUNA KANT

126

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

CATEGORY DELETED.

(PACKAGE LIST PAGE.)

NAME :- KARUNA KANT

127

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

PACKAGE DELETED.

PACKAGE RECORD UPDATED.

NAME :- KARUNA KANT

128

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

ADVERTISEMENT MENU PAGE

LIST OF ADVERPACKAGE

NAME :- KARUNA KANT

129

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

ADVERTISMENT PACKAGE UPDATE

DELETED PAGE DETAIL

NAME :- KARUNA KANT

130

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

STATE LIST PAGE

CITY LIST PAGE

NAME :- KARUNA KANT

131

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

ADDING HOTEL FUTURE.

HOTEL FEATURE LIST

NAME :- KARUNA KANT

132

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

UPDATING HOTEL FEATURE RECORD

HOTEL FEATURE LIST.

NAME :- KARUNA KANT

133

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

HOTEL FEATURE LIST PAGE.

NAME :- KARUNA KANT

134

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

HOME PAGE

NAME :- KARUNA KANT

135

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

ABOUT US(TOURIST HOLIDAY PLACES).

CONTACT US.

NAME :- KARUNA KANT

136

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

SEARCH PACKAGE FOR DELHI TOUR.

NAME :- KARUNA KANT

137

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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.

NAME :- KARUNA KANT

138

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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.

There are some limitations of this project which are as follows :-

It will run only Windows environment like windows 2000, XP.

It will not run any other environment like Dos, UNIX, Linex.

The work of printer will not be done with this project.

It will generate only its related future.

Work will done only on .net environment not other.

NAME :- KARUNA KANT

139

ENROL NO:-032643877

TOURIST HOLIDAY PLACES

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

TOURIST HOLIDAY PLACES

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:

www.msden.microsoft.com www.asp.net www.microsoft.com www.mysql.com www.dotnetspider.com

NAME :- KARUNA KANT

141

ENROL NO:-032643877

S-ar putea să vă placă și