Sei sulla pagina 1di 140

PROJECT REPORT ON

“ONLINE BOOK SHOPPING SYSTEM”


DESIGNED AND DEVELOPED BY:
Ms. ADITI S. MANDLIK
(TYBSc.I.T. SEM VI)
SEAT NO.__________
UNDER THE GUIDANCE OF:
Prof. RAJESH JHA
THIRD YEAR BACHELOR OF SCIENCE IN
(INFORMATION TECHNOLOGY)
ACADEMIC YEAR: 2017-2018
UNIVERSITY OF MUMBAI

LORDS UNIVERSAL COLLEGE


Topiwala Marg, Off Station Road, Near Hotel Ratan,
Goregaon West, Mumbai-400104.

1
ACKNOWLEDGEMENT
After months of sincere efforts and hard work, I am
extremely delighted to present you with my last year
project entitled “Online Book Shopping System”.

I take this opportunity to express my gratitude to all


those who have played an important role in supporting
and guiding me through this project.

Firstly I would like to give thanks to the


management of “Lords Universal College” for providing
me with the opportunity to accomplish my project.

Next I would like to display my gratitude to my


project guide and professor Mr. Rajesh Jha who
efficiently guided me through the rough paths that came
my way while developing this project.

I would also like to thank all of the faculties of the


I.T. department namely Prof. Asheeta, Prof. Shraddha,
our lab incharge Mr. Ganesh and our honorable H.O.D.
Prof. Bhavin Bhinde for their timely advises and support
for carrying out the whole project.

Finally I would like to give a special thanks to my


parents and my friends who gave me the strength,
encouragement and motivation to capture my goal.

2
INDEX

SR.NO. CONTENT PAGE NO.


1 ACKNOWLEDGEMENT 2
2 SYNOPSIS 5
3 PREFACE 10
4 INTRODUCTION 11
5 EXISTING SYSTEM 13
6 LIMITATIONS OF EXISTING 14
SYSTEM
7 NEED FOR NEW SYSTEM 15
8 PROPOSED SYSTEM 16
9 FEATURES OF NEW SYSTEM 17
10 SYSTEM ANALYSIS AND DESIGN 18
1. FACT FINDING TECHNIQUES 18
2. SYSTEM REQUIREMENTS 20
i. ASP.NET 20
ii. MS. SQL 21
iii. C# 23
iv. HTML 24
v. JAVASCRIPT 25
11 FEASIBILITY STUDY 26
12 PROCESS MODEL 28

3
13 WORK BREAK DOWN STRUCTURE 29
14 UNIFIED MODELLING LANGUAGE 30
15 USE CASE DIAGRAM 31
16 ER DIAGRAM 33
17 CLASS DIAGRAM 34
18 ACTIVITY DIAGRAM 36
19 DFD 37
20 GANTT CHART 38
21 DATABASE TABLES 39
22 SCREEN SHOTS 44
23 CODING 62
24 TESTING 139
25 BIBLIOGRAPHY 140

4
SYNOPSIS

Introduction

The project entitled online book shopping system will be


developed for different categories of users having a busy schedule.

The goal of this project is to provide a wide range of variety of


books to the customers.

Buying books on this website will be very easy. Each member


would be able to register and will be benefited with various membership
discount which would be offered only if the customer is an existing
member.

The details of the members would be stored in the database in


order to check whether the customer is an existing member to avail the
offers.

The uploading of books will be only carried out by the


administrator of owner he will also be liable for the employee accounts.

Books should be stored in the form of categories mentioned by the


administrator and would be displayed to the user on the system GUI.

Payment would be done through cash on delivery process. This


web application would act as an interface between the customer and the
seller for buying and selling books online.

Objectives

Following points describe the objectives of the proposed system:

5
 Computerization:

Data storage is very large in a computer system. This means that all the
files that were being stored in the multiple files can now be transferred to
the new system in the database and more information can be stored easily
and efficiently.

 User friendly:

The website would provide a user-friendly interface and thus would be


easy for the members to use it without much of technical knowledge.
User will find it easy to use and they will be able to update information
easily.

 Individual account and no charges:

Each user of the website would be able create their own separate
individual account through which benefits of members can be availed.

This website do not carry membership charges and offer free services to
all users and help user to stay in touch with contacts and show the
community that care about company-to-client communication!

Reduced people headaches

The proposed system is very much computerized which allows user to


select the book according to their requirements and visit the books
website .Searching of Book is easy and a Quick process in the website
because of introduction of the search module.

6
Scope

This website makes the procedure of buying and selling of Books and
storage of uploaded information by the user easy by storing information
by making use of database. ASP.NET enable in providing dynamic
information retrieved from the database by providing efficient and
interactive measures. The main purpose is to have more numbers of
registered users and maximum buying and selling related to Book
website.

This website provides a platform for user and administrator where the
administrator can upload various categories of books also can update new
categories and user can purchase the books of his/her choice from variety
of books provided by the administrator.

Module Description

1 Admin Module

In this module, the administrator uses a login ID and Password.


Administrator manages employees using Lock/Unlock module. It locks
the employee if they are no more associated to the organization and
unlock the employee, if they are part of the organization and grants all the
access to the employee. It also adds category, adds/edits state and also
add/edits the cities.

It also changes Password accordingly. It adds Products to the List


depending on the availability and updates on the new arrival. There is a
logout module after the administrator is done with its duties and
Responsibilities.

7
2 Customer Module

In this module, the customer log in with its unique combination of login
id and password and if it is not registered then the customer must get
itself registered using the registered module. Once the sign up is done,
then customer views, all the Products and selects all according to the
category mentioned in the dropdown list which is updated by the
administrator.

3 Employee Module

In this module, the Customer can go to the outlet and ask the employee to
show the website. In this employee reacts the record, also orders of the
product .In this employee also get notified about the bill .After processing
employee will logout from the module.

Framework used

C#.Net: – C#.Net is a programming language developed by Microsoft.

SQL: – SQL is a structured query language used for querying database

HTML: – It is used for giving eye catching look to the website. And also
provides an easy to use GUI.

CSS: – CSS is cascading style sheet which is used to give designer look
to HTML using the external file.

8
JavaScript: – JavaScript is used for client side scripting which can help in
using validation on the website and many more other functions.
ASP.Net: – ASP.NET is a Web application framework developed and
marketed by Microsoft to allow programmers to build dynamic Web
sites.

Future prospective

The future use of this website can be online transactions and also you can
pay online for the books.
Multiple categories of books can also be added in the future.
SMS system for password changes can also be added in the future.

Hardware Interface:

Minimum hardware requirements platform: Windows XP or higher


Disk space: 1 GB
Memory: 512 MB

Software Interface:

Front end: Basic HTML, jquery


CSS for design and GUI
ASP.NET with c#
Back end: MS SQL 2005/8/10

9
PREFACE

We all obviously need books in our lives at one point or another.


Some of us are even book lovers and collectors of classic novels. But the
major market surrounding the books business is that of the students and
people from the professional sectors of law, medicine and teaching other
than the philosophers and people from the literature background. So,
many of you will agree with me that nothing feels as good as to have a
book in your hand and your coffee next to you while you study or enjoy
the content of the book.

But as we know in this fast running life where the duties and
responsibilities take up our major time it quit natural that even if we have
time to rest peacefully with a book in our hand it quiet not possible to
borrow or buy a book of our taste or requirement by actually visiting the
book shop.

Hence to make it easier for all such friends of mine I have


proposed a system named the “Online Book Shopping System” wherein it
is possible for you to go through a section of different categories of books
and also get them delivered to your home without you going through any
more efforts.

There may be scope for more features to be added and some more
scope of improvement. But, serious efforts have been put into to get the
best results.

10
INTRODUCTION

Computers and Information Technology has a major influence on


our society and society has become more and more dependent on
technology. We need to change with change in society. In this new era
where computers are becoming the need of today, replacing the existing
system outdated methods of carrying out jobs, it is only natural that the
organizations also turn to computerization that will make them more
equipped to take on challenges posed by today’s environment.

Information is the backbone of an organization. Therefore, it has


to be made constantly available so that proper decision making can be
ensured. Information technologies have a major influence on our society
and have more dependents on technology mostly because of the obvious
shortcuts it provides. By computerizing the system, it reduces the man
power and helps in reducing the intolerable world burden of handling
increased amount of information and also increases the efficiency of the
system. Information Technology has a major influence on our society and
has more and more dependent on technology mostly because of the
obvious shortcuts it given us in such a society where one can
communicate with a person in any corner of the globe in a few seconds.
Computers can play a major role in communication. Technologies such as
internet enable communication between people across the globe.

E-commerce is fast gaining ground as an accepted and used


business paradigm. More and more business houses are implementing
web sites providing functionality for performing commercial transactions
over the web. It is reasonable to say that the process of shopping on the
web is becoming commonplace.

11
The objective of this project is to develop a general purpose e-
commerce store where books can be bought from the comfort of home
through the Internet. However, for implementation purposes, this paper
will deal with an online book store. An online store is a virtual store on
the Internet where customers can browse the catalog and select products
of interest. The selected items will be listed in a bill like format. At
checkout time, these items will be presented as an order.

The proposed system helps in delivering of books to your doorstep


which is much convenient and works on the principle of cash on delivery
methodology.

By this the customer can first evaluate the quality of the delivered
book and only then pay for it or else the customer can directly return it to
the delivery person without making any payment which is in itself a good
service.

This system is also easy to use and is provided with three major
user modules which will be mentioned in the description section of this
project report.

Each type of user say the admin, employee or the customer have an
individual unique login made available for them.

The customer is provided with a search module exclusively to


search for books in a list format according to its categories.

12
EXISTING SYSTEM

As for now many book stores have already installed a


computerized system for maintaining stock records and managing bills
although there are a few stores who are still in the register era of
managing their accounts.

In the existing system the customer needs to go directly to the


merchant and purchase the books. Here all the transactions are done
directly. It is a time consuming job.

Assume it is a computerized system. The owner of the firm is


automating the book stall with the help of a single system. It may
consume time as there is only one system to manage all the transactions
in the shop. Books needed for the customer are purchased according to
the order given. Outdated books are returned back to the dealer.

Whenever a customer comes in need of a particular book, the


owner first needs to search all the available books in his store to check it
is available or not. After finding the books he needs to calculate the
amount by checking the details and needs to fill in the receipt. The
process is time consuming and chances of error are quite high.

13
LIMITATIONS OF THE EXISTING SYSTEM

 Direct Transaction

In the existing system all the transactions are done face to face. If a
customer needs to purchase a book then he has to approach the shop and
buy it.

 Manual supervision causes wastage of time

There will be time lagging between transaction as there is only a single


system to automate the whole dealings.

 Time limited access

The book stall could be accessed only in the working hours. The
customer needs to wait for the shop to be open.

 Book availability
It may so happen that the book you wish to buy is not available at the
moment in the shop. This means that your trip has been wasted and there
will still be an irregularity about when it would arrive so that you can
make another trip to the store.

14
Need For New System
 Lack of immediate retrievals: The information is very difficult to
retrieve and to find particular information like: E.g. - To find out
about the user’s history, the user has to go through various
registers. This results in inconvenience and wastage of time.
 Lack of immediate information storage: The information generated
by various transactions takes time and efforts to be stored at the
right place.
 Lack of prompt updating: Various changes to information like
event details or user detail are difficult to make as paper work is
involved.
 Error prone manual calculation: Manual calculations are error
prone and take a lot of time this may result in incorrect
information. For example calculation of expenses based on various
events.
 Preparation of accurate and prompt reports: This becomes a
difficult task as information is difficult to collect from various
registers.

15
PROPOSED SYSTEM
Proposed System:
 The system is basically oriented to reduce paper work.
 The proposed system is very easy to operate. Speed and accuracy are
the main advantages of proposed system.
 There is no redundancy of data. The data are stored in the computer’s
secondary memories like hard disk, etc. it can be easily receive and used
at any time. The proposed system will easily handle all the data and the
work done by the existing systems. The proposed systems eliminate the
drawbacks of the existing system to a great extent and it provides tight
security to data.
 Also it would have provisions for maintaining and manipulating the
account details of a particular User.
 The system would store information related to a User personal.

Advantages of Proposed System:

 The Software is for the automation of Integrity Event Management


 It can be used in any college for their internal event management
 The system would provide an environment which would help the
Admin for accessing and manipulating information related to all his
users.
 Since the details of users are stored in tables, it would be easier for the
Admin to update their details quickly.

16
FEATURES OF PROPOSED SYSTEM

 THE SOFTWARE INCLUDES:-


1) User Management
2) Event Management
3) Sponsor Management
4) Event Schedule Management
5) Expense Management
6) Reports
 It maintains two levels of user:-
i) Administrator Level
ii) User Level
 Immediate access to the data
 User Friendly Interface
 Time Saving
 Data can easily Insert/Update/Delete /View
 Saving paper work
 Give facility of different types of Enquiry
 Data’s are easily approachable

17
SYSTEM ANALYSIS AND DESIGN

In today’s age shopping goods online is a very commonly carried out


task. Many book stores have focused on selling their books faster as
compared to their competitors. In the present system the customers need
to themselves visit the shop to analyse books thus there are low chances
of visiting customers due to the day today fast lifestyle.

Therefore we need to carry out surveys of book shops as well as the


customers of such shops to understand their requirements.

1. Fact Finding Techniques


Fact finding is an important activity in system investigation. In this stage,
the functioning of the system is to be understood by the analyst to design
the proposed system. Various methods are used for this and they are
known as fact finding methods.
The analyst needs data about the requirements and demands of the project
undertaken and the techniques employed to gather this data are known as
fact finding techniques. Various kinds of techniques are used and the
most popular among them are interviews, questionnaires, record reviews,
C.A.S.E. tools and also the personal observations made by the analyst
himself.
Two people can go into the same area to collect facts and experience the
entirely different results. One spends weeks and gets incomplete and
misleading data. The other is finished in few hours and has complete and
solid facts.
The following fact finding techniques can be used for gathering
information,

 Interviews

18
Analyst can use interviews to collect information about the current
system from the potential users. Here the analyst’s discover the areas of
misunderstanding, unrealistic, exception and description of activities and
problems along with resistance to the new proposed system. Interviews
are time consuming.

 Questionnaires
Here the analyst can collect the data from large groups. Questionnaires
can be open-ended or close questionnaires. Open-ended questionnaires
are used to learn feelings, opinions, general experience on process detail
or problem in it, questions are answered in their own words. Whereas in
closed questionnaires a set of prescribed answers are used and specific
response have to be selected. This is a costly affair, as the questions
should be printed out.

 Record Inspections and Reviews


Basic records like the daily reports, monthly reports, yearly reports,
regulation, standards rules, operation procedures etc. can be used for
better understanding the system.

 Observation
This is a skill which the analyst has to develop. The analyst has to
identify the right information and choose the right person and look at the
right place to achieve his objective. He should have a clear vision of how
each departments work and workflow between them and for this he
should be a good observer.

I as the developer have implemented the observation technique as a


method for gathering information and doing system analysis.

19
What I propose is an online book shopping system wherein the customer
needs not set a foot near the book store and still be able to know the prize,
availability, description, feedback, cover page, author details, etc.
information regarding the book via the website with the help of a web
browser.

2. System requirements
ASP.NET
ASP.NET is a programming framework built on the common language
runtime that can be used on a server to build powerful Web applications.
ASP.NET has many advantages – both for programmers and for the end
users because it is compatible with the .NET Framework. This
compatibility allows the users to use the following features through
ASP.NET:
a) Powerful database-driven functionality: ASP.NET allows programmers
to develop web applications that interface with a database. The advantage
of ASP.NET is that it is object-oriented and has many programming tools
that allow for faster development and more functionality.
b) Faster web applications: Two aspects of ASP.NET make it fast --
compiled code and caching. In ASP.NET the code is compiled into
"machine language" before a visitor ever comes to the website. Caching
is the storage of information in memory for faster access in the future.
ASP.NET allows programmers to set up pages or areas of pages that are
commonly reused to be cached for a set period of time to improve the
performance of web applications. In addition, ASP.NET allows the
caching of data from a database so the website is not slowed down by
frequent visits to a database when the data does not change very often.

20
c) Memory leak and crash protection: ASP.NET automatically recovers
from memory leaks and errors to make sure that the website is always
available to the visitors.
ASP.NET also supports code written in more than 25 .NET languages
(including VB.NET, C#, and Jscript.Net). This is achieved by the
Common Language Runtime (CLR) compiler that supports multiple
languages.
MS. SQL
Microsoft SQL Server is a relational database management
system developed by Microsoft. As a database server, it is a software
product with the primary function of storing and retrieving data as
requested by other software applications—which may run either on the
same computer or on another computer across a network (including the
Internet).

Microsoft markets at least a dozen different editions of Microsoft SQL


Server, aimed at different audiences and for workloads ranging from
small single-machine applications to large Internet-facing applications
with many concurrent users.

The main mode of retrieving data from a SQL Server database


is querying for it. The query is expressed using a variant of SQL called T-
SQL, a dialect Microsoft SQL Server shares with Sybase SQL Server due
to its legacy. The query declaratively specifies what is to be retrieved. It
is processed by the query processor, which figures out the sequence of
steps that will be necessary to retrieve the requested data. The sequence
of actions necessary to execute a query is called a query plan. There
might be multiple ways to process the same query. For example, for a
query that contains a join statement and a select statement, executing join
on both the tables and then executing select on the results would give the

21
same result as selecting from each table and then executing the join, but
result in different execution plans. In such case, SQL Server chooses the
plan that is expected to yield the results in the shortest possible time. This
is called query optimization and is performed by the query processor
itself.

SQL Server includes a cost-based query optimizer which tries to optimize


on the cost, in terms of the resources it will take to execute the query.
Given a query, then the query optimizer looks at the database schema, the
database statistics and the system load at that time. It then decides which
sequence to access the tables referred in the query, which sequence to
execute the operations and what access method to be used to access the
tables. For example, if the table has an associated index, whether the
index should be used or not: if the index is on a column which is not
unique for most of the columns (low "selectivity"), it might not be
worthwhile to use the index to access the data. Finally, it decides whether
to execute the query concurrently or not. While a concurrent execution is
more costly in terms of total processor time, because the execution is
actually split to different processors might mean it will execute faster.
Once a query plan is generated for a query, it is temporarily cached. For
further invocations of the same query, the cached plan is used. Unused
plans are discarded after some time.

SQL Server also allows stored procedures to be defined. Stored


procedures are parameterized T-SQL queries that are stored in the server
itself (and not issued by the client application as is the case with general
queries). Stored procedures can accept values sent by the client as input
parameters, and send back results as output parameters. They can call
defined functions, and other stored procedures, including the same stored
procedure (up to a set number of times). They can be selectively provided

22
access to. Unlike other queries, stored procedures have an associated
name, which is used at runtime to resolve into the actual queries. Also
because the code need not be sent from the client every time (as it can be
accessed by name), it reduces network traffic and somewhat improves
performance. Execution plans for stored procedures are also cached as
necessary.

C#
C# is a multi-paradigm programming language encompassing strong
typing, imperative, declarative, functional, generic, object-oriented (class-
based), and component-oriented programming disciplines. It was
developed by Microsoft within its .NET initiative and later approved as a
standard by Ecma (ECMA-334) and ISO (ISO/IEC 23270:2006). C# is
one of the programming languages designed for the Common Language
Infrastructure.

C# is a general-purpose, object-oriented programming language. Its


development team is led by Anders Hejlsberg. The most recent version is
C# 7.2, which was released in 2017 along with Visual Studio 2017
version 15.5.

By design, C# is the programming language that most directly reflects the


underlying Common Language Infrastructure (CLI). Most of its intrinsic
types correspond to value-types implemented by the CLI framework.
However, the language specification does not state the code generation
requirements of the compiler: that is, it does not state that a C# compiler
must target a Common Language Runtime, or generate Common
Intermediate Language (CIL), or generate any other specific format.

23
Theoretically, a C# compiler could generate machine code like traditional
compilers of C++ or FORTRAN.

HTML

Hypertext Markup Language (HTML) is the standard markup


language for creating web pages and web applications. With Cascading
Style Sheets (CSS) and JavaScript it forms a triad of cornerstone
technologies for the World Wide Web. Web browsers receive HTML
documents from a web server or from local storage and render them into
multimedia web pages. HTML describes the structure of a web
page semantically and originally included cues for the appearance of the
document.

HTML elements are the building blocks of HTML pages. With HTML
constructs, images and other objects, such as interactive forms, may be
embedded into the rendered page. It provides a means to create structured
documents by denoting structural semantics for text such as headings,
paragraphs, lists, links, quotes and other items. HTML elements are
delineated by tags, written using angle brackets. Tags such
as <img/> and <input/> introduce content into the page directly. Others
such as <p>...</p> surround and provide information about document text
and may include other tags as sub-elements. Browsers do not display the
HTML tags, but use them to interpret the content of the page.

HTML can embed programs written in a scripting language such


as JavaScript which affect the behavior and content of web pages.
Inclusion of CSS defines the look and layout of content. The World Wide
Web Consortium (W3C), maintainer of both the HTML and the CSS
standards, has encouraged the use of CSS over explicit presentational
HTML since 1997.

24
JAVASCRIPT

JavaScript, often abbreviated as JS, is a high-level, dynamic, weakly


typed, prototype-based, multi-paradigm, and interpreted programming
language. Alongside HTML and CSS, JavaScript is one of the three core
technologies of World Wide Web content production. It is used to make
web pages interactive and provide online programs, including video
games. The majority of websites employ it, and all modern web
browsers support it without the need for plug-ins by means of a built-
in JavaScript engine. Each of the many JavaScript engines represent a
different implementation of JavaScript, all based on the ECMA
Script specification, with some engines not supporting the spec fully, and
with many engines supporting additional features beyond ECMA.

As a multi-paradigm language, JavaScript supports event-


driven, functional, and imperative (including object-
oriented and prototype-based) programming styles. It has an API for
working with text, arrays, dates, regular expressions, and basic
manipulation of the DOM, but the language itself does not include
any I/O, such as networking, storage, or graphics facilities, relying for
these upon the host environment in which it is embedded.

Initially only implemented client-side in web browsers, JavaScript


engines are now embedded in many other types of host software,
including server-side in web servers and databases, and in non-web
programs such as word processors and PDF software, and in runtime
environments that make JavaScript available for writing mobile and
desktop applications, including desktop widgets.

25
FEASIBILITY STUDY

Introduction
The feasibility study is an evaluation and analysis of the potential of a
proposed project which is based on extensive investigation and research
to support the process of decision making.

Feasibility studies aim to objectively and rationally uncover the strengths


and weaknesses of an existing business or proposed venture,
opportunities and threats present in the environment, the resources
required to carry through, and ultimately the prospects for success. In its
simplest terms, the two criteria to judge feasibility are cost required and
value to be attained.

A well-designed feasibility study should provide a historical background


of the business or project, a description of the product or service,
accounting statements, details of the operations and management,
marketing research and policies, financial data, legal requirements and
tax obligations.

Generally, feasibility studies precede technical development and project


implementation. A feasibility study evaluates the project's potential for
success; therefore, perceived objectivity is an important factor in the
credibility of the study for potential investors and lending institutions. It
must therefore be conducted with an objective, unbiased approach to
provide information upon which decisions can be based.

Economic Feasibility
An evaluation of development cost weighted against the ultimate income
or benefit derived from the developed system. System build with
minimum resource & low cost. As it is not a large scale project it is not
expensive

The proposed hardware and software requirements are easily available at


affordable prices.

Start-up Cost

Cost of training.

26
Cost of preparation of manuals and other documents.

Operational Cost

Cost of Operating & Maintenance of website.

Cost of stationery for preparing documents.

Cost of operating staff.

On the basis of cost benefit analysis the study concluded that the project
is Economically Feasible.

Technical Feasibility
It is run on any platform with minimum configuration. A study of
function, performance and constraints that may affect the ability to
achieve an acceptable system. Being a small scale project the working of
the project is quietly simple. The project is user friendly and so this new
technology will save a lot of time, of both the SHOP EMPLOYEES and
the CUSTOMERS. The flow of the project is not complicated and so
even if a new employee (or admin) is hired or a new customer registers,
he/she can understand the system easily.

Operational Feasibility
The product has high applicability amongst a section of the society. The
proposed system is completely feasible in terms of its operations. The
system is self-explanatory and does not need any extra sophisticated
training. The website is easy and efficient to use it has a simple layout
and a user can straightforwardly navigate his way through the website. As
the system has been built by concentrating on the graphical user interface
concept, the application can also be handled very easily with a novice
user.

 A study about the operational aspects of the system.


 This project is operational in all the aspects.
 The system is operationally feasible as it very easy for the End
users to operate it. It only needs basic information about Windows
platform.

27
PROCESS MODEL

The simplest process model is the waterfall model, which states the
Phases are organized in the linear order. The model was originally
proposed by Royce, though variations of the model have evolved
depending on the nature of activities and the flow of control between
them. In this model, a project begins with feasibility analysis.

Steps:

 Requirements document
 Project plan
 Design documentation(architecture, system, detailed)
 Test plan and test reports.
 Final code
 Software manuals (e.g. - user, installation, etc.)

28
WORK BREAKDOWN STRUCTURE
A work breakdown structure (WBS) in project management and a system
engineering is a tool used to define and group a projects discrete work
elements (or tasks) in a way that helps organize and define the total work
and scope of the project.
Here a work breakdown structure element is service. The WBS has also
provided the necessary framework for detailed cost estimating and
control along with providing guidance for schedule development and
control. Additionally, WBS is the dynamic rule and can be revised and
updated as needed by the project manager.
The WBS provides a common framework for the natural development of
the overall planning and control of a contract and is the basis of dividing
work into definable increments, from which the statement of the work can
be developed and technical, schedule, cost and labor are reporting can be
established. A WBS permits summing of sub-ordinate costs for tasks,
materials, etc. into their successively higher level “parent”, task, and
materials.

29
UNIFIED MODELLING LANGUAGE

The Unified Modeling Language is a standard visual modeling language


intended to be used for,

 Modelling business and similar processes,


 Analysis, design, and implementation of software-based systems.

UML plays an important role in developing software. It uses graphical


notations to express the design of software projects. UML is a common
language for business analysts, software architects and developers used to
describe, specify, design, and document existing or new business
processes, structure and behavior of artifacts of software systems.

UML can be applied to diverse application domains. It can be used with


all major object and component software development methods and for
various implementation platforms (e.g., J2EE, .NET). There are various
tools available in the market to design and develop UML. The software
used here is Star UML. It is one of the most popular UML tool in the
world. It has been downloaded by more than 3.5 million and used in more
than 150 countries. The various UML diagrams used for this project
development include:

1. Use Case Diagram


2. Sequence Diagram
3. Activity Diagram
4. Class Diagram
5. Data Flow Diagram
6. Entity Relationship Diagram

30
USE CASE DIAGRAM

A use case diagram at its simplest is a representation of a user's


interaction with the system that shows the relationship between the user
and the different use cases in which the user is involved. A use case
diagram can identify the different types of users of a system and the
different use cases and will often be accompanied by other types of
diagrams as well.

While a use case itself might drill into a lot of detail about every
possibility, a use-case diagram can help provide a higher-level view of
the system. It has been said before that "Use case diagrams are the
blueprints for your system". They provide the simplified and graphical
representation of what the system must actually do.

Due to their simplistic nature, use case diagrams can be a good


communication tool for stakeholders. The drawings attempt to mimic the
real world and provide a view for the stakeholder to understand how the
system is going to be designed. Siau and Lee conducted research to
determine if there was a valid situation for use case diagrams at all or if
they were unnecessary. What was found was that the use case diagrams
conveyed the intent of the system in a more simplified manner
to stakeholders and that they were "interpreted more completely than
class diagrams".

The purpose of the use case diagrams is simply to provide the high level
view of the system and convey the requirements in layman's terms for
the stakeholders. Additional diagrams and documentation can be used to
provide a complete functional and technical view of the system.

31
32
ENTITY-RELATIONSHIP DIAGRAM

An entity–relationship model (ER model for short) describes


interrelated things of interest in a specific domain of knowledge. A basic
ER model is composed of entity types (which classify the things of
interest) and specifies relationships that can exist between instances of
those entity types. In software engineering, an ER model is commonly
formed to represent things that a business needs to remember in order to
perform business processes. Consequently, the ER model becomes an
abstract data model that defines a data or information structure which can
be implemented in a database, typically a relational database.

Entity–relationship modeling was developed for database design by Peter


Chen and published in a 1976 paper. However, variants of the idea
existed previously. Some ER models show super and subtype entities
connected by generalization-specialization relationships, and an ER
model can be used also in the specification of domain-specific ontologies.

33
CLASS DIAGRAM

In software engineering, a class diagram in the Unified Modeling


Language (UML) is a type of static structure diagram that describes the
structure of a system by showing the system's classes, their attributes,
operations (or methods), and the relationships among objects.

The class diagram is the main building block of object-oriented modeling.


It is used for general conceptual modeling of the systematic of the
application, and for detailed modeling translating the models
into programming code. Class diagrams can also be used for data
modeling. The classes in a class diagram represent both the main
elements, interactions in the application, and the classes to be
programmed.

In the diagram, classes are represented with boxes that contain three
compartments:

 The top compartment contains the name of the class. It is printed in


bold and centered, and the first letter is capitalized.

 The middle compartment contains the attributes of the class. They


are left-aligned and the first letter is lowercase.

 The bottom compartment contains the operations the class can


execute. They are also left-aligned and the first letter is lowercase.

In the design of a system, a number of classes are identified and grouped


together in a class diagram that helps to determine the static relations
between them. With detailed modeling, the classes of the conceptual

Design is often split into a number of subclasses.

In order to further describe the behavior of systems, these class diagrams


can be complemented by a state diagram or UML state machine.

34
35
ACTIVITY DIAGRAM

Activity diagrams are graphical representations of workflows of stepwise


activities and actions with support for choice, iteration and concurrency.
In the Unified Modeling Language, activity diagrams are intended to
model both computational and organizational processes (i.e., workflows),
as well as the data flows intersecting with the related activities. Although
activity diagrams primarily show the overall flow of control, they can
also include elements showing the flow of data between activities through
one or more data stores.

36
DATA FLOW DIAGRAM
A data flow diagram (DFD) is a graphical representation of the "flow"
of data through an information system, modeling its process aspects. A
DFD is often used as a preliminary step to create an overview of the
system without going into great detail, which can later be elaborated.
DFDs can also be used for the visualization of data processing (structured
design).

A DFD shows what kind of information will be input to and output from
the system, how the data will advance through the system, and where the
data will be stored. It does not show information about process timing or
whether processes will operate in sequence or in parallel, unlike a
traditional structured flowchart which focuses on control flow, or a UML
activity workflow diagram, which presents both control and data, flows as
a unified model.

37
GANTT CHART

38
DATABASE TABLES

39
40
41
42
43
SCREENSHOTS
HOMEPAGE

44
CUSTOMER MODULE

45
46
47
48
49
EMPlOYEE MODULE

50
51
52
53
54
55
56
57
ADMIN MODULE

58
59
60
61
CODING
MAIN PAGE
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="MainPage.aspx.cs" Inherits="MainPage" %>

<!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">
<%-- <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />--%>
<title></title>
<link href="style.css" rel="stylesheet" type="text/css"></link>
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jssor.slider.mini.js"></script>
<!-- use jssor.slider.debug.js instead for debug -->
<script>
jQuery(document).ready(function ($) {

var jssor_1_SlideshowTransitions = [
{ $Duration: 1200, x: 0.3, $During: { $Left: [0.3, 0.7] }, $Easing: { $Left:
$Jease$.$InCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, x: -0.3, $SlideOut: true, $Easing: { $Left: $Jease$.$InCubic,
$Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, x: -0.3, $During: { $Left: [0.3, 0.7] }, $Easing: { $Left:
$Jease$.$InCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, x: 0.3, $SlideOut: true, $Easing: { $Left: $Jease$.$InCubic,
$Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, y: 0.3, $During: { $Top: [0.3, 0.7] }, $Easing: { $Top:
$Jease$.$InCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, y: -0.3, $SlideOut: true, $Easing: { $Top: $Jease$.$InCubic,
$Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, y: -0.3, $During: { $Top: [0.3, 0.7] }, $Easing: { $Top:
$Jease$.$InCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, y: 0.3, $SlideOut: true, $Easing: { $Top: $Jease$.$InCubic,
$Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, x: 0.3, $Cols: 2, $During: { $Left: [0.3, 0.7] }, $ChessMode: {
$Column: 3 }, $Easing: { $Left: $Jease$.$InCubic, $Opacity: $Jease$.$Linear },
$Opacity: 2 },
{ $Duration: 1200, x: 0.3, $Cols: 2, $SlideOut: true, $ChessMode: { $Column: 3 },
$Easing: { $Left: $Jease$.$InCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, y: 0.3, $Rows: 2, $During: { $Top: [0.3, 0.7] }, $ChessMode: {
$Row: 12 }, $Easing: { $Top: $Jease$.$InCubic, $Opacity: $Jease$.$Linear },
$Opacity: 2 },
{ $Duration: 1200, y: 0.3, $Rows: 2, $SlideOut: true, $ChessMode: { $Row: 12 },
$Easing: { $Top: $Jease$.$InCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 },

62
{ $Duration: 1200, y: 0.3, $Cols: 2, $During: { $Top: [0.3, 0.7] }, $ChessMode: {
$Column: 12 }, $Easing: { $Top: $Jease$.$InCubic, $Opacity: $Jease$.$Linear },
$Opacity: 2 },
{ $Duration: 1200, y: -0.3, $Cols: 2, $SlideOut: true, $ChessMode: { $Column: 12 },
$Easing: { $Top: $Jease$.$InCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, x: 0.3, $Rows: 2, $During: { $Left: [0.3, 0.7] }, $ChessMode: {
$Row: 3 }, $Easing: { $Left: $Jease$.$InCubic, $Opacity: $Jease$.$Linear },
$Opacity: 2 },
{ $Duration: 1200, x: -0.3, $Rows: 2, $SlideOut: true, $ChessMode: { $Row: 3 },
$Easing: { $Left: $Jease$.$InCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, x: 0.3, y: 0.3, $Cols: 2, $Rows: 2, $During: { $Left: [0.3, 0.7],
$Top: [0.3, 0.7] }, $ChessMode: { $Column: 3, $Row: 12 }, $Easing: { $Left:
$Jease$.$InCubic, $Top: $Jease$.$InCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2
},
{ $Duration: 1200, x: 0.3, y: 0.3, $Cols: 2, $Rows: 2, $During: { $Left: [0.3, 0.7],
$Top: [0.3, 0.7] }, $SlideOut: true, $ChessMode: { $Column: 3, $Row: 12 }, $Easing:
{ $Left: $Jease$.$InCubic, $Top: $Jease$.$InCubic, $Opacity: $Jease$.$Linear },
$Opacity: 2 },
{ $Duration: 1200, $Delay: 20, $Clip: 3, $Assembly: 260, $Easing: { $Clip:
$Jease$.$InCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, $Delay: 20, $Clip: 3, $SlideOut: true, $Assembly: 260, $Easing: {
$Clip: $Jease$.$OutCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, $Delay: 20, $Clip: 12, $Assembly: 260, $Easing: { $Clip:
$Jease$.$InCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 },
{ $Duration: 1200, $Delay: 20, $Clip: 12, $SlideOut: true, $Assembly: 260, $Easing:
{ $Clip: $Jease$.$OutCubic, $Opacity: $Jease$.$Linear }, $Opacity: 2 }
];

var jssor_1_options = {
$AutoPlay: true,
$SlideshowOptions: {
$Class: $JssorSlideshowRunner$,
$Transitions: jssor_1_SlideshowTransitions,
$TransitionsOrder: 1
},
$ArrowNavigatorOptions: {
$Class: $JssorArrowNavigator$
},
$ThumbnailNavigatorOptions: {
$Class: $JssorThumbnailNavigator$,
$Cols: 10,
$SpacingX: 8,
$SpacingY: 8,
$Align: 360
}
};

var jssor_1_slider = new $JssorSlider$("jssor_1", jssor_1_options);

//responsive code begin

63
//you can remove responsive code if you don't want the slider scales while window
resizing
function ScaleSlider() {
var refSize = jssor_1_slider.$Elmt.parentNode.clientWidth;
if (refSize) {
refSize = Math.min(refSize, 800);
jssor_1_slider.$ScaleWidth(refSize);
}
else {
window.setTimeout(ScaleSlider, 30);
}
}
ScaleSlider();
$(window).bind("load", ScaleSlider);
$(window).bind("resize", ScaleSlider);
$(window).bind("orientationchange", ScaleSlider);
//responsive code end
});
</script>

<style>

/* jssor slider arrow navigator skin 05 css */


/*
.jssora05l (normal)
.jssora05r (normal)
.jssora05l:hover (normal mouseover)
.jssora05r:hover (normal mouseover)
.jssora05l.jssora05ldn (mousedown)
.jssora05r.jssora05rdn (mousedown)
*/
.jssora05l, .jssora05r {
display: block;
position: absolute;
/* size of arrow element */
width: 40px;
height: 40px;
cursor: pointer;
background: url('img/a17.png') no-repeat;
overflow: hidden;
}
.jssora05l { background-position: -10px -40px; }
.jssora05r { background-position: -70px -40px; }
.jssora05l:hover { background-position: -130px -40px; }
.jssora05r:hover { background-position: -190px -40px; }
.jssora05l.jssora05ldn { background-position: -250px -40px; }
.jssora05r.jssora05rdn { background-position: -310px -40px; }

/* jssor slider thumbnail navigator skin 01 css */


/*

64
.jssort01 .p (normal)
.jssort01 .p:hover (normal mouseover)
.jssort01 .p.pav (active)
.jssort01 .p.pdn (mousedown)
*/
.jssort01 .p {
position: absolute;
top: 0;
left: 0;
width: 72px;
height: 72px;
}

.jssort01 .t {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}

.jssort01 .w {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}

.jssort01 .c {
position: absolute;
top: 0px;
left: 0px;
width: 68px;
height: 68px;
border: #000 2px solid;
box-sizing: content-box;
background: url('img/t01.png') -800px -800px no-repeat;
_background: none;
}

.jssort01 .pav .c {
top: 2px;
_top: 0px;
left: 2px;
_left: 0px;
width: 68px;
height: 68px;
border: #000 0px solid;

65
_border: #fff 2px solid;
background-position: 50% 50%;
}

.jssort01 .p:hover .c {
top: 0px;
left: 0px;
width: 70px;
height: 70px;
border: #fff 1px solid;
background-position: 50% 50%;
}

.jssort01 .p.pdn .c {
background-position: 50% 50%;
width: 68px;
height: 68px;
border: #000 2px solid;
}

* html .jssort01 .c, * html .jssort01 .pdn .c, * html .jssort01 .pav .c {
/* ie quirks mode adjust */
width /**/: 72px;
height /**/: 72px;
}

.style1
{
font-family: "Comic Sans MS";
font-size: xx-large;
color: #6600CC;
height: 440px;
width: 284px;
}

.style2
{
width: 421px;
height: 473px;
margin-left: 0px;
background-color: #D9CF1F;
}

.style3
{
height: 440px;
width: 158px;
}
.style4
{

66
background-color: #D9CF1F;
}

.style5
{
height: 483px;
}

.style6
{
font-size: large;
color: #00FFFF;
width: 928px;
top: 0px;
left: 0px;
height: 74px;
}

</style>

</head>
<body>
<form id="form1" runat="server">
<table width="850px" align="center" cellpadding="0" cellspacing="0" border="1">
<%-- --%>
<tr align="left" valign="top">
<td align="left" valign="top">
<table width="850px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" colspan="2" style="width: 928px; top: 0px; left: 0px; height:
81px;">
<div id="jssor_1" style="position: relative; margin: 0 auto; top: 0px; left: 0px;
width: 800px; height: 456px; overflow: hidden; visibility: hidden; background-color:
#24262e;">
<!-- Loading Screen -->
<div data-u="loading" style="position: absolute; top: 0px; left: 0px;">
<div style="filter: alpha(opacity=70); opacity: 0.7; position: absolute; display: block;
top: 0px; left: 0px; width: 100%; height: 100%;">
</div>
<div style="position: absolute; display: block; background: url('img/loading.gif') no-
repeat center center;
top: 0px; left: 0px; width: 100%; height: 100%;">
</div>
</div>
<div data-u="slides" style="cursor: default; position: relative; top: 0px; left: 0px;
width: 800px; height: 356px; overflow: hidden;">
<div data-p="144.50" style="display: none;">
<img data-u="image" src="img/Screenshot%20(3).png" />
<img data-u="thumb" src="img/images%20(4).jpg" />

67
</div>
<div data-p="144.50" style="display: none;">
<img data-u="image" src="img/Screenshot%20(7).png" />
<img data-u="thumb" src="img/images%20(9).jpg" />
</div>
<div data-p="144.50" style="display: none;">
<img data-u="image" src="img/13_final_wtext-_v289768024_.jpg"/>
<img data-u="thumb" src="img/images%20(50).jpg" />
</div>
<div data-p="144.50" style="display: none;">
<img data-u="image" src="img/Quotes-About-Reading[1].png"/>
<img data-u="thumb" src="img/images%20(49).jpg" />
</div>
<div data-p="144.50" style="display: none;">
<img data-u="image" src="img/jerry_reading_book-t3[1].jpg" />
<img data-u="thumb" src="img/images%20(39).jpg" />
</div>
<div data-p="144.50" style="display: none;">
<img data-u="image" <img src="img/book_keychain_by_redbird7-d5gwo3g[1].jpg"
/>
<img data-u="thumb" src="img/images%20(30).jpg" />
</div>
<div data-p="144.50" style="display: none;">
<img data-u="image" src="img/adorable-aww-book-cute-glasses-Favim.com-
361336[1].jpg"/>
<img data-u="thumb" src="img/images%20(18).jpg" />
</div>
<div data-p="144.50" style="display: none;">
<img data-u="image" src="img/cartoon-book[1].jpg"/>
<img data-u="thumb" src="img/images%20(16).jpg" />
</div>
<div data-p="144.50" style="display: none;">
<img data-u="image" src="img/yabooks[1].jpg" />
<img data-u="thumb" src="img/images%20(7).jpg" />
</div>
<div data-p="144.50" style="display: none;">
<img data-u="image" src="img/Nature-Girls-Reading-The-Book-Wallpapers[2].jpg"
/>
<img data-u="thumb" src="img/images%20(42).jpg" />
</div>
<div data-p="144.50" style="display: none;">
<img data-u="image"src="img/Screenshot%20(5).png" />
<img data-u="thumb" src="img/images%20(31).jpg" />
</div>

</div>
<!-- Thumbnail Navigator -->
<div data-u="thumbnavigator" class="jssort01" style="position: absolute; left: 0px;
bottom: 0px; width: 800px; height: 100px;" data-autocenter="1">

68
<!-- Thumbnail Item Skin Begin -->
<div data-u="slides" style="cursor: default;">
<div data-u="prototype" class="p">
<div class="w">
<div data-u="thumbnailtemplate" class="t">
</div>
</div>
<div class="c">
</div>
</div>
</div>
<!-- Thumbnail Item Skin End -->
</div>
<!-- Arrow Navigator -->
<span data-u="arrowleft" class="jssora05l" style="top: 158px; left: 8px; width: 40px;
height: 40px;"></span><span data-u="arrowright" class="jssora05r" style="top:
158px;
right: 8px; width: 40px; height: 40px;"></span>
</div>
</td>
</tr>
<tr>
<td align="right" style="height: 19px; background-color: #D9CF1F;">
</td>
</tr>
<tr>
<td align="left" valign="top">
<asp:Menu ID="Menu2" runat="server" BackColor="Green"
DynamicHorizontalOffset="2"
Font-Names="Verdana" Font-Size="Small" ForeColor="White"
StaticSubMenuIndent="10px"
Orientation="Horizontal" Width="100%">
<DynamicHoverStyle BackColor="White" ForeColor="#000066"
BorderColor="#000066" />
<DynamicMenuItemStyle BorderColor="White" BorderStyle="Solid"
BorderWidth="1px" HorizontalPadding="5px"
VerticalPadding="2px" BackColor="#000066" ForeColor="White" />
<DynamicMenuStyle BackColor="#000066" BorderColor="#000066"
BorderStyle="Solid" BorderWidth="1px" />
<DynamicSelectedStyle BackColor="#6699FF" />
<Items>
<asp:MenuItem NavigateUrl="~/MainPage.aspx" Text="Home" Value="Home" />
<asp:MenuItem NavigateUrl="~/Customer/CustomerLoginPage.aspx"
Text="Customer" Value="Customer">
</asp:MenuItem>
<asp:MenuItem Text="&#160;&#160;Employee" Value="Employee"
NavigateUrl="~/Employee/LoginPage.aspx">
</asp:MenuItem>
<asp:MenuItem Text="&#160;&#160;Admin" Value="Admin"
NavigateUrl="~/Admin/Login.aspx">

69
</asp:MenuItem>
</Items>
<StaticHoverStyle BackColor="White" ForeColor="#000066"
BorderColor="#000066" BorderStyle="Solid"
BorderWidth="1px" />
<StaticMenuItemStyle BorderColor="White" BorderStyle="Solid"
BorderWidth="1px" HorizontalPadding="30px"
VerticalPadding="2px" />
<StaticMenuStyle BorderColor="#B5C7DE" BorderStyle="Solid"
BorderWidth="1px" />
<StaticSelectedStyle BackColor="#6699FF" />
</asp:Menu>
</td>
</tr>
<tr>
<td valign="top" align="left" style="background-color: #D9CF1F;" class="style5">
<table style="width: 100%; height: 466px;">
<tr>
<td style="text-decoration: underline; background-color: #D9CF1F;"
class="style1">
CONTACT US:<br class="style4" />
MOBILE:9786655451<br class="style4" />
LANDLINE:02223058861<br class="style4" />
ADDR:SHOP NO. 45, JK COMPLEX,SEF ROAD,VASAI (W),MUMBAI-
401202.</td>
<td style="background-color: #D9CF1F;" class="style3">
&nbsp;</td>
<td style="height: 440px">
<img alt="" class="style2"
src="img/slider_1.jpg" /><span class="style4"> </span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" valign="middle" colspan="2"
style="background-color: #D9CF1F;" class="style6">
<strong>**Terms and Conditions apply. Discount can only be availed by registered
user.</strong></td>
</tr>
<tr>
<td align="center" valign="middle" colspan="2" style="width: 928px; top: 0px; left:
0px;
height: 100px;" class="header">
<marquee scrolldelay="5" id="m" runat="server" scrollamount="3" direction="Right"

style="height: 98px; margin-top: 0px; background-color: #D9CF1F; color: #FF0000;


font-family: 'Times New Roman', Times, serif; font-weight: 700; font-size: xx-
large;"> Welcome !!! Welcome !!! Welcome !!!

70
</marquee>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>

STYLE.CSS

.button
{
font-family: Tahoma;
color: #FFFFFF;

background-color: #0099FF;
font-size: large;
border: 1 solid #d6d3d3;
text-decoration: none;
font-weight: 700;
text-align: center;
}
.button:hover
{
font-family: Tahoma;
color: #000000;
background-color: #6600CC;
font-size: 13px;
border: 1 solid #d6d3d3;
text-decoration: none;
}

.header
{
background-color: #FFFFFF;
color: #FFFF00;
background-image: url('img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
font-weight: 700;
font-size: large;
}

71
.boxMain
{
border: 1px solid #000033;

background-color:WHITE;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000033;
font-weight: normal;

height: 132px;

background-position: center;

}
.textbox
{
background-color: #FAF8CC;
font-family: Verdana, Arial, Helvetica, sans-serif;
border: 1px solid #4A4A95;
font-size: medium;
padding-left: 4px;
}

body {
background-color: #000000;
color: #FFFFFF;
background-image: url(images/body_bg.jpg);
background-repeat: repeat-y;
background-position: center;

WEB.CONFIG

<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config 10.89.4.72 user id=sa; password=;
-->
<configuration>
<appSettings/>

72
<connectionStrings>
<add name="con" connectionString="Data Source=.;Initial Catalog=Book; integrated
security =true;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true" targetFramework="4.0">
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<!--<authentication mode="Windows"/>
<authentication mode="Forms">
<forms name="login" loginUrl="Login.aspx" />-->
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">


<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<!--</authentication>
<authorization>
<allow roles="Member" />
<allow users="Admin" />
<deny users="*" />
</authorization>-->
<pages controlRenderingCompatibilityVersion="3.5"
clientIDMode="AutoID"/></system.web>
</configuration>

WEB.SITEMAP

<?xml version="1.0" encoding="utf-8" ?>


<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Mainpage.aspx" title="MainPage" description="">

73
<siteMapNode url="" title="Customer" description="">

<siteMapNode url="~/Customer/CustomerSales.aspx" title="Sales" description="" />


<siteMapNode url="~/Customer/EditCustomer.aspx" title="Edit Profile"
description="" />
<siteMapNode url="~/Customer/Bill.aspx" title="Bill" description="" />
<siteMapNode url="~/Customer/CustomerHome.aspx" title="Customers Home"
description="" />
<siteMapNode url="~/Customer/CustomerLoginPage.aspx"
title="CustomerLoginPage" description="" />
<siteMapNode url="~/Customer/CustomerLogoutPage.aspx" title="Customer Logout
Page" description="" />
<siteMapNode url="~/Customer/CustomerChangePassword.aspx" title="Customer
Change Password" description="" />

<siteMapNode url="~/Customer/forgotPassword.aspx" title="forgotPassword"


description="" />

<siteMapNode url="~/Customer/ProductReport.aspx" title="Product list"


description="" />

</siteMapNode>

<siteMapNode url="" title="Employee" description="">

<siteMapNode url="~/Employee/AddSupplier.aspx" title="Add Supplier"


description="" />
<siteMapNode url="~/Employee/Bill.aspx" title="Bill" description="" />
<siteMapNode url="~/Employee/Changepass.aspx" title="Change Password"
description="" />
<siteMapNode url="~/Employee/EditCustomer.aspx" title="EditCustomer"
description="" />
<siteMapNode url="~/Employee/forgotPassword.aspx" title="forgotPassword"
description="" />
<siteMapNode url="~/Employee/CityMaster.aspx" title="City" description="" />
<siteMapNode url="~/Employee/EditCity.aspx" title="EditCity" description="" />
<siteMapNode url="~/Employee/Edit State.aspx" title="Edit State" description="" />
<siteMapNode url="~/Employee/ProductMaster.aspx" title="Product Master"
description="" />
<siteMapNode url="~/Employee/StateMaster.aspx" title="State Master"
description="" />
<siteMapNode url="~/Employee/Home.aspx" title="Home" description="" />
<siteMapNode url="~/Employee/LoginPage.aspx" title="Login Page" description=""
/>
<siteMapNode url="~/Employee/Logout.aspx" title="Logout" description="" />
<siteMapNode url="~/Employee/ProductReport.aspx" title="Product Report"
description="" />

74
<siteMapNode url="~/Employee/PurchaseMaster.aspx" title="Purchase Master"
description="" />
<siteMapNode url="~/Employee/PurchaseReport.aspx" title="Purchase Report"
description="" />
<siteMapNode url="~/Employee/RemoveQty.aspx" title="RemoveQty"
description="" />
<siteMapNode url="~/Employee/Sales.aspx" title="Sales" description="" />
<siteMapNode url="~/Employee/SalesReport.aspx" title="Sales Report"
description="" />
<siteMapNode url="~/Employee/SearchCustomer.aspx" title="Search Customer"
description="" />
<siteMapNode url="~/Employee/SearchProduct.aspx" title="Search Product"
description="" />
<siteMapNode url="~/Employee/SearchPurchase.aspx" title="Search Purchase"
description="" />
<siteMapNode url="~/Employee/SearchRemovedQty.aspx" title="SearchRemoved
qty" description="" />
<siteMapNode url="~/Employee/SearchSales.aspx" title="Search Sales"
description="" />
<siteMapNode url="~/Employee/SupplierReport.aspx" title="Supplier Report"
description="" />
<siteMapNode url="~/Employee/SearchSupplier.aspx" title="Search Supplier"
description="" />
<siteMapNode url="~/Employee/UpdateSales.aspx" title="UpdateSales"
description="" />
<siteMapNode url="~/Employee/EditSupplier.aspx" title="Edit Supplier"
description="" />
</siteMapNode>
<siteMapNode url="" title="Admin" description="">

<siteMapNode url="~/Admin/changepassword.aspx" title="change password"


description="" />
<siteMapNode url="~/Admin/Home.aspx" title="Home" description="" />
<siteMapNode url="~/Admin/LockUser.aspx" title="LockUser" description="" />
<siteMapNode url="~/Admin/Login.aspx" title="Login" description="" />
<siteMapNode url="~/Admin/Logout.aspx" title="Logout" description="" />
<siteMapNode url="~/Admin/Registration.aspx" title="registration" description=""
/>

</siteMapNode>

</siteMapNode>
</siteMap>

ADMINMASTERPAGE.MASTER

<%@ Master Language="C#" AutoEventWireup="true"


CodeFile="~/Admin/AdminMasterPage.master.cs"
Inherits="Admin_AdminMasterPage" %>

75
<!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">
<link href="../Style.css" rel="stylesheet" type="text/css">
<script language="javascript" type ="text/javascript" >
history.go(1);
</script>
<title></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<table width="850px" border="0" align="center" cellpadding="0" cellspacing="0"
class="boxMain">

<tr>
<td>
<table width="850px" border="0" cellspacing="0" cellpadding="4" >

<tr>
<td align="center" colspan="2"
style ="width:auto; top: 0px; left: 0px; height: 65px;" class="header" > </td>
</tr>

<tr>
<td height="2" align ="left" colspan="2" valign="top" > <span class="h2">
Welcome: <asp:Label ID="lblName" runat ="server" Text =""></asp:Label>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; </span></td>
</tr>
<tr>
<td align="right" colspan="2" height="2" valign="top">
<asp:SiteMapPath ID="SiteMapPath1" runat="server">
</asp:SiteMapPath>
</td>
</tr>
<tr>
<td width="193" valign="top" align ="left" >

76
<asp:Menu ID="MenuAdmin" runat="server"
Font-Names="Verdana"
ForeColor="#FF99FF" StaticSubMenuIndent="10px" BackColor="#660066"
BorderWidth="1px"
DynamicHorizontalOffset="2" >

<DynamicHoverStyle BackColor="#FF66CC" ForeColor="#660066" />


<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px"
BorderColor="#FF33CC" BorderStyle="Solid" BorderWidth="1px" />
<DynamicMenuStyle BackColor="#660066" />
<DynamicSelectedStyle BackColor="#FFCC66" />

<Items>
<asp:MenuItem Text="Home Page" Value="Home Page"
NavigateUrl="~/Admin/Home.aspx"
Selected="True">
<asp:MenuItem NavigateUrl="~/Admin/Registration.aspx" Text="Add Employee"
Value="Add Employee"></asp:MenuItem>
</asp:MenuItem>

<asp:MenuItem Text="Lock/Unlock" Value="Lock/Unlock"


NavigateUrl="~/Admin/LockUser.aspx">
</asp:MenuItem>

<asp:MenuItem Text=" Change Password" Value=" Change Password"


NavigateUrl="~/Admin/changepassword.aspx"></asp:MenuItem>
<asp:MenuItem NavigateUrl="~/Admin/ReplyMaster.aspx" Text="FeedBack"
Value="FeedBack"></asp:MenuItem>
<asp:MenuItem Text="Logout" Value=" Logout"
NavigateUrl="~/Admin/Logout.aspx"></asp:MenuItem>

</Items>

<StaticHoverStyle BackColor="#FF99FF" ForeColor="#6600CC"


BorderColor="#6600CC"
BorderStyle="Solid" BorderWidth="1px" />
<StaticMenuItemStyle
BorderColor="#FF66CC" BorderStyle="Solid" BorderWidth="1px"
HorizontalPadding="5px" VerticalPadding="2px" />
<StaticMenuStyle BorderColor="#FF66CC" BorderStyle="Solid"
BorderWidth="1px"
HorizontalPadding="2px" VerticalPadding="2px"

77
/>

</asp:Menu>
</td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td width="900" valign="top" align ="left" style="height:500px" >
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

</asp:ContentPlaceHolder></td>
</tr>
<tr>
<td align="right" valign ="bottom" colspan="2"
style ="width:auto; top: 0px; left: 0px; height: 50px;" class="header" >
<font size="1pt" color="Black" ><asp:Label ID="lblFooter" runat ="server" Text
="Developed by And "></asp:Label> </font></td>
</tr>

</table>
</td>
</tr>

</table>
</form>
</body>
</html>

ADMINCHANGEPASSWORD.ASPX

<%@ Page Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master"


AutoEventWireup="true" CodeFile="changepassword.aspx.cs"
Inherits="Admin_changepassword" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"


Runat="Server">
<table width ="650px" style ="height :400px" cellpadding="0" >
<tr>
<td class="style1">&nbsp;&nbsp;</td>
</tr>
<tr align ="center" valign ="middle" >
<td align ="center" valign ="middle" class="style1" >
<table BORDER="0" CELLSPACING="0" CELLPADDING="2" ALIGN="center"
class="boxMain">
<tr>
<td align="center" colspan="2" class="header" valign="middle">
&nbsp;</td>
</tr>
<tr>
<td align="center" colspan="2"

78
style="height: 293px; background-color: #CCFFFF;">
<table border="0" cellpadding="1" cellspacing="0" style="width: 591px;
class="boxMain" border-collapse: collapse">
<tr>
<td style="width: 579px">
<table border="0" cellpadding="1" cellspacing="1" class="boxMain">
<tr>
<td align="center" colspan="2" class="style2">
<strong>Change Your Password</strong></td>
</tr>
<tr>
<td align="right" class="style1" >
<asp:Label ID="Label1" runat="server" Text="User Name:"></asp:Label></td>
<td align="left" style="width: 378px" class="style1">
<asp:TextBox ID="txtUserName" CssClass="textbox" runat="server"
ReadOnly="True" Width="140px"></asp:TextBox>
<asp:Label ID="lblName" Visible ="false" runat="server" Text="Label"
Width="156px"></asp:Label></td>
</tr>
<tr>
<td align="right" style="width: 159px" class="style1">
<asp:Label ID="CurrentPasswordLabel" runat="server">Password:</asp:Label></td>
<td align="left" style="width: 378px" class="style1">
<asp:TextBox ID="txtPassword" CssClass="textbox" runat="server"
TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator
ID="CurrentPasswordRequired" runat="server" ControlToValidate="txtPassword"
ErrorMessage="Password is required." ToolTip="Please enter Password."
ValidationGroup="ChangePassword1"
SetFocusOnError="True">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" style="width: 159px" class="style1">
<asp:Label ID="NewPasswordLabel" runat="server">New
Password:</asp:Label></td>
<td align="left" style="width: 378px" class="style1">
<asp:TextBox ID="txtNPassword" CssClass="textbox" runat="server"
TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator
ID="NewPasswordRequired" runat="server" ControlToValidate="txtNPassword"
ErrorMessage="Please enter New password."
ToolTip="please enter New password." ValidationGroup="ChangePassword1"
SetFocusOnError="True">*</asp:RequiredFieldValidator>&nbsp;
</td>
</tr>
<tr>
<td align="center" class="style1" >
&nbsp;<asp:Label ID="ConfirmNewPasswordLabel" runat="server">Confirm New
Password:</asp:Label>
</td><td align="left" class="style1">
<asp:TextBox

79
ID="txtCNPassword" runat="server" CssClass="textbox"
TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator
ID="ConfirmNewPasswordRequired" runat="server"
ControlToValidate="txtCNPassword"
ErrorMessage="Please enter Confirm New Password." ToolTip="Please enter
Confirm New Password."
ValidationGroup="ChangePassword1"
SetFocusOnError="True">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="center" colspan="2" style="color: red" class="style1">
&nbsp;<asp:CompareValidator
ID="NewPasswordCompare" runat="server" ControlToCompare="txtNPassword"
ControlToValidate="txtCNPassword" Display="Dynamic" ErrorMessage="The
Confirm New Password must match the New Password entry."
ValidationGroup="ChangePassword1"
SetFocusOnError="True">*</asp:CompareValidator>
<asp:Label ID="lblMsg" runat="server" Text="..."
Visible="False"></asp:Label></td>
</tr>
<tr>

<td colspan ="2" align="center" valign ="middle" class="style1" >


<asp:Button ID="ChangePasswordPushButton" runat="server"
Text="Change Password" CssClass="button" ValidationGroup="ChangePassword1"
OnClick="ChangePasswordPushButton_Click" />
&nbsp;
<asp:Button ID="CancelPushButton" runat="server" CausesValidation="False"
Text="Cancel" CssClass="button" OnClick="CancelPushButton_Click" />
</td>
</tr>
</table>
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
ShowMessageBox="True" ShowSummary="False"
ValidationGroup="ChangePassword1" />
</td>
</tr>
</table>
</td>
</tr>

</table>
</td>
</tr>
</table>
</asp:Content>

<asp:Content ID="Content3" runat="server" contentplaceholderid="head">


<style type="text/css">

80
.style1
{
background-color: #CCFFFF;
}
.style2
{
background-color: #FFFFFF;
color: #FFFF00;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
font-size: large;
font-family: "Times New Roman", Times, serif;
}
</style>
</asp:Content>

ADMINHOME.ASPX

<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile


="~/Admin/AdminMasterPage.master" CodeFile="Home.aspx.cs" Inherits="Home"
%>

<asp:Content ID="C" runat ="server" ContentPlaceHolderID


="ContentPlaceHolder1" >
<%--<div>

</div>--%>
<div style="text-align: center">
<table width="96%" cellpadding="0" cellspacing="0" class="tableborder">
<tr>
<td align="center" style="height: 320px; background-color: #66FFFF;"
valign="middle">
<br />
<br />
</td>
</tr>
<tr>
<td style="height: 123px; background-color: #66FFFF;">
</td>
</tr>
</table>
</div>
</asp:Content>

LOCKUSER.ASPX

81
<%@ Page Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master"
AutoEventWireup="true" CodeFile="LockUser.aspx.cs" Inherits="Admin_LockUser"
%>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"


Runat="Server">
<table width ="800px" cellpadding ="0" cellspacing ="0">
<tr align ="center" valign ="middle" >
<td align ="center" valign ="middle" style="background-color: #CCFFFF" >
<table style="width: 600px" cellpadding ="0" cellspacing ="0" class ="box ">

<tr>
<td class="style2" align ="center" valign ="middle" height="20" >
Search User

</td>
</tr>

<tr>
<td align ="center" valign ="middle" height="20" class="style1" >

</td>
</tr>

<tr>

<td class="style1">
<asp:GridView ID="grdUser" runat="server" DataKeyNames="userId"
AutoGenerateColumns ="False" CellPadding="3"
GridLines="Horizontal" Width ="400px" BackColor="White"
BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
CssClass="style1">
<AlternatingRowStyle BackColor="#F7F7F7" />
<Columns>

<asp:BoundField DataField ="FName" HeaderText="User Name" />


<asp:BoundField DataField ="LName" HeaderText="Surname" />
<asp:BoundField DataField ="MobileNo" HeaderText="MobileNo" />
<asp:BoundField DataField ="Status1" HeaderText="Status" />
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="lnkReply" runat ="server" Text ='<%# Eval("Status") %>'
OnClick ="lnkReply_Click"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>

82
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C"
HorizontalAlign="Right" />
<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True"
ForeColor="#F7F7F7" />

</asp:GridView>
</td>
</tr>

</table>
</td>
</tr>
</table>
</asp:Content>

<asp:Content ID="Content3" runat="server" contentplaceholderid="head">


<style type="text/css">
.style1
{
background-color: #66FFFF;
}
.style2
{
background-color: #66FFFF;
color: #FFFF00;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
}
</style>
</asp:Content>

ADMINLOGIN.ASPX

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs"


Inherits="Admin_login" %>

<head>
<link href="../Style.css" rel="stylesheet" type="text/css">

<style type="text/css">
.style1

83
{
height: 3px;
width: 301px;
background-color: #CCFFFF;
}
.style2
{
width: 301px;
}
.style3
{
height: 76px;
background-color: #66FFFF;
}
.style4
{
background-color: #66FFFF;
color: #FFFF00;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
height: 17px;
font-size: large;
font-weight: 700;
}
.style6
{
height: 24px;
color: #000000;
background-color: #66FFFF;
font-weight: 700;
font-size: small;
font-family: Arial, Helvetica, sans-serif;
}
.style7
{
width: 281px;
height: 24px;
background-color: #66FFFF;
}
.style8
{
width: 281px;
background-color: #66FFFF;
}
.style9
{
font-size: small;
background-color: #66FFFF;

84
}
.style10
{
background-color: #66FFFF;
}
</style>

</head>

<form id="f" runat="server">


<br />
<div align="center">
<table align="center" cellpadding="2" cellspacing="2"
style="width: 422px; height: 307px; background-color: #CCFFFF;">
<tr>
<td class="style1">
<asp:Image ID="Image3" style="float:left" Imageurl="~/images/admin.png"
runat="server"
Height="207px" Width="216px" />
</td>
</tr>
<tr>
<td class="style2">
</td>
</tr>
<tr>
<td class="style2">
<table align="center" class="boxMain">
<tr>
<td align="center" class="style4" colspan="2">
&nbsp;ADMIN LOGIN&nbsp;
</td>
</tr>
<tr>
<td align="right" class="style9" >
<strong style="font-family: Arial, Helvetica, sans-serif">LoginName:
</strong>
</td>
<td align="left" class="style8">
<asp:textbox id="txtLoginName" runat="server" cssclass="textbox"
maxlength="10"></asp:textbox>
<asp:requiredfieldvalidator id="ReqLoginname" runat="server"
controltovalidate="txtLoginName"
display="None" errormessage="Enter Login Name" setfocusonerror="True"
validationgroup="login">*</asp:requiredfieldvalidator>
</td>
</tr>
<tr>
<td align="right" class="style6">
Password:

85
</td>
<td align="left" class="style7">
<asp:textbox id="txtPassword" runat="server" cssclass="textbox" maxlength="8"
textmode="Password"></asp:textbox>
<asp:requiredfieldvalidator id="ReqPassword" runat="server"
controltovalidate="txtPassword"
display="None" errormessage="Enter Password" setfocusonerror="True" text="*"
validationgroup="login"></asp:requiredfieldvalidator>
</td>
</tr>
<tr>
<td align="left" class="style10" >
</td>
<td align="left" class="style8">
<asp:label id="lblloginmsg" runat="server" forecolor="Red"
style="font-size: medium; font-weight: 700"></asp:label>
</td>
</tr>
<tr>
<td align="center" colspan="2" valign="middle" class="style3">
<asp:button id="btnSubmit" runat="server" cssclass="button" height="29px"
onclick="btnSubmit_Click"
text="SIGN IN" validationgroup="login" BorderStyle="Solid" Width="118px" />
<asp:validationsummary id="ValidationSummary1" runat="server"
showmessagebox="True"
showsummary="False" validationgroup="login" Height="70px" Width="323px"
style="font-size: medium; font-weight: 700" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="style2">
&nbsp;
</td>
</tr>
</table>
</div>
</form>

ADMINLOGOUT.ASPX

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Logout.aspx.cs"


Inherits="Logout" %>

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

86
<head runat="server">
<title> .</title>
<link href="../Style.css" rel="stylesheet" type="text/css"></link>
<style type="text/css">
.style1
{
background-color: #00FFFF;
}
.style2
{
background-color: #00FFFF;
color: #FFFF00;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div> <table width ="850pxpx" style ="height :400px" cellpadding="0" >
<tr>
<td>&nbsp;&nbsp;</td>
</tr>
<tr align ="center" valign ="middle" >
<td align ="center" valign ="middle" >
<table BORDER="0" CELLSPACING="0" CELLPADDING="2" ALIGN="center"
class="boxMain">
<tr>
<td align="center" colspan="2" style ="height :50px" class ="style2"
valign="middle" >
&nbsp;</td>
</tr>
<tr>
<td align="center" colspan="2" style="height: 293px" class="style1">
<asp:Panel ID="Panel1" runat="server"
Height="50px" HorizontalAlign="Center" Width="230px" CssClass="style1">
<asp:Label ID="Label1" runat="server" Text="You have been logged out..."
style="font-size: medium"></asp:Label>&nbsp;<br />
<asp:HyperLink ID="HLogin" runat="server" CssClass="button"
NavigateUrl="~/Admin/Login.aspx">Login Back..</asp:HyperLink>&nbsp;&nbsp;
<asp:HyperLink ID="HLogin0" runat="server" CssClass="button"
NavigateUrl="~/MainPage.aspx">Home</asp:HyperLink>
</asp:Panel>
</td>
</tr>

</table>
</td>

87
</tr>
</table>

</div>
</form>
</body>
</html>

ADMIN REGISTRATION.ASPX

<%@ Page Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master"


AutoEventWireup="true" CodeFile="Registration.aspx.cs"
Inherits="StudentRegistration" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"


Runat="Server">

<body >
<table width="100%">

<tr id="RegistrationForm" runat="server">


<td align="left" style="padding-left:40px;" class="style1" >
<table width="60%" align="left" cellpadding="0" cellspacing="2" class ="box" >
<tr>

<td align="center" colspan="2" class="header">Registration Form</td>


</tr>

<tr>
<td width="123" align="right" >&nbsp; </td>
<td width="440" align="left" >&nbsp; </td>
</tr>
<tr>
<td align="right" width="123">
Login Name:</td>
<td align="left" class="box_text" width="440">
<asp:TextBox ID="txtLogin" runat="server" CssClass="textbox"
MaxLength="10"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server"
ControlToValidate="txtLogin"

88
ErrorMessage="Login Name is required." SetFocusOnError="true"
ToolTip="Login Name is required." ValidationGroup="Login1"
Display="None"></asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td colspan="2" style="height:6px;" ></td>
</tr>
<tr>

<td align="right" >


First Name:</td>
<td align="left" >
<asp:TextBox ID="txtFirstName" CssClass="textbox" runat="server"
MaxLength="50"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="User Name is required." ControlToValidate ="txtFirstName"
ToolTip="First Name is required." ValidationGroup="Login1" SetFocusOnError
="true"
Display="None" ></asp:RequiredFieldValidator>

</td>
</tr>
<tr>
<td colspan="2" style="height:6px;" ></td>
</tr>
<tr>
<td align="right" >
Father Name:</td>
<td align="left" class="box_text" >
<asp:TextBox ID="txtFatherName" CssClass="textbox" runat="server"
MaxLength="50"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
ControlToValidate="txtFatherName" Display="None"
ErrorMessage="Father name is required" SetFocusOnError="true"
ValidationGroup="Login1" ></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td colspan="2" style="height:6px;" ></td>
</tr>
<tr>
<td align="right" >
&nbsp;</td>
<td align="left" >

89
&nbsp;</td>
</tr>
<tr>
<td colspan="2" style="height:6px;" ></td>
</tr>
<tr>
<td align="right" >
Last Name:</td>
<td align="left" class="box_text" >
<asp:TextBox ID="txtLastName" CssClass="textbox" runat="server"
MaxLength="50"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ErrorMessage="Last name is required" ControlToValidate ="txtLastName"
ValidationGroup="Login1" Display="None" SetFocusOnError ="true"
></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td colspan="2" style="height:6px;" ></td>
</tr>
<tr>
<td align="right" >
&nbsp;</td>
<td align="left" class="box_text" >
&nbsp;</td>
</tr>
<tr>
<td align="right" >
State</td>
<td align="left">
<asp:DropDownList
ID="ddlStates" runat="server" AppendDataBoundItems="True"
AutoPostBack="True"
onselectedindexchanged="ddlStates_SelectedIndexChanged" Width="200px"
CssClass="textbox">
<asp:ListItem Value="0">Select</asp:ListItem>
</asp:DropDownList>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server"
ControlToValidate="ddlStates" Display="None"
ErrorMessage="Select State" InitialValue="0" SetFocusOnError="true"
ValidationGroup="Login1"></asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td align="right" >
&nbsp;</td>
<td align="left">
&nbsp;</td>
</tr>

90
<tr>
<td align="right" >
City</td>
<td align="left">
<asp:DropDownList
ID="ddlCity" runat="server" AppendDataBoundItems="True"
Width="200px" CssClass="textbox" >
<asp:ListItem Value="0">Select</asp:ListItem>
</asp:DropDownList>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server"
ControlToValidate="ddlCity" Display="None"
ErrorMessage="Select City" InitialValue="0" SetFocusOnError="true"
ValidationGroup="Login1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td colspan="2" style="height:6px;" ></td>
</tr>
<tr>
<td align="right" >
Password: </td>
<td align="left" class="box_text" >
<asp:TextBox ID="txtPassword" CssClass="textbox" runat="server" MaxLength="8"
TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server"
ErrorMessage="Password is required." ControlToValidate ="txtPassword"
ToolTip="Password is required." ValidationGroup="Login1" SetFocusOnError
="true"
Display="None" ></asp:RequiredFieldValidator>

<asp:RegularExpressionValidator ID="valPassword" runat="server"


ControlToValidate="txtPassword" ValidationGroup="Login1" SetFocusOnError
="true" Display="None"
ErrorMessage="Minimum password length is 6"
ValidationExpression=".{6}.*" />

</td>
</tr>

<tr>
<td colspan="2" style="height:6px;" ></td>
</tr>
<tr>
<td align="right" >
Confirm Password:</td>

91
<td align="left" class="box_text" >
<asp:TextBox ID="txtconfimpassword" runat="server" TextMode="Password"
CssClass="textbox" MaxLength="8"></asp:TextBox>
<asp:RequiredFieldValidator ControlToValidate="txtconfimpassword"
Display="None" ErrorMessage="Confirm Password is Required."
ID="RequiredFieldValidator11" runat="server" ToolTip="Confirm Password is
Required." ValidationGroup="Login1" SetFocusOnError
="true"></asp:RequiredFieldValidator>

<asp:RegularExpressionValidator ID="RegularExprtxtconfimpasswordionValidator1"
runat="server"
ControlToValidate="txtconfimpassword" ValidationGroup="Login1"
SetFocusOnError ="true" Display="None"
ErrorMessage="Minimum password length is 6"
ValidationExpression=".{6}.*" />

<asp:CompareValidator ControlToCompare="txtPassword"
ControlToValidate="txtconfimpassword" Display="None"
ErrorMessage="Password dot not match" ID="CompareValidator1" runat="server"
ValidationGroup="Login1" SetFocusOnError ="true"></asp:CompareValidator>
</td>
</tr>
<tr>
<td colspan="2" style="height:6px;" ></td>
</tr>
<tr>
<td colspan="2" style="height:6px;" ></td>
</tr>
<tr>
<td align="right" valign="top" >
Mobile No:</td>
<td align="left" class="box_text" >
<asp:TextBox ID="txtMoibileNo" onKeyPress="return isNumber(event)"
CssClass="textbox" runat="server" MaxLength="10"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ErrorMessage="Mobile no is required" ControlToValidate ="txtMoibileNo"
ValidationGroup="Login1" Display="None" SetFocusOnError ="true"
></asp:RequiredFieldValidator>

<asp:RegularExpressionValidator ID="RegularMLehgth" runat="server"


ControlToValidate="txtMoibileNo" ValidationGroup="Login1" SetFocusOnError
="true" Display="None"
ErrorMessage="Minimum Mobile length is 10"
ValidationExpression=".{10}.*" />

92
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txtMoibileNo"
ErrorMessage="Please Enter Only Numbers"
ValidationExpression="^d*[0-9]*(|.\d*[0-9]|,\d*[0-9])?$"
ValidationGroup="Login1"></asp:RegularExpressionValidator>

</td>
</tr>
<tr>
<td colspan="2" style="height:6px;" ></td>
</tr>
<tr>
<td align="right" >
Email Id:</td>
<td align="left" >
<asp:TextBox ID="txtEmaildId" CssClass="textbox" runat="server"
MaxLength="50"></asp:TextBox>
<asp:RequiredFieldValidator
ControlToValidate="txtEmaildId" Display="None"
ErrorMessage="Emailid is required" ID="RequiredFieldValidator6" runat="server"
SetFocusOnError="true"
ValidationGroup="Login1"></asp:RequiredFieldValidator>

<asp:RegularExpressionValidator
controltovalidate="txtEmaildId" errormessage="Invalid Email" ID="reqemail"
runat="server"
validationexpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
SetFocusOnError="true" ValidationGroup
="Login1"></asp:RegularExpressionValidator>
</td>
</tr>

<tr>
<td >&nbsp;</td>
<td align="left">&nbsp;</td>
</tr>

<tr>
<td >&nbsp; </td>
<td align="left">
<asp:Button ID="btnsave" runat="server" Text ="Save" CssClass="button"
onclick="btnsave_Click1" ValidationGroup ="Login1" />
<asp:ValidationSummary ID="ValidationSummary1" runat="server"

93
ShowMessageBox="True" ShowSummary="False" ValidationGroup="Login1" />
</td>
</tr>
</table>
</td>
</tr>
<tr id="message" runat="server">
<td colspan="1" class="style1">

<tr>
<td class="style1" >
<asp:Label ID="lblMess" runat="server" ></asp:Label> </td>
</tr>

</td>

</tr>

<%-- --%>
</table>
</body>

</asp:Content>

<asp:Content ID="Content3" runat="server" contentplaceholderid="head">


<style type="text/css">
.style1
{
background-color: #CCFFFF;
}
</style>
</asp:Content>

REPLYMASTER.ASPX

<%@ Page Title="" Language="C#"


MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
CodeFile="ReplyMaster.aspx.cs" Inherits="Admin_ReplyMaster" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"


runat="Server">
<table width="800px" cellpadding="0" cellspacing="0">

94
<tr align="center" valign="middle">
<td align="center" valign="middle" style="background-color: #CCFFFF">
<table style="width: 600px" cellpadding="0" cellspacing="0" class="box ">
<tr>
<td class="header" align="center" valign="middle" height="20" colspan="2">
Search User
</td>
</tr>
<tr>
<td align="center" valign="middle" height="20" colspan="2">
</td>
</tr>
<tr>
<td colspan="2">
<asp:GridView ID="grdFeedBack" runat="server" BackColor="White"
BorderColor="White"
BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1"
EnableModelValidation="True"
GridLines="Both" DataKeyNames="QuestionId">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="lnkSelect" runat="server" Text="Select"
OnClick="lnkSelect_Click"></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
<HeaderStyle BackColor="#660066" Font-Bold="True" ForeColor="#E7E7FF" />
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
<RowStyle BackColor="#DEDFDE" ForeColor="Black" />
<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
</asp:GridView>
</td>
</tr>
<tr>
<td>
Reply
</td>
<td align="left">
<asp:TextBox ID="txtFeedBack" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan ="2">
<asp:Button ID="btnSave" runat ="server" Text ="Save" onclick="btnSave_Click" />
</td>
</tr>

95
</table>
</td>
</tr>
</table>
</asp:Content>

CUSTOMERHOME.ASPX

<%@ Page Title="" Language="C#"


MasterPageFile="~/Customer/CustomerMaster.master"AutoEventWireup="true"
CodeFile="CustomerHome.aspx.cs" Inherits="CustomerHome" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"


Runat="Server">
<p>
<asp:Image ID="Image1" ImageUrl="~/images/cut1.jpg" runat="server"
Height="227px" Width="295px" />
<asp:Image ID="Image3" ImageUrl="~/images/dance2.gif" sttyle="float:right"
runat="server"
Height="168px" style="margin-right: 0px" Width="321px" />
<asp:Image ID="Image2" ImageUrl="~/images/cut2.jpg" runat="server"
Height="291px" Width="652px" />
&nbsp;</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;</p>
</asp:Content>

CUSTOMERREGISTER.ASPX

<%@ Page Language="C#" MasterPageFile="~/Customer/CustomerMaster.master"


AutoEventWireup="true"
CodeFile="frmCustomerRegister.aspx.cs" Inherits="frmCustomerMaster" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"


runat="Server">
<table width="600PX" cellpadding="2" cellspacing="2">
<tr>
<td align="center" colspan="2" class="style1">
<table cellpadding="2" cellspacing="2" width="400px" class="boxMain">

96
<tr>
<td align="center" colspan="2" class="style3">
Customer
</td>
</tr>
<tr>
<td width="123" align="right" class="style2">
&nbsp;
</td>
<td width="440" align="left" class="style2">
&nbsp;
</td>
</tr>
<tr>
<td align="right" class="style2">
First Name:
</td>
<td align="left" class="style2">
<asp:TextBox ID="txtFirstName" CssClass="textbox" runat="server"
MaxLength="50"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="User Name is required."
ControlToValidate="txtFirstName" ToolTip="First Name is required."
ValidationGroup="Login1"
SetFocusOnError="true" Display="None"></asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td align="right" class="style2">
Father Name:
</td>
<td align="left" class="style2">
<asp:TextBox ID="txtFatherName" CssClass="textbox" runat="server"
MaxLength="50"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
ControlToValidate="txtFatherName"
Display="None" ErrorMessage="Father name is required" SetFocusOnError="true"
ValidationGroup="Login1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" class="style2">
Last Name:
</td>
<td align="left" class="style2">
<asp:TextBox ID="txtLastName" CssClass="textbox" runat="server"
MaxLength="50"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ErrorMessage="Last name is required"

97
ControlToValidate="txtLastName" ValidationGroup="Login1" Display="None"
SetFocusOnError="true"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" class="style2">
State
</td>
<td align="left" class="style2">
<asp:DropDownList ID="ddlStates" runat="server" AppendDataBoundItems="True"
ToolTip="State"
CssClass="textbox" AutoPostBack="True"
OnSelectedIndexChanged="ddlStates_SelectedIndexChanged">
<asp:ListItem Value="0">Select</asp:ListItem>
</asp:DropDownList>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server"
ControlToValidate="ddlStates"
Display="None" ErrorMessage="Select State" InitialValue="0"
SetFocusOnError="true"
ValidationGroup="Login1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" class="style2">
City
</td>
<td align="left" class="style2">
<asp:DropDownList ID="ddlCity" runat="server" AppendDataBoundItems="True"
ToolTip="State"
CssClass="textbox">
<asp:ListItem Value="0">Select</asp:ListItem>
</asp:DropDownList>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server"
ControlToValidate="ddlCity"
Display="None" ErrorMessage="Select City" InitialValue="0"
SetFocusOnError="true"
ValidationGroup="Login1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" class="style2">
Password</td>
<td align="left" class="style2">
<asp:TextBox ID="txtPassword" CssClass="textbox" runat="server"
MaxLength="15"
TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server"
ErrorMessage="Password is required."
ControlToValidate="txtPassword" ToolTip="Password is required."
ValidationGroup="Login1"

98
SetFocusOnError="true" Display="None"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="valPassword" runat="server"
ControlToValidate="txtPassword" ValidationGroup="Login1" SetFocusOnError
="true" Display="None"
ErrorMessage="Minimum password length is 6"
ValidationExpression=".{6}.*" />
</td>
</tr>
<tr>
<td align="right" valign="top" class="style2">
Mobile No:
</td>
<td align="left" class="style2">
<asp:TextBox ID="txtMoibileNo" CssClass="textbox"
runat="server" MaxLength="10"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ErrorMessage="Mobile no is required"
ControlToValidate="txtMoibileNo" ValidationGroup="Login1" Display="None"
SetFocusOnError="true"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularMLehgth" runat="server"
ControlToValidate="txtMoibileNo"
ValidationGroup="Login1" SetFocusOnError="true" Display="None"
ErrorMessage="Minimum Mobile length is 10"
ValidationExpression=".{10}.*" />
<asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server"
controltovalidate="txtMoibileNo"
errormessage="Please Enter Only Numbers" validationexpression="^d*[0-9]*(|.\d*[0-
9]|,\d*[0-9])?$"
validationgroup="Login1"></asp:regularexpressionvalidator>
</td>
</tr>
<tr>
<td align="right" class="style2">
Email Id:
</td>
<td align="left" class="style2">
<asp:TextBox ID="txtEmaildId" CssClass="textbox" runat="server"
MaxLength="50"></asp:TextBox>
<asp:RequiredFieldValidator ControlToValidate="txtEmaildId" Display="None"
ErrorMessage="Emailid is required"
ID="RequiredFieldValidator6" runat="server" SetFocusOnError="true"
ValidationGroup="Login1"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ControlToValidate="txtEmaildId"
ErrorMessage="Invalid Email"
ID="reqemail" runat="server" ValidationExpression="\w+([-+.']\w+)*@\w+([-
.]\w+)*\.\w+([-.]\w+)*"
SetFocusOnError="true"
ValidationGroup="Login1"></asp:RegularExpressionValidator>
</td>
</tr>

99
<tr>
<td class="style2">
&nbsp; Address</td>
<td align="left" class="style2">
&nbsp;
<asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine"
Height="35px" Width="302px"></asp:TextBox></td>
</tr>
<tr class="header">
<td class="style2">
&nbsp;
</td>
<td align="left" class="style2">
<asp:Button ID="btnsave" runat="server" Text ="Save" CssClass ="button"
onclick="btnsave_Click1" ValidationGroup="Login1" />
&nbsp;
<asp:HyperLink ID="HLogin1" runat="server" CssClass="button"
NavigateUrl="~/Customer/CustomerLoginPage.aspx" Height="24px">Login
Back..</asp:HyperLink>
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
ShowMessageBox="True"
ShowSummary="False" ValidationGroup="Login1" />

</td>
</tr>
</table>
</td>
</tr>
<tr id="message" runat="server">
<td colspan="1" class="style1">
</td>
</tr>
<tr>
<td class="style1">
<asp:Label ID="lblMess" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="left" class="style1">

</td>
</tr>
</table>
</asp:Content>
<asp:Content ID="Content3" runat="server" contentplaceholderid="head">
<link href="../Style.css" rel="stylesheet" type="text/css"></link>
<script language="javascript" type="text/javascript">
history.go(1);
</script>
<script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script>

100
<script src="../js/zoomable.min.js" type="text/javascript"></script>
<script src="../js/zoomable.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('img.demo1').zoomable();
$('img.demo2').zoomable({
padding: '60px',
bgcolor: 'hsl(0, 1%, 36%)',
opacity: 0.9,
blur: '10px',
speed: 800,
border: '7px solid #fff',
radius: '3px',
shadow: '0 0 23px #000',
});
$('img.demo3').zoomable({
fill: true
});
});
</script>
<style type="text/css">
.style1
{
background-color: #CCFFFF;
}
.style2
{
background-color: #66FFFF;
}
.style3
{
background-color: #66FFFF;
color: #FFFF00;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
font-weight: 700;
font-size: large;
}
</style>
</asp:Content>

CUSTOMERFORGOTPASSWORD.ASPX

<%@ Page Language="C#" AutoEventWireup="true"


CodeFile="forgotPassword.aspx.cs" Inherits="Customer_forgotPassword" %>

101
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>

<link href="../Style.css" rel="stylesheet" type="text/css"></link>


<style type="text/css">
.style1
{
background-color: #CCFFFF;
}
.style2
{
background-color: #CCFFFF;
color: #FFFF00;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
font-weight: 700;
font-size: large;
}
</style>
</head>
<form id="f" runat="server">
<table width="800px" border="0" align="center" cellpadding="2" cellspacing="2"
class="box ">
<tr>
<td>
<table width="850px" border="0" cellspacing="0" cellpadding="4">
<tr>
<td align="center" colspan="2" style="width: auto; top: 0px; left: 0px; height: 65px;"
class="header">
</td>
</tr>
<tr>
<td align="center" colspan="2" style="width: auto; top: 0px; left: 0px; height:
65px;">
<asp:image imageurl="~/images/computer-highfivebloke.gif" runat="server" id="im"
/>
</td>
</tr>
<tr>
<td align="right">
&nbsp;
</td>
</tr>
<tr>
<td align="center">
<table align="center" border="0" cellpadding="2" cellspacing="2" class="box "

102
width="400">
<tr>
<td align="center" class="style2" colspan="2">
Forgot Password
</td>
</tr>
<tr>
<td width="93" align="left" class="style1" >
&nbsp;
</td>
<td width="307" align="right" style="vertical-align: top" class="style1" >
&nbsp;
</td>
</tr>
<tr>
<td align="left" class="style1" >
Mobile No
</td>
<td align="left" style="vertical-align: top" class="style1" >
<label>
<asp:textbox id="txtMobile" runat="server" maxlength="10" width="150px"
cssclass="textbox"></asp:textbox>
<asp:requiredfieldvalidator id="ReqLoginname" runat="server"
controltovalidate="txtMobile"
display="None" errormessage="Enter Mobile " setfocusonerror="True"
validationgroup="login">*</asp:requiredfieldvalidator>
</label>
</td>
</tr>
<tr>
<td align="left" class="style1" >
EmailId
</td>
<td align="left" style="vertical-align: top" class="style1" >
<asp:textbox id="txtEmail" runat="server" cssclass="textbox" maxlength="100"
textmode="Password"
width="150px"></asp:textbox>
<asp:requiredfieldvalidator id="ReqPassword" runat="server"
controltovalidate="txtEmail"
display="None" errormessage="Enter Email Id" setfocusonerror="True" text="*"
validationgroup="login"></asp:requiredfieldvalidator>
</td>
</tr>
<tr>
<td class="style1" >
&nbsp;
</td>
<td class="style1" >
<asp:label id="lblPassword" runat="server"></asp:label>
</td>

103
</tr>
<tr>
<td class="style1" >
&nbsp;
</td>
<td align="left" class="style1" >
<asp:button id="btnSubmit" runat="server" cssclass="button"
onclick="btnSubmit_Click"
text="Ok" validationgroup="login" />
&nbsp;<asp:Button ID="btnBack" runat="server" CssClass="button"
onclick="btnBack_Click" Text="Back" />
&nbsp;<asp:validationsummary id="ValidationSummary1" runat="server"
showmessagebox="True"
showsummary="False" validationgroup="login" />
</td>
</tr>
<tr>
<td align="right" class="style1">
&nbsp;
</td>
<td align="left" class="style1">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" style="padding-left: 40px;">
&nbsp;
</td>
</tr>
<tr>
<td align="right" valign="bottom" colspan="2" style="width: auto; top: 0px; left:
0px;
height: 50px;" class="header">
<font size="1pt" color="Black">
<asp:label id="lblFooter" runat="server" text="Developed by "></asp:label>
</font>
</td>
</tr>
</table>
</form>

CUSTOMERMASTER.MASTER

<%@ Master Language="C#" AutoEventWireup="true"


CodeFile="CustomerMaster.master.cs"
Inherits="CustomerMaster" %>

104
<!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 id="Head1" runat="server">
<title></title>
<asp:ContentPlaceHolder ID="head" runat="server">
<link href="../Style.css" rel="stylesheet" type="text/css"></link>
<script language="javascript" type="text/javascript">
history.go(1);
</script>
<script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="../js/zoomable.min.js" type="text/javascript"></script>
<script src="../js/zoomable.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('img.demo1').zoomable();
$('img.demo2').zoomable({
padding: '60px',
bgcolor: 'hsl(0, 1%, 36%)',
opacity: 0.9,
blur: '10px',
speed: 800,
border: '7px solid #fff',
radius: '3px',
shadow: '0 0 23px #000',
});
$('img.demo3').zoomable({
fill: true
});
});
</script>
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<table width="850px" border="0" align="center" cellpadding="0" cellspacing="0"
class="boxMain">
<tr>
<td>
<table width="850px" border="0" cellspacing="0" cellpadding="4">
<tr>
<td align="center" colspan="2" style="width: auto; top: 0px; left: 0px; height: 65px;"
class="header">
</td>
</tr>
<tr>
<td height="2" align="left" colspan="2" valign="top">
<span class="h2">Welcome:
<asp:Label ID="lblName" runat="server" Text=""></asp:Label></span>

105
</td>
</tr>
<tr>
<td align="right" colspan="2" height="2" valign="top">
<asp:SiteMapPath ID="SiteMapPath1" runat="server" BorderColor="#FFFF80"
BorderStyle="Solid"
BorderWidth="1px" PathSeparator=">">
<CurrentNodeStyle BackColor="#FFC0FF" BorderColor="Blue"
BorderStyle="Groove" BorderWidth="1px"
ForeColor="#00C000" />
<NodeStyle BorderColor="#FFFF80" BorderStyle="Solid" BorderWidth="1px"
ForeColor="Teal" />
</asp:SiteMapPath>
</td>
</tr>
<tr>
<td valign="top" align="left">
<asp:Menu ID="MenuCust" runat="server" Font-Names="Verdana"
ForeColor="#FF99FF" StaticSubMenuIndent="10px"
BackColor="#660066" BorderWidth="1px" DynamicHorizontalOffset="2">
<DynamicHoverStyle BackColor="#FF66CC" ForeColor="#660066" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px"
BorderColor="#FF33CC"
BorderStyle="Solid" BorderWidth="1px" />
<DynamicMenuStyle BackColor="#660066" />
<DynamicSelectedStyle BackColor="#FFCC66" />
<Items>
<asp:MenuItem Text="Home Page" Value="Home Page"
NavigateUrl="~/Customer/CustomerHome.aspx"
Selected="True"></asp:MenuItem>
<asp:MenuItem Text="Edit Profile" Value="Edit Profile"
NavigateUrl="~/Customer/EditCustomer.aspx">
</asp:MenuItem>
<asp:MenuItem Text="Transaction" Value="Transaction">
<asp:MenuItem Text="Sales" Value="Return Book"
NavigateUrl="~/Customer/CustomerSales.aspx">
</asp:MenuItem>
<asp:MenuItem NavigateUrl="~/Customer/UpdateSales.aspx" Text="Update Sales"
Value="Update Sales">
</asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem NavigateUrl="~/Customer/frmQuestion.aspx" Text="FeedBack"
Value="FeedBack">
</asp:MenuItem>
<asp:MenuItem Text=" Change Password" Value=" Change Password"
NavigateUrl="~/Customer/CustomerChangePassword.aspx">
</asp:MenuItem>
<asp:MenuItem NavigateUrl="~/Customer/ProductReport.aspx" Text="Product List"
Value="Product List">
</asp:MenuItem>

106
<asp:MenuItem NavigateUrl="~/Customer/CustomerLogoutPage.aspx"
Text="Logout" Value="Logout">
</asp:MenuItem>
</Items>
<StaticHoverStyle BackColor="#FF99FF" ForeColor="#6600CC"
BorderColor="#6600CC" BorderStyle="Solid"
BorderWidth="1px" />
<StaticMenuItemStyle BorderColor="#FF66CC" BorderStyle="Solid"
BorderWidth="1px"
HorizontalPadding="5px" VerticalPadding="2px" />
<StaticMenuStyle BorderColor="#FF66CC" BorderStyle="Solid"
BorderWidth="1px" HorizontalPadding="2px"
VerticalPadding="2px" />
</asp:Menu>
&nbsp;
</td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td width="900" valign="top" align="left" style="height: 500px">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
<tr>
<td align="right" valign="bottom" colspan="2" style="width: auto; top: 0px; left:
0px;
height: 50px;" class="header">
<font size="1pt" color="Black">
<asp:Label ID="lblFooter" runat="server" Text="Developed by "></asp:Label>
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
</div>
</form>
</body>
</html>

CUSTOMERLOGIN.ASPX

<%@ Page Title="" Language="C#" AutoEventWireup="true"


CodeFile="CustomerLoginPage.aspx.cs"
Inherits="CustomerLoginPage" %>

<head>

107
<link href="../Style.css" rel="stylesheet" type="text/css"></link>
<style type="text/css">
.style1
{
color: #000000;
background-color: #66FFFF;
}
.style2
{
background-color: #CCFFFF;
color: #FFFFFF;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
width: auto;
top: 0px;
left: 0px;
height: 65px;
font-family: Algerian;
}
.box
{
width: 454px;
height: 155px;
margin-top: 9px;
background-color: #CCFFFF;
}
.style3
{
height: 36px;
background-color: #66FFFF;
}
.style4
{
height: 136px;
background-color: #CCFFFF;
}
.style5
{
color: #000000;
font-size: medium;
}
.style6
{
background-color: #CCFFFF;
color: #FFFF00;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');

108
background-repeat: repeat-x;
background-position: center;
}
.style7
{
background-color: #CCFFFF;
}
.style8
{
background-color: #66FFFF;
}
.style9
{
background-color: #66FFFF;
color: #FFFF00;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
}
</style>
</head>
<form id="f" runat="server">
<table width="800px" border="0" align="center" cellpadding="2" cellspacing="2"
class="box ">
<tr>
<td>
<table width="850px" border="0" cellspacing="0" cellpadding="4">
<tr>
<td align="center" colspan="2"
class="style2">
<h1 style="color: #FFFF00">
customer login</h1>
</td>
</tr>
<tr>
<td align="right" class="style4">

<asp:Image ID="Image2" ImageUrl="~/images/login1.png" runat="server"


style="float:left" Height="142px" Width="170px" />

<br />

</td>
</tr>
<tr>
<td align="center" class="style7">
<table align="center" border="0" cellpadding="2" cellspacing="2" class="box ">
<tr>

109
<td align="center" class="style9" colspan="2">
<h3>
<strong>LOGIN </strong>
</h3>
</td>
</tr>
<tr>
<td width="93" align="left" class="style8" >
&nbsp;
</td>
<td width="307" align="right" style="vertical-align: top" class="style8" >
&nbsp;
<asp:hyperlink id="HyperLink1" runat="server" cssclass="button"
NavigateUrl="~/Customer/forgotPassword.aspx">Forgot Password</asp:hyperlink>
</td>
</tr>
<tr>
<td align="left" class="style1">
<strong style="color: #000000; font-size: medium;">Login:
</strong>
</td>
<td align="left" style="vertical-align: top" class="style8" >
<label>
<asp:textbox id="txtLoginName" runat="server" maxlength="10" width="150px"
cssclass="textbox"></asp:textbox>
<asp:requiredfieldvalidator id="ReqLoginname" runat="server"
controltovalidate="txtLoginName"
display="None" errormessage="Enter Login Name " setfocusonerror="True"
validationgroup="login">*</asp:requiredfieldvalidator>
</label>
</td>
</tr>
<tr>
<td align="left" class="style1">
<span class="style5">Password:</span><strong>
</strong>
</td>
<td align="left" style="vertical-align: top" class="style8" >
<asp:textbox id="txtPassword" runat="server" cssclass="textbox" maxlength="10"
textmode="Password"
width="150px"></asp:textbox>
<asp:requiredfieldvalidator id="ReqPassword" runat="server"
controltovalidate="txtPassword"
display="None" errormessage="Enter Password" setfocusonerror="True" text="*"
validationgroup="login"></asp:requiredfieldvalidator>
</td>
</tr>
<tr>
<td class="style8" >
&nbsp;

110
</td>
<td class="style8" >
<asp:label id="lblloginmsg" runat="server"
style="font-weight: 700; color: #FF0000; font-size: medium;"></asp:label>
</td>
</tr>
<tr>
<td class="style3">
&nbsp;
</td>
<td align="left" class="style3">
<asp:button id="btnSubmit" runat="server" cssclass="button"
onclick="btnSubmit_Click"
text="Sign in" validationgroup="login" />
&nbsp;
<asp:button id="lnkRegister" runat="server" cssclass="button" text="Register"
onclick="lnkRegister_Click"></asp:button>
<asp:validationsummary id="ValidationSummary1" runat="server"
showmessagebox="True"
showsummary="False" validationgroup="login" Height="16px" style="font-weight:
700; font-size: medium;" />
</td>
</tr>
<tr>
<td align="right" class="style8">
&nbsp;
</td>
<td align="left" class="style8">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" style="padding-left: 40px; " class="style7">
&nbsp;
</td>
</tr>
<tr>
<td align="right" valign="bottom" colspan="2" style="width: auto; top: 0px; left:
0px;
height: 50px;" class="style6">
<font size="1pt" color="Black">
<asp:label id="lblFooter" runat="server" text="Developed by "></asp:label>
</font>
</td>
</tr>
</table>
</form>

111
CUSTOMERCHANGEPASSWORD.ASPX

<%@ Page Title="" Language="C#"


MasterPageFile="~/Customer/CustomerMaster.master" AutoEventWireup="true"
CodeFile="CustomerChangePassword.aspx.cs" Inherits="CustomerChangePassword"
%>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"


Runat="Server">
<table width="650" align="center" cellpadding="0" cellspacing="0" class ="box " >

<tr>
<td colspan="2" align="center" class="style1">
<strong>Change Password</strong> </td>
</tr>
<tr>
<td width="121" class="style2">
<td width="427" class="style2">&nbsp;</td>
</tr>
<tr>
<td class="style2" >
User Id
<td class="style2">
<asp:Label ID="username" runat="server" ></asp:Label> </td>
</tr>
<tr>
<td class="style2" >
New Password: </td>
<td class="style2" >
<asp:TextBox ID="txtnewpassword" runat="server" TextMode="Password"
CssClass="textbox"
MaxLength="8"></asp:TextBox>
<asp:RequiredFieldValidator
ControlToValidate="txtnewpassword" Display="None" ErrorMessage="New
Password is Required." ID="RequiredFieldValidator1" runat="server" ToolTip="New
Password is Required." ValidationGroup="pass1"
SetFocusOnError="true">*</asp:RequiredFieldValidator>

<asp:RegularExpressionValidator ID="valPassword" runat="server"


ControlToValidate="txtnewpassword"
ValidationGroup="pass1" SetFocusOnError="true" Display="None"
ErrorMessage="Minimum password length is 6"
ValidationExpression=".{6}.*" >*</asp:RegularExpressionValidator>
</td>

</tr>
<tr>
<td class="style2" >

112
Confirm Password: </td>
<td class="style2">
<asp:TextBox ID="txtconfimpassword" runat="server" TextMode="Password"
CssClass="textbox"
MaxLength="8"></asp:TextBox>
<asp:RequiredFieldValidator
ControlToValidate="txtconfimpassword" Display="None" ErrorMessage="Confirm
Password is Required." ID="RequiredFieldValidator2" runat="server"
ToolTip="Confirm Password is Required."
ValidationGroup="pass1" SetFocusOnError="true">*</asp:RequiredFieldValidator>

<asp:CompareValidator ControlToCompare="txtnewpassword"
ControlToValidate="txtconfimpassword" Display="None" ErrorMessage="Password
dot not match" ID="CompareValidator1" runat="server" ValidationGroup="pass1"
SetFocusOnError="true">*</asp:CompareValidator>
</td>
</tr>
<tr>
<td class="style2" >&nbsp;</td>
<td class="style2" > <asp:Label ID="txtmessage" runat="server" ></asp:Label>
</td>

</tr>
<tr>
<td class="style1" align="center" colspan="2">&nbsp;
<asp:Button ID="Button1" runat="server" Text="Submit" ValidationGroup="pass1"
CssClass="button"
OnClick="ChangePasswordPushButton_Click" /> </td>
</tr>

</table>

&nbsp;<asp:ValidationSummary ID="ValidationSummary1" runat="server"


ShowMessageBox="True" ShowSummary="False" ValidationGroup="pass1" />

</asp:Content>

<asp:Content ID="Content3" runat="server" contentplaceholderid="head">


<link href="../Style.css" rel="stylesheet" type="text/css"></link>
<script language="javascript" type="text/javascript">
history.go(1);
</script>
<script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="../js/zoomable.min.js" type="text/javascript"></script>
<script src="../js/zoomable.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('img.demo1').zoomable();

113
$('img.demo2').zoomable({
padding: '60px',
bgcolor: 'hsl(0, 1%, 36%)',
opacity: 0.9,
blur: '10px',
speed: 800,
border: '7px solid #fff',
radius: '3px',
shadow: '0 0 23px #000',
});
$('img.demo3').zoomable({
fill: true
});
});
</script>
<style type="text/css">
.style1
{
background-color: #CCFFFF;
color: #FFFF00;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
}
.style2
{
background-color: #CCFFFF;
}
</style>
</asp:Content>

EDITCUSTOMER.ASPX

<%@ Page Title="" Language="C#"


MasterPageFile="~/Customer/CustomerMaster.master" AutoEventWireup="true"
CodeFile="EditCustomer.aspx.cs" Inherits="EditCustomer" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"


runat="Server">
<table width="600PX" cellpadding="0" cellspacing="0">
<tr>
<td align="center" colspan="2">
<table cellpadding="2" cellspacing="0" width="400px" class="boxMain">
<tr>
<td align="center" colspan="3" class="style1">
Edit Customer
</td>

114
</tr>
<tr>
<td align="center" colspan="3" class="style2">
&nbsp;
</td>
</tr>
<tr>
<td colspan="1" class="style2">
&nbsp;</td>
<td align="left" class="style2">
&nbsp;</td>
</tr>
<tr id=" View" align="left" valign="top">
<td align="left" colspan="3" valign="top" class="style2">
<asp:GridView ID="grdCustomer" runat="server" AutoGenerateColumns="False"
DataKeyNames="CustId"
AllowSorting="True" Width="500px" GridLines="None"
OnPageIndexChanging="grdCustomer_PageIndexChanging"
AllowPaging="True" BackColor="White" BorderColor="White"
BorderStyle="Ridge" BorderWidth="2px"
CellPadding="3" CellSpacing="1" EnableModelValidation="True"
CssClass="style2">
<Columns>
<asp:BoundField DataField="Fname" HeaderText="Customer Name">
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
</asp:BoundField>
<asp:BoundField DataField="Mobile" HeaderText="Mobile">
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
</asp:BoundField>
<asp:BoundField DataField="EmailId" HeaderText="EmailId">
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
</asp:BoundField>
</Columns>
<EmptyDataTemplate>
<asp:Label ID="lblEmpty" runat="server" Text="No Data Found"></asp:Label>
</EmptyDataTemplate>
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
<HeaderStyle Font-Bold="True" ForeColor="#E7E7FF" BackColor="#660066" />
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
<RowStyle BackColor="#DEDFDE" ForeColor="Black" />
<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
</asp:GridView>
</td>
</tr>
<tr>
<td align="right" class="style2">
First Name:

115
</td>
<td align="left" class="style2">
<asp:TextBox ID="txtFirstName" CssClass="textbox"
runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="User Name is required."
ControlToValidate="txtFirstName" ToolTip="First Name is required."
ValidationGroup="Login1"
SetFocusOnError="true" Display="None"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" class="style2">
Father Name:
</td>
<td align="left" class="style2">
<asp:TextBox ID="txtFatherName" CssClass="textbox"
runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
ControlToValidate="txtFatherName"
Display="None" ErrorMessage="Father name is required" SetFocusOnError="true"
ValidationGroup="Login1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" class="style2">
Last Name:
</td>
<td align="left" class="style2">
<asp:TextBox ID="txtLastName" CssClass="textbox" runat="server"
MaxLength="50"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ErrorMessage="Last name is required"
ControlToValidate="txtLastName" ValidationGroup="Login1" Display="None"
SetFocusOnError="true"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" class="style2">
State
</td>
<td align="left" class="style2">
<asp:DropDownList ID="ddlStates" runat="server" AppendDataBoundItems="True"
ToolTip="State"
CssClass="textbox" AutoPostBack="True"
OnSelectedIndexChanged="ddlStates_SelectedIndexChanged">
<asp:ListItem Value="0">Select</asp:ListItem>
</asp:DropDownList>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server"
ControlToValidate="ddlStates"

116
Display="None" ErrorMessage="Select State" InitialValue="0"
SetFocusOnError="true"
ValidationGroup="Login1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" class="style2">
City
</td>
<td align="left" class="style2">
<asp:DropDownList ID="ddlCity" runat="server" AppendDataBoundItems="True"
ToolTip="State"
CssClass="textbox">
<asp:ListItem Value="0">Select</asp:ListItem>
</asp:DropDownList>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server"
ControlToValidate="ddlCity"
Display="None" ErrorMessage="Select City" InitialValue="0"
SetFocusOnError="true"
ValidationGroup="Login1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" valign="top" class="style2">
Mobile No:
</td>
<td align="left" class="style2">
<asp:TextBox ID="txtMoibileNo" onKeyPress="return isNumber(event)"
CssClass="textbox"
runat="server" MaxLength="10"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ErrorMessage="Mobile no is required"
ControlToValidate="txtMoibileNo" ValidationGroup="Login1" Display="None"
SetFocusOnError="true"
Css></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularMLehgth" runat="server"
ControlToValidate="txtMoibileNo"
ValidationGroup="Login1" SetFocusOnError="true" Display="None"
ErrorMessage="Minimum Mobile length is 10"
ValidationExpression=".{10}.*" />
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txtMoibileNo"
ErrorMessage="Please Enter Only Numbers"
ValidationExpression="^d*[0-9]*(|.\d*[0-9]|,\d*[0-9])?$"
ValidationGroup="Login1"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td align="right" class="style2">
Email Id:

117
</td>
<td align="left" class="style2">
<asp:TextBox ID="txtEmaildId" CssClass="textbox" runat="server"
MaxLength="50"></asp:TextBox>
<asp:RequiredFieldValidator ControlToValidate="txtEmaildId" Display="None"
ErrorMessage="Emailid is required"
ID="RequiredFieldValidator6" runat="server" SetFocusOnError="true"
ValidationGroup="Login1"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ControlToValidate="txtEmaildId"
ErrorMessage="Invalid Email"
ID="reqemail" runat="server" ValidationExpression="\w+([-+.']\w+)*@\w+([-
.]\w+)*\.\w+([-.]\w+)*"
SetFocusOnError="true"
ValidationGroup="Login1"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td colspan="3" class="style2">
<asp:Label ID="lblEMsg" runat="server" Font-Bold="False" Font-Names="Times
New Roman"
Font-Size="Medium" ForeColor="Red" Visible="False"></asp:Label>
</td>
</tr>
<tr>
<td colspan="3" class="style1">
<asp:Button ID="btnUpdate" runat="server" CssClass="button " Text="Update"
OnClick="btnUpdate_Click"
ValidationGroup="Login1" />
&nbsp;
<asp:Button ID="btnClear" runat="server" CssClass="button "
OnClick="btnClear_Click"
Text="Clear" />
&nbsp;
<asp:Button ID="btnDelete" runat="server" Visible =false CssClass="button"
OnClick="btnDelete_Click"
Text="Delete" />
</td>
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
ShowMessageBox="True"
ShowSummary="False" ValidationGroup="Login1" />
</tr>
</table> </td>
</tr>
</table>
</asp:Content>
<asp:Content ID="Content3" runat="server" contentplaceholderid="head">
<link href="../Style.css" rel="stylesheet" type="text/css"></link>
<script language="javascript" type="text/javascript">
history.go(1);
</script>

118
<script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="../js/zoomable.min.js" type="text/javascript"></script>
<script src="../js/zoomable.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('img.demo1').zoomable();
$('img.demo2').zoomable({
padding: '60px',
bgcolor: 'hsl(0, 1%, 36%)',
opacity: 0.9,
blur: '10px',
speed: 800,
border: '7px solid #fff',
radius: '3px',
shadow: '0 0 23px #000',
});
$('img.demo3').zoomable({
fill: true
});
});
</script>
<style type="text/css">
.style1
{
background-color: #CCFFFF;
color: #FFFF00;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
font-weight: 700;
font-size: large;
}
.style2
{
background-color: #CCFFFF;
}
</style>
</asp:Content>

CUSTOMERSALES.ASPX

<%@ Page Title="" Language="C#"


MasterPageFile="~/Customer/CustomerMaster.master" AutoEventWireup="true"
CodeFile="CustomerSales.aspx.cs" Inherits="CustomerSales" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"


Runat="Server">

119
<table cellpadding="0" cellspacing="0" style="width: 706px">
<tr>
<td align="center" colspan="2">
<table cellpadding="2" cellspacing="0" width="400px" class="boxMain">
<tr>
<td colspan="3" class="style2">
<strong>Add Sales
</strong>
</td>
</tr>
<tr>
<td colspan="3" class="style1">
<asp:GridView ID="grdSales" runat="server" AutoGenerateColumns="False"
BackColor="White"
BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
CellSpacing="1"
EnableModelValidation="True" GridLines="None" CssClass="style1">
<Columns>
<asp:BoundField DataField="FName" HeaderText="Customer Name" />
<asp:BoundField DataField="ProductName" HeaderText="Product Name" />
<asp:BoundField DataField="Qty" HeaderText="Quantity" />
<asp:BoundField DataField="Price" HeaderText="Price" />
</Columns>
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
<HeaderStyle BackColor="#660066" Font-Bold="True" ForeColor="#E7E7FF" />
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
<RowStyle BackColor="#DEDFDE" ForeColor="Black" />
<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
</asp:GridView>
</td>
</tr>
<tr>
<td class="style1">
Sales No
</td>
<td align="left" class="style1">
<asp:Label ID="lblSalesNo" runat="server"></asp:Label>
</td>
<td class="style1">
&nbsp;
</td>
</tr>

<tr>
<td align="left" valign="top" class="style1">
Select Category:</td><td align="left" class="style1">
<asp:DropDownList ID="ddlCategory" runat="server" AutoPostBack="True"
AppendDataBoundItems="True" Style="height: 22px" Width="200px"
CssClass="textbox"

120
onselectedindexchanged="ddlCategory_SelectedIndexChanged">
<asp:ListItem Value="0">Select</asp:ListItem>
</asp:DropDownList>
</td>
<td class="style1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="ddlCategory"
ToolTip=" " ValidationGroup="Login1" Display="Dynamic" ErrorMessage="Select
Category"
SetFocusOnError="True" InitialValue="0">*</asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td class="style1">
Select Product
</td>
<td align="left" class="style1">
<asp:DropDownList ID="ddlProduct" runat="server"
AppendDataBoundItems="True" AutoPostBack="True"
OnSelectedIndexChanged="ddlProduct_SelectedIndexChanged" Width="200px"
CssClass="textbox">
<asp:ListItem Value="0">Select</asp:ListItem>
</asp:DropDownList>
</td>
<td class="style1">
<asp:RequiredFieldValidator ID="UserNameRequired0" runat="server"
ControlToValidate="ddlProduct"
ToolTip=" " ValidationGroup="Login1" Display="Dynamic" ErrorMessage="Select
Supplier"
SetFocusOnError="True" InitialValue="0">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style1">
Available Quantity
</td>
<td align="left" class="style1">

<asp:TextBox ID="lblAvialableQty" runat="server" Enabled="False"


CssClass="textbox"></asp:TextBox>
</td>
<td class="style1">
<asp:Image ID="imgProduct" runat="server" Visible="False" ImageAlign="Middle"
Width="200px" class="demo2" />
</td>
</tr>
<tr>

121
<td class="style1">
Price
</td>
<td align="left" class="style1">
<asp:Label ID="lblPrice" runat="server" Text=" "></asp:Label>
</td>
<td class="style1">
&nbsp;
</td>
</tr>
<tr>
<td class="style1">
Tax
</td>
<td align="left" class="style1">
<asp:Label ID="txtTax" runat="server" Text ="3"></asp:Label>
</td>
<td class="style1">
<%--<asp:RequiredFieldValidator ID="UserNameRequired1" runat="server"
ControlToValidate="txtTax"
ToolTip=" " ValidationGroup="Login1" Display="Dynamic" ErrorMessage="please
enter tax"
SetFocusOnError="True">*</asp:RequiredFieldValidator>

<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"


ControlToValidate="txtTax"
ErrorMessage="Please Enter Only Numbers" ValidationExpression="^\d+$"
ValidationGroup="Login1">*</asp:RegularExpressionValidator>--%>
</td>
</tr>
<tr>
<td class="style1">
Sales Quantity
</td>
<td align="left" class="style1">
<asp:TextBox ID="txtSalesQty" runat="server" AutoPostBack="True"
ValidationGroup="Login1" OnTextChanged="txtAddqty_TextChanged"
CssClass="textbox"></asp:TextBox>
</td>
<td class="style1">
<asp:RequiredFieldValidator ID="UserNameRequired2" runat="server"
ControlToValidate="txtSalesQty"
ToolTip=" " ValidationGroup="Login1" Display="Dynamic" ErrorMessage="please
enter sales quantity"
SetFocusOnError="True">*</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txtSalesQty"
ErrorMessage="Please Enter Only Numbers" ValidationExpression="^\d+$"
ValidationGroup="Login1">*</asp:RegularExpressionValidator>

122
<asp:CompareValidator ID="CompareValidator1" runat="server"
ErrorMessage="Available quantity is less"
ControlToValidate="txtSalesQty" SetFocusOnError="True"
ValidationGroup="Login1"
ControlToCompare="lblAvialableQty" Display="None" Type="Integer"
Operator="LessThanEqual">*</asp:CompareValidator>
</td>
</tr>
<tr>
<td class="style1">
Total Price
</td>
<td align="left" class="style1">
<asp:Label ID="lblTotalPrice" runat="server"></asp:Label>
</td>
<td class="style1">
&nbsp;
</td>
</tr>
<tr>
<td colspan="3" align="center" valign="top" class="style1">
&nbsp;<asp:Label ID="lblEMsg" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Medium" ForeColor="Red" Visible="False"></asp:Label>
</td>
</tr>
<tr>
<td colspan="3" class="header">
<asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="Add..."
ValidationGroup="Login1"
CssClass="button" />&nbsp;<asp:Button ID="btnClear" runat="server"
OnClick="btnClear_Click"
Text="Clear" CssClass="button" />
&nbsp;
<asp:Button ID="btnBill" runat="server" Text="Bill" CssClass="button"
Visible="false"
OnClick="btnBill_Click" />
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
ShowMessageBox="True"
ShowSummary="False" ValidationGroup="Login1" />
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Content>

<asp:Content ID="Content3" runat="server" contentplaceholderid="head">

123
<link href="../Style.css" rel="stylesheet" type="text/css"></link>
<script language="javascript" type="text/javascript">
history.go(1);
</script>
<script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="../js/zoomable.min.js" type="text/javascript"></script>
<script src="../js/zoomable.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('img.demo1').zoomable();
$('img.demo2').zoomable({
padding: '60px',
bgcolor: 'hsl(0, 1%, 36%)',
opacity: 0.9,
blur: '10px',
speed: 800,
border: '7px solid #fff',
radius: '3px',
shadow: '0 0 23px #000',
});
$('img.demo3').zoomable({
fill: true
});
});
</script>
<style type="text/css">
.style1
{
background-color: #CCFFFF;
}
.style2
{
background-color: #CCFFFF;
color: #FFFF00;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
font-size: medium;
}
</style>
</asp:Content>

UPDATESALES.ASPX

<%@ Page Title="" Language="C#"


MasterPageFile="~/Customer/CustomerMaster.master" AutoEventWireup="true"
CodeFile="UpdateSales.aspx.cs" Inherits="UpdateSales" %>

124
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="Server">
<table width="600PX" cellpadding="0" cellspacing="0">
<tr>
<td align="center" colspan="2">
<table cellpadding="2" cellspacing="0" width="400px" class="boxMain">
<tr>
<td class="style2" colspan="2">
Update Sales
</td>
</tr>
<tr>
<td class="style1">
&nbsp;Select Sales No
</td>
<td align="left" valign="top" class="style1">
<asp:DropDownList ID="ddlSalesNo" runat="server"
AppendDataBoundItems="True" Style="height: 22px"
AutoPostBack="True"
OnSelectedIndexChanged="ddlSalesNo_SelectedIndexChanged"
CssClass="textbox">
<asp:ListItem Value="0">Select</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td colspan="2" class="style1">
<asp:GridView ID="grdSales" runat="server" AutoGenerateColumns="False"
BackColor="White"
BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
CellSpacing="1"
EnableModelValidation="True" GridLines="Both" DataKeyNames="SalesId"
CssClass="style1">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="lnkEdit" runat="server" Text="Edit"
OnClick="lnkEdit_Click"></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
</asp:TemplateField>
<asp:BoundField DataField="FName" HeaderText="Customer Name" />
<asp:BoundField DataField="ProductName" HeaderText="Product Name" />
<asp:BoundField DataField="Qty" HeaderText="Quantity" />
<asp:BoundField DataField="Price" HeaderText="Price" />
<asp:TemplateField>
<ItemTemplate>

125
<asp:LinkButton ID="lnkDelete" runat="server" Text="Delete"
OnClick="lnkDelete_Click"></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
<HeaderStyle BackColor="#660066" Font-Bold="True" ForeColor="#E7E7FF" />
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
<RowStyle BackColor="#DEDFDE" ForeColor="Black" />
<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
</asp:GridView>
</td>
</tr>
<tr>
<td class="style1">
Price
</td>
<td align="left">
<asp:Label ID="lblPrice" runat="server" Text=" "></asp:Label>
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td>
Tax
</td>
<td align="left">
<asp:TextBox ID="txtTax" runat="server" OnTextChanged="txtTax_TextChanged"
CssClass="textbox"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="UserNameRequired1" runat="server"
ControlToValidate="txtTax"
ToolTip=" " ValidationGroup="Login1" Display="Dynamic" ErrorMessage="please
enter tax"
SetFocusOnError="True">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
Sales Quantity
</td>
<td align="left">
<asp:TextBox ID="txtSalesQty" runat="server" AutoPostBack="True"
OnTextChanged="txtSalesQty_TextChanged" CssClass="textbox"></asp:TextBox>
</td>

126
<td>
<asp:RequiredFieldValidator ID="UserNameRequired2" runat="server"
ControlToValidate="txtSalesQty"
ToolTip=" " ValidationGroup="Login1" Display="Dynamic" ErrorMessage="please
enter sales quantity"
SetFocusOnError="True">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
Total Price
</td>
<td align="left">
<asp:Label ID="lblTotalPrice" runat="server"></asp:Label>
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td class="header" colspan="2">
&nbsp;
<asp:Button ID="btnUpdate" runat="server" CssClass="button"
OnClick="btnUpdate_Click"
Text="Update" Visible="false" ValidationGroup="Login1" />
&nbsp;<asp:Button ID="btnBill" runat="server" CssClass="button"
OnClick="btnBill_Click"
Text="Bill" Visible="false" />
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
ShowMessageBox="True"
ShowSummary="False" ValidationGroup="Login1" />
</td>
<td>
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Content>
<asp:Content ID="Content3" runat="server" contentplaceholderid="head">
<link href="../Style.css" rel="stylesheet" type="text/css"></link>
<script language="javascript" type="text/javascript">
history.go(1);
</script>
<script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="../js/zoomable.min.js" type="text/javascript"></script>
<script src="../js/zoomable.js" type="text/javascript"></script>
<script type="text/javascript">

127
$(document).ready(function() {
$('img.demo1').zoomable();
$('img.demo2').zoomable({
padding: '60px',
bgcolor: 'hsl(0, 1%, 36%)',
opacity: 0.9,
blur: '10px',
speed: 800,
border: '7px solid #fff',
radius: '3px',
shadow: '0 0 23px #000',
});
$('img.demo3').zoomable({
fill: true
});
});
</script>
<style type="text/css">
.style1
{
background-color: #CCFFFF;
}
.style2
{
background-color: #CCFFFF;
color: #FFFF00;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
font-weight: 700;
font-size: large;
}
</style>
</asp:Content>

BILL.ASPX

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Bill.aspx.cs"


Inherits="Bill" %>

<!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 id="Head1" runat="server">
&nbsp;</head><body style="background-color: #CCFFFF"><form id="form1"
runat="server">

128
<table width ="850pxpx" cellpadding ="0" cellspacing ="0">
<tr align ="center " valign ="middle">
<td align ="center " valign ="middle" >
<table class ="box " width ="400px" cellpadding ="0" cellspacing ="0" >
<tr>
<td align="right" colspan="2" valign="bottom">
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl="~/Customer/CustomerSales.aspx">Back</asp:HyperLink></td>
</tr>

<tr>
<td align ="center" valign ="bottom" colspan ="2" ><b> <asp:Label ID="Label1"
runat ="server" Text ="Company Name"></asp:Label>
</b> </td>
</tr>
<tr>
<td align ="left" valign ="bottom" >Customer Name:</td>
<td align ="left" valign ="bottom" ><asp:Label ID="lblCustomerName" runat
="server" Text =""></asp:Label>
</td>
</tr>

<tr>
<td align ="left" valign ="bottom" >
Created Date:</td>
<td align ="left" valign ="bottom" ><asp:Label ID="lblCreaetdDate" runat ="server"
Text =""></asp:Label>
</td>
</tr>

<tr>
<td colspan ="2">&nbsp;</td>
</tr>
<tr>
<td colspan ="2">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
GridLines ="Vertical" CellSpacing="0" CellPadding ="2" Width ="400px" >
<Columns>

<asp:TemplateField HeaderText ="AccName" >


<ItemTemplate >
<asp:Label Width ="200px" ID="lblAccName" runat="server" Text ='<%#
Eval("ProductName") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
</asp:TemplateField>

129
<asp:TemplateField HeaderText ="Quantity" >
<ItemTemplate >
<asp:Label ID="lblQty" Width ="20px" runat="server" Text ='<%# Eval("Qty")
%>'></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
</asp:TemplateField>

<asp:TemplateField HeaderText ="Unit Price" >


<ItemTemplate >
<asp:Label ID="lblPrice" Width ="40px" runat="server" Text ='<%# Eval("Price")
%>'></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
</asp:TemplateField>

</Columns>
</asp:GridView>
</td>
</tr>

<tr>
<td align ="right" valign ="bottom" colspan ="2">
Total price:<asp:Label ID="lblTprice" runat ="server" Text =""></asp:Label>

</td>
</tr>
</table>

</td>
</tr>
</table>

</form>
</body>
</html>

PRODUCTREPORT.ASPX

<%@ Page Title="" Language="C#"


MasterPageFile="~/Customer/CustomerMaster.master" AutoEventWireup="true"

130
CodeFile="ProductReport.aspx.cs" Inherits="ProductReport" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"


runat="Server">
<table width="600PX" cellpadding="0" cellspacing="0">
<tr>
<td align="center" colspan="2">
<table cellpadding="2" cellspacing="0" width="400px" class="boxMain">
<tr>
<td align="center" colspan="3" class="style1">
Product .
</td>
</tr>
<tr>
<td align="center" colspan="3" class="style3">
&nbsp;<asp:GridView ID="gvProduct" runat="server" AllowPaging="True"
CaptionAlign="Top"
CellPadding="3" Font-Names="Times New Roman" HorizontalAlign="Center"
AutoGenerateColumns="False"
Width="400px" BackColor="White" BorderColor="White" BorderStyle="Ridge"
BorderWidth="2px"
EnableModelValidation="True" GridLines="None" CellSpacing="1"
CssClass="style2">
<Columns>
<asp:BoundField DataField="Category" HeaderText="Category Name" />
<asp:BoundField DataField="ProductName" HeaderText="Product Name" />
<asp:BoundField DataField="Price" HeaderText="Price " />

<asp:TemplateField>
<ItemTemplate>
<img src="../Images/<%# Eval("Url")%>" height="50" width="50" />
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
</asp:TemplateField>
<asp:BoundField DataField="Details" HeaderText="Details" />

</Columns>
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
<HeaderStyle Font-Bold="True" ForeColor="#E7E7FF" BackColor="#660066" />
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
<RowStyle BackColor="#DEDFDE" ForeColor="Black" />
<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
</asp:GridView>
</td>
</tr>
<tr>
<td align="center" colspan="3" class="style1">
</td>

131
</tr>
</table>
</td>
</tr>
</table>
</asp:Content>
<asp:Content ID="Content3" runat="server" contentplaceholderid="head">
<link href="../Style.css" rel="stylesheet" type="text/css"></link>
<script language="javascript" type="text/javascript">
history.go(1);
</script>
<script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="../js/zoomable.min.js" type="text/javascript"></script>
<script src="../js/zoomable.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('img.demo1').zoomable();
$('img.demo2').zoomable({
padding: '60px',
bgcolor: 'hsl(0, 1%, 36%)',
opacity: 0.9,
blur: '10px',
speed: 800,
border: '7px solid #fff',
radius: '3px',
shadow: '0 0 23px #000',
});
$('img.demo3').zoomable({
fill: true
});
});
</script>
<style type="text/css">
.style1
{
background-color: #CCFFFF;
color: #FFFF00;
background-image: url('../img/FLEUR-HARRIS-PATTERN-DESIGN-LARA-
BINGLE-PALMS-COTTON-ON-2_1000.jpg');
background-repeat: repeat-x;
background-position: center;
font-weight: 700;
font-size: large;
width: 452px;
}
.style2
{
background-color: #CCFFFF;
}
.style3

132
{
width: 452px;
background-color: #CCFFFF;
}
</style>
</asp:Content>

FRMQUESTION.ASPX

<%@ Page Title="" Language="C#"


MasterPageFile="~/Customer/CustomerMaster.master" AutoEventWireup="true"
CodeFile="frmQuestion.aspx.cs" Inherits="Customer_frmQuestion" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"


Runat="Server">
<table width="600PX" cellpadding="0" cellspacing="0">
<tr>
<td align="center" colspan="2" style="background-color: #CCFFFF">
<table cellpadding="2" cellspacing="0" width="400px" class="boxMain">
<tr>
<td class="style1">
&nbsp;&nbsp;<b>Question Master&nbsp;&nbsp;&nbsp; </b>
</td>
</tr>
<tr>
<td class="style1">
<div id="divDisp" runat="server" style="widows: 100%">
<%--style="display :none"--%>
<table width="100%" style="margin-right: 0px">
<tr>
<td align="center" valign="top" colspan="2">
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
ShowMessageBox="true"
ShowSummary="false" ValidationGroup="SearchBy" HeaderText="Verify
information with * " />
</td>
</tr>
<tr>
<td align="center" valign="top" colspan="2">
<asp:GridView ID="GridQuestion" runat="server" AutoGenerateColumns="False"
CellPadding="3"
DataKeyNames="QuestionId" PageSize="50"
GridLines="Horizontal" AllowPaging="True" EmptyDataText="No Data Found"
Width="100%"
BackColor="White" BorderColor="#660066" BorderStyle="None"
BorderWidth="1px" Style="margin-bottom: 0px"
CssClass="style1">
<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />

133
<Columns>
<asp:BoundField DataField="Question" HeaderText="Question Name" />
<asp:BoundField DataField="Answer" HeaderText="Answer" />
</Columns>
<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C"
HorizontalAlign="Right" />
<SelectedRowStyle BackColor="#660066" Font-Bold="True" ForeColor="#F7F7F7"
/>
<HeaderStyle BackColor="#660066" Font-Bold="True" ForeColor="#F7F7F7" />
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:GridView>
</td>
</tr>
<tr>
<td align="center" colspan="2">
&nbsp;
</td>
</tr>
<tr>
<td align="center" colspan="2">
<asp:Button ID="btnAddQuestion" Height="25px" Width="70px" runat="server"
OnClick="btnAddQuestion_Click1"
CausesValidation="False" EnableViewQuestion="False" Text="Add"
CssClass="button" />
<asp:Label ID="lblMess" runat="server" ForeColor="#FF3300"
Visible="False"></asp:Label>
</td>
</tr>
<tr>
<td align="center" colspan="2">
&nbsp;
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td class="style1">
<div id="divAdd" runat="server" style="width: 100%">
<%--style="display :none"--%>
<table width="100%" class="centalign">
<tr>
<td colspan="2" class="header">
<b>Add Question</b>&nbsp;
</td>
</tr>
<tr>
<td align="right" valign="top">

134
&nbsp;
</td>
<td align="left" valign="top">
</td>
</tr>
<tr>
<td align="right" valign="top">
Question Name
</td>
<td align="left" valign="top">
<asp:TextBox ID="txtQuestionName" runat="server" MaxLength="50"
CssClass="textbox"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtQuestionName"
ValidationGroup="Question" SetFocusOnError="true" ErrorMessage="please enter
state name">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:ValidationSummary ID="ValidationSummary2" HeaderText="Verify
information with * "
runat="server" ValidationGroup="Question" EnableViewQuestion="False"
ShowMessageBox="True"
ShowSummary="False" />
</td>
<td>
</td>
</tr>
<tr>
<td class="header" colspan="2">
&nbsp;
<asp:Button ID="btnSubmit" Height="25px" Width="70px" runat="server"
OnClick="btnSubmit_Click"
ValidationGroup="Question" EnableViewQuestion="False" CssClass="button"
Text="Save" />
&nbsp;<asp:Button ID="btnCancel" runat="server" Height="25px" Width="70px"
OnClick="btnCancel_Click1"
CausesValidation="False" EnableViewQuestion="False" CssClass="button"
Text="Cancel" />
&nbsp;
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>

135
</table>
</asp:Content>

<asp:Content ID="Content3" runat="server" contentplaceholderid="head">


<link href="../Style.css" rel="stylesheet" type="text/css"></link>
<script language="javascript" type="text/javascript">
history.go(1);
</script>
<script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="../js/zoomable.min.js" type="text/javascript"></script>
<script src="../js/zoomable.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('img.demo1').zoomable();
$('img.demo2').zoomable({
padding: '60px',
bgcolor: 'hsl(0, 1%, 36%)',
opacity: 0.9,
blur: '10px',
speed: 800,
border: '7px solid #fff',
radius: '3px',
shadow: '0 0 23px #000',
});
$('img.demo3').zoomable({
fill: true
});
});
</script>
<style type="text/css">
.style1
{
background-color: #CCFFFF;
}
</style>
</asp:Content>

CUSTOMERLOGOUTPAGE.ASPX

<%@ Page Language="C#" AutoEventWireup="true"


CodeFile="CustomerLogoutPage.aspx.cs" Inherits="CustomerLogoutPage" %>

<!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>.</title>

136
<link href="../Style.css" rel ="Stylesheet" type="text/css"></link>
<style type="text/css">
.style1
{
background-color: #CCFFFF;
color: #FFFFFF;
background-image: url('../img/asm.jpg');
background-repeat: repeat-x;
background-position: center;
height: 50px;
width: 931px;
}
.style2
{
top: 0px;
left: 0px;
height: 65px;
width: 931px;
background-color: #CCFFFF;
}
.style3
{
height: 293px;
width: 931px;
background-color: #CCFFFF;
}
.style4
{
background-color: #CCFFFF;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
<table style ="height :561px; width: 436px; margin-right: 0px;"
cellpadding="0" >
<tr>
<td>&nbsp;&nbsp;</td>
</tr>
<tr align ="center" valign ="middle" >
<td align ="center" valign ="middle" >
<table BORDER="0" CELLSPACING="0" CELLPADDING="2" ALIGN="center"
class="boxMain">
<tr>
<td align="center" class ="style1" valign="middle" >
&nbsp;</td>
</tr>

137
<tr>
<td align="center" class="style2"
>
&nbsp;
</td>
</tr>
<tr>
<td align="center" class="style3">
<asp:Panel ID="Panel1" runat="server"
Height="243px" HorizontalAlign="Center" Width="248px" CssClass="style4">
<asp:Label ID="Label1" runat="server" Text="You have been logged out..."
style="font-weight: 700; font-size: large"></asp:Label>&nbsp;<br /> <br />
<asp:Image ID="Image1" runat="server" Height="140px"
ImageUrl="~/images/ty.png"
style="margin-left: 0px" Width="237px" />
<br />
<br />
<br />
<asp:HyperLink ID="HLogin1" runat="server" CssClass="button"
NavigateUrl="~/Customer/CustomerLoginPage.aspx">Login
Back..</asp:HyperLink>
&nbsp;<asp:HyperLink
ID="hHome" runat="server" CssClass="button"
NavigateUrl="~/MainPage.aspx">Home</asp:HyperLink>
</asp:Panel>
<br />
</td>
</tr>

</table>
</td>
</tr>
</table>

</form>
</body>
</html>

138
TESTING
UNIT TESTING:

A unit is the smallest testable part of an application like functions,


classes, procedures, interfaces.

Unit testing is a method by which Individual units of source code are


tested to determine if they are fit for use.

The goal of unit testing is to segregate each part of the program and test
that the individual parts are working correctly.

Extensive unit testing was carried out for this project.

Each module was tested individually to test its functioning.

First each of the individual components (functions, pages, and buttons)


was triggered to check if they are all functioning properly.

INTEGRATION TESTING:

Integration testing tests integration or interfaces between components,

Interactions to different parts of the system such as an operating system,


file system and hardware or interfaces between systems.

Also after integrating two different components together we do the


Integration testing.

Integration testing was performed after unit testing for this project.

The login screen was tested to see if it responds to the menu click.

The package page was tested to see whether the more button redirects on
the requested package or not.

Each page was connected to the home page. Login was checked if it logs
in only the people with user ID.

The system responded very well in Integration Testing.

139
BIBLIOGRAPHY

 www.google.com

 www.wikipedia.com

 www.youtube.com

 www.stackoverflow.com

 www.w3schools.com

 www.docs.microsoft.com

140

Potrebbero piacerti anche