Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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”.
2
INDEX
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
Objectives
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:
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!
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
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
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:
Software Interface:
9
PREFACE
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.
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
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.
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.
12
EXISTING SYSTEM
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.
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.
16
FEATURES OF PROPOSED SYSTEM
17
SYSTEM ANALYSIS AND DESIGN
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.
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.
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).
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.
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.
23
Theoretically, a C# compiler could generate machine code like traditional
compilers of C++ or FORTRAN.
HTML
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.
24
JAVASCRIPT
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.
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
Start-up Cost
Cost of training.
26
Cost of preparation of manuals and other documents.
Operational Cost
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.
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
30
USE CASE DIAGRAM
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.
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
33
CLASS DIAGRAM
In the diagram, classes are represented with boxes that contain three
compartments:
34
35
ACTIVITY DIAGRAM
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" %>
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
}
};
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>
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="  Employee" Value="Employee"
NavigateUrl="~/Employee/LoginPage.aspx">
</asp:MenuItem>
<asp:MenuItem Text="  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">
</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"
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.
WEB.SITEMAP
73
<siteMapNode url="" title="Customer" description="">
</siteMapNode>
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>
</siteMapNode>
</siteMap>
ADMINMASTERPAGE.MASTER
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>
</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" >
<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>
</Items>
77
/>
</asp:Menu>
</td>
&nbs
p; &n
bsp;
<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
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>
</td>
</tr>
<tr>
<td align="center" class="style1" >
<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">
<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>
</table>
</td>
</tr>
</table>
</asp:Content>
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
</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"
%>
<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>
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>
ADMINLOGIN.ASPX
<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>
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">
</td>
</tr>
</table>
</div>
</form>
ADMINLOGOUT.ASPX
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> </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" >
</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> <br />
<asp:HyperLink ID="HLogin" runat="server" CssClass="button"
NavigateUrl="~/Admin/Login.aspx">Login Back..</asp:HyperLink>
<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
<body >
<table width="100%">
<tr>
<td width="123" align="right" > </td>
<td width="440" align="left" > </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>
</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" >
</td>
<td align="left" >
89
</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" >
</td>
<td align="left" class="box_text" >
</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>
<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" >
</td>
<td align="left">
</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>
<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>
</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>
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 > </td>
<td align="left"> </td>
</tr>
<tr>
<td > </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>
REPLYMASTER.ASPX
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
CUSTOMERREGISTER.ASPX
96
<tr>
<td align="center" colspan="2" class="style3">
Customer
</td>
</tr>
<tr>
<td width="123" align="right" class="style2">
</td>
<td width="440" align="left" class="style2">
</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>
<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>
<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">
Address</td>
<td align="left" class="style2">
<asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine"
Height="35px" Width="302px"></asp:TextBox></td>
</tr>
<tr class="header">
<td class="style2">
</td>
<td align="left" class="style2">
<asp:Button ID="btnsave" runat="server" Text ="Save" CssClass ="button"
onclick="btnsave_Click1" ValidationGroup="Login1" />
<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
101
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
102
width="400">
<tr>
<td align="center" class="style2" colspan="2">
Forgot Password
</td>
</tr>
<tr>
<td width="93" align="left" class="style1" >
</td>
<td width="307" align="right" style="vertical-align: top" class="style1" >
</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" >
</td>
<td class="style1" >
<asp:label id="lblPassword" runat="server"></asp:label>
</td>
103
</tr>
<tr>
<td class="style1" >
</td>
<td align="left" class="style1" >
<asp:button id="btnSubmit" runat="server" cssclass="button"
onclick="btnSubmit_Click"
text="Ok" validationgroup="login" />
<asp:Button ID="btnBack" runat="server" CssClass="button"
onclick="btnBack_Click" Text="Back" />
<asp:validationsummary id="ValidationSummary1" runat="server"
showmessagebox="True"
showsummary="False" validationgroup="login" />
</td>
</tr>
<tr>
<td align="right" class="style1">
</td>
<td align="left" class="style1">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" style="padding-left: 40px;">
</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
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>
</td>
&nbs
p; &n
bsp;
<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
<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">
<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" >
</td>
<td width="307" align="right" style="vertical-align: top" class="style8" >
<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" >
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">
</td>
<td align="left" class="style3">
<asp:button id="btnSubmit" runat="server" cssclass="button"
onclick="btnSubmit_Click"
text="Sign in" validationgroup="login" />
<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">
</td>
<td align="left" class="style8">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" style="padding-left: 40px; " class="style7">
</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
<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"> </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>
</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" > </td>
<td class="style2" > <asp:Label ID="txtmessage" runat="server" ></asp:Label>
</td>
</tr>
<tr>
<td class="style1" align="center" colspan="2">
<asp:Button ID="Button1" runat="server" Text="Submit" ValidationGroup="pass1"
CssClass="button"
OnClick="ChangePasswordPushButton_Click" /> </td>
</tr>
</table>
</asp:Content>
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
114
</tr>
<tr>
<td align="center" colspan="3" class="style2">
</td>
</tr>
<tr>
<td colspan="1" class="style2">
</td>
<td align="left" class="style2">
</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>
<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>
<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" />
<asp:Button ID="btnClear" runat="server" CssClass="button "
OnClick="btnClear_Click"
Text="Clear" />
<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
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">
</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">
121
<td class="style1">
Price
</td>
<td align="left" class="style1">
<asp:Label ID="lblPrice" runat="server" Text=" "></asp:Label>
</td>
<td class="style1">
</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>
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">
</td>
</tr>
<tr>
<td colspan="3" align="center" valign="top" class="style1">
<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" /> <asp:Button ID="btnClear" runat="server"
OnClick="btnClear_Click"
Text="Clear" CssClass="button" />
<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" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Content>
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
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">
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>
</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>
</td>
</tr>
<tr>
<td class="header" colspan="2">
<asp:Button ID="btnUpdate" runat="server" CssClass="button"
OnClick="btnUpdate_Click"
Text="Update" Visible="false" ValidationGroup="Login1" />
<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>
</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
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
</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"> </td>
</tr>
<tr>
<td colspan ="2">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
GridLines ="Vertical" CellSpacing="0" CellPadding ="2" Width ="400px" >
<Columns>
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>
</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
130
CodeFile="ProductReport.aspx.cs" Inherits="ProductReport" %>
<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
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">
</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">
</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>
</td>
</tr>
<tr>
<td align="right" valign="top">
134
</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">
<asp:Button ID="btnSubmit" Height="25px" Width="70px" runat="server"
OnClick="btnSubmit_Click"
ValidationGroup="Question" EnableViewQuestion="False" CssClass="button"
Text="Save" />
<asp:Button ID="btnCancel" runat="server" Height="25px" Width="70px"
OnClick="btnCancel_Click1"
CausesValidation="False" EnableViewQuestion="False" CssClass="button"
Text="Cancel" />
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
135
</table>
</asp:Content>
CUSTOMERLOGOUTPAGE.ASPX
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> </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" >
</td>
</tr>
137
<tr>
<td align="center" class="style2"
>
</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> <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>
<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:
The goal of unit testing is to segregate each part of the program and test
that the individual parts are working correctly.
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.
139
BIBLIOGRAPHY
www.google.com
www.wikipedia.com
www.youtube.com
www.stackoverflow.com
www.w3schools.com
www.docs.microsoft.com
140