Вы находитесь на странице: 1из 79

ONLINE HOME APPLIANCES 1

CHAPTER-1
INTRODUCTION

Online Home Appliances are the process whereby consumers directly buy goods or
services from a seller in real-time, without an intermediary service, over the Internet. In
this attempt to provide the advantages of online purchasing to customers of a real shop. It
helps buying the products in the shop anywhere through internet by using an android
device. Thus the customer will get the service of online payment and home delivery from
their home.

The Online Home Appliances is expanded permanently through new products and
services in order to offer product portfolio corresponding to the market. Customers can
order the selected products of the Online Home Appliances service online quickly and
comfortabaly.

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 2

1.1 OBJECTIVE:

• Project describes the complete procedures in order to book products based on the
availability.

• The main purpose of “ONLINE HOME APPLIANCES” is to provide various


provisions to the registered customers in order to book the products through
online.

• The existing system works based on the manual calculations.

• So the main point of this scenario is posting the ONLINE HOME APPLIANCES
from the fixed asset to a current asset.

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 3

CHAPTER 2
SYSTEM ANALYSIS
2.1 INTRODUCTION

System analysis is the process of gathering and interpreting facts,


diagnosing problems and using the information to recommend improvements on the
system. System analysis is a problem solving activity that requires intensive
communication between the users and developers.

System analysis or study is an important phase of any system development


process. The system is viewed as a whole, the inputs are identified and the system is
subjected to close study to identify the problem areas. The solutions are given as
a proposal. The proposal is reviewed on user request and suitable changes are made.
This loop ends as soon as the user is satisfied with the proposal.

2.2 EXISTING SYSTEM

The current system for shopping is to visit the shop manually and from the
available product customers should choose the products and make payment for the
selected products.

1. It is less user-friendly.

2. User must go to shop and select the products.

3. It is difficult to identify the required product since stocks are limited.

4. Description of the product limited.

5. It is a time consuming process.

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 4

2.3 PROPOSED SYSTEM:


In the proposed system customers can purchase required products through online.
The shop owner will be admin of the system. Shop owner can appoint moderators who
will help owner in managing the customers and product orders. The system also
recommends a home delivery system for the purchased products

Advantages of Proposed System


 It is trouble-free to use.
 It is a relatively fast approach to search the products.
 It is highly reliable, approximate result from use.
 Best user Interface.
 Efficient reports.

2.4. FEASIBILITY STUDY:

Feasibility analysis begins once the goals are defined. It starts by generating broad
possible solutions, which are possible to give an indication of what the new system
should look like. Analysts must think up new ways of doing things- generate new ideas.
There is no need to go into the detailed system operation yet. The solution should provide
enough information to make reasonable estimates about project cost and give users an
indication of how the new system will fit into the organization. It is important not to exert
considerable effort at this stage only to find out that the project is not worthwhile or that
there is a need significantly change the original goal. Feasibility of a new system means
ensuring that the new system, which we are going to implement, is efficient and
affordable. There are various types of feasibility to be determined. They are,

2.4.1 Economically Feasibility:


This is very important aspect to be considered while developing a project. We
decided the technology based or minimum possible cost factor.
 We have estimated that benefits the organization is going to receive from the
proposed system will surely overcome the initial costs and the later on running
cost for system.
2.4.2 Technical feasibility:

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 5

This included the study of function, performance and constraints that may
affect the ability to achieve an acceptance system. For this feasibility study, we studied
complete functionality to be provided in the system, as described in the system
requirement specification (SRS), and checked if everything was possible using different
type of frontend and backend platforms.

2.4.3 Operational Feasibility:


The system working is quite easy to use and learn due to its simple but
attractive interface. User requires no special training for operating the system.
No doubt the proposed system is fully GUI based that is very user friendly and all the
inputs to be taken all self-explanatory even to a layman. Besides, a proper training has
been conducted to let know the essence of the system to the users so that they feel
comfortable with new system

CHAPTER-3
SYSTEM REQUIREMENT SPECIFICATION

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 6

3.1 SOFTWARE REQUIREMENTS:

Front end : Asp.Net 2012


Back end : Sql server 2012
Programming Language : C#

3.2 HARDWARE REQUIREMENTS:

HARDWARE VB.NET SQLSERVER WINDOWS 8.1


Processors 1.6GHZ 1.0GHZ 1GHZ
RAM 600MB 600MB 1GB
Hard Disk 1GB 1GB 16GB

CHAPTER-4
SOFTWARE DESCRIPTION

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 7

4.1 PACKAGE - VISUAL STUDIO 2012

Microsoft Visual Studio is an Integrated Development Environment (IDE) from


Microsoft. It is used to develop console and graphical user interface applications along
with Windows Forms or WPF applications, web sites, web applications, and web services
in both native code together with managed code for all platforms supported by Microsoft
Windows, Windows Mobile, Windows Consumer Electronics (CE), .NET Framework,
.NET Compact Framework and Microsoft Silver light.
Visual Studio supports different programming languages by means of language
services, which allow the code editor and debugger to support (to varying degrees) nearly
any programming language, provided a language-specific service exists.
Visual Studio also includes a web-site editor and designer that allow web pages to
be authored by dragging and dropping widgets. It is used for developing VB.NET
application efficiently to get input and output design easiest one. It will be run at
windows application based services provide the user.

4.2 ABOUT DBMS

A database management system is a collection of programs that enables users to


create and maintain a database. The DBMS is a general-purpose software system that

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 8

facilitates the processes of defining, constructing, manipulating, and sharing databases


among various users and applications.

 Defining a database involves specifying the data types, structures, and


constraints of the data to be stored in the database. The database definition
or descriptive information is also stored by the DBMS in the form of a
database catalogue or dictionary; it is called meta-data.
 Constructing the database is the process of storing the data on some
storage medium that is controlled by the DBMS.
 Manipulating a database includes functions such as querying the database
to retrieve specific data, updating the database to reflect changes in the
mini word, and generating reports from the data.
 Sharing a database allows multiple users and programs to access the
database simultaneously.

Why Use DBMS?

 To develop software applications in less time.


 Data independence and efficient use of data.
 For uniform data administration.
 For data integrity and security.
 For concurrent access of data, and data recovery from crashes.
 To use user-friendly declarative query language.

Where is Database Management System (DBMS) being used?

 Airlines: reservations, schedules etc.


 Telecom: calls made, customer details, network usage etc.
 Universities: registration, results, grades etc.
 Sales: products, purchases, customers etc.
 Banking: all transactions etc.

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 9

Advantages of DBMS

The following are the various advantages of DBMS:

 Efficient data access: DBMS utilizes a mixture of sophisticated concepts and


techniques for storing and retrieving data competently and this feature becomes
important in cases where the data is stored on external storage devices.
 Data integrity and security: If data is accessed through the DBMS, the DBMS can
enforce integrity constraints on the data.
 Data administration: When several users share the data, integrating the administration
of data can offer major improvements. Experienced professionals understand the
nature of the data being managed and can be responsible for organizing the data
representation to reduce redundancy and make the data to retrieve efficiently.

Components of DBMS

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 10

Fig. No. 4.2.1

 Users: Users may be of any kind such as DB administrator, System developer or


database users.
 Database application: Database application may be Departmental, Personal,
organization’s and / or Internal.
 DBMS: Software that allow users to create and manipulate database access,

4.3 DEVELOPMENT TOOLS AND TECHNOLOGIES

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 11

VB.NET Version 10.0:


The latest version of Visual Basic .NET, which runs on .NET framework
4.5.Async Feature, Iterates, Call Hierarchy, Caller Information and Global Keyword in
Namespace Statements are some of the major features introduced in this version of VB.

Visual Basic .NET (VB.NET) is an object-oriented computer programming language


that can be viewed as an evolution of the classic Visual Basic (VB), implemented on
the .NET Framework. Microsoft currently supplies two main editions of IDEs for
developing in Visual Basic: Microsoft Visual Studio 2012, which is commercial software
and Visual Basic Express Edition 2012, which is free of charge. The command-line
compiler, VBC.EXE, is installed as part of the freeware .NET Framework SDK. Mono
also includes a command-line VB.NET compiler. The most recent version is VB 2012,
which was released on August 15, 2012.
My goal in this article is to provide you with an introductory, yet intensive, look
at Visual Basic .NET and the new Microsoft®.NET platform. In order to learn what
Visual Basic .NET is all about, you must first understand a few core aspects of the .NET
platform. This article will build your knowledge of Visual Basic .NET from the ground
up, so I'll begin by discussing the new programming model and the high-level
architecture of the platform's execution engine called the Common Language Runtime
(CLR).
While explaining what the CLR is and how it works, I'll show a few examples
using Visual Basic .NET. As you'll see, Visual Basic® has undergone a significant
overhaul to accommodate the CLR and its associated programming model. Consequently,
Visual Basic .NET has many new object-oriented design features and much higher levels
of type safety than previous versions of Visual Basic. Either language can be used to
write software that takes full advantage of the CLR .NET Framework. Now, let me get
started by introducing the core concepts of the .NET platform

CHAPTER 5

PROJECT DESCRIPTION

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 12

5.1 PROBLEM DEFINITION:

To perform automation of ONLINE HOME APPLIANCES, The software


includes: it maintains customer details, product details, booking details and bill
generation .The main objective is to book a product through Online. Facility to search
product details and booking the product availability.

5.2 PROJECT OVERVIEW:

The project is totally built at administrative end and thus only the administrator is
guaranteed the access. The purpose of the project is to build an application program to
reduce the manual work for managing the booking, payment, and customer. It tracks all
the details about the customer, products, and booking.

5.3 MODULE DESCRIPTION

The system should be designed in such a way that only authorized people should
be allowed to access some particular modules. The records should be modified by only
administrators and unauthorized users cannot manipulate the data. The user should
always be in control of the application and not the vice versa.

5.3.1 ADMINISTRATOR MODULE:

 Admin module contains the details of customers, booked products and complaint
details.

 In this module the products and product details will be updated by admin.

 Data manipulation is strictly prohibited from unauthorized users.

Booking details:

 This form contains all the booking details of the customers.

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 13

 All the booked details which are done by the customer can be viewed by the
admin by this form.
 It contains product name, product quantity, price and other details which are
associated with product.

5.3.2 CUSTOMER MODULE

Product List:

 Customer can search the products , the complete will be provided by the system
based on customer choice.

 When customers are satisfied from the services which are provided by the system,
they can access and make use of various operations which are permitted by
Admin.

Booking Product:

 Customers can book the products by providing necessary details to the admin in
order to get the conformation.

Cancel Product:
 Customers can cancel the product by providing perticular reasons of cancel the
product.

Complaints:
 Customers can complaint in case of damaged product,delay in delivery etc.

5.4 DATA FLOW DIAGRAM (DFD)


The data flow diagram is one of the most important tools used by system analysis.
Data Flow Diagram are made up of number symbols, which represents system

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 14

components. Most data flow modeling methods use four kinds of symbols, these symbols
are used to prevent four types of components. Processes, data flow, data stores and
external entities Circles in DFD represents processes. Data flow is represented by a thin
line in the DFD and each data store has a unique name and square or rectangle represents
external entities.

To construct a data flow diagram, we use:


 Arrows
 Circles
 Open end Box
 Squares
Basic data flow symbols:

1. Arrows Arrows represent data flow in motion.

2. Circles A Circles represents a process that


transforms incoming data into
outgoing data flow

3. Rectangle A Rectangle is a symbol used in the data


flow diagram which is used to represent an
attribute

4. Rhombus It is used to represent a relationship between


two attributes.

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 15

5.4.1 DFD Level 0:

Customer

Admin
Details

Access
Manage
BOOKIN
G

Report

5.4.1 DFD Level 1:

ACCESS Request
Admin
Response PRODUCTS

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 16

Request
View
Response REPORTS

5.5 ER DIAGRAM
Usernam
Username e
Password M Password
M
1 1

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 17

ADMIN CUSTOMER

1 N Brand

P Price
Vie Book Name Category
w
Quantity

1 M
B id

BOOKING Card no
DETAILS

CVV no
Debit card

PAYMENT MODE Pin

1 M
Customer Email.ID
details Pincode

Ph No
C
name Customer
Addrs Gende id
r

ER DIAGRAM SYMBOLS
An entity relationship(ER) diagram is a specialized graphic that illustrates the inter relationships
between entities in a data base. ER Diagram often uses symbols to represent different types of
information.

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 18

ER-Symbols Description

Entity

Weak entity

Attribute

Multivalve attribute

Relationship

Identifying relationship

Link attributes to entity sets


And entity sets to
Relationships

Key attribute

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 19

CHAPTER 6

SYSTEM IMPLEMENTATION

6.1 Purpose
System implementation is the important stage of project when the theoretical design is
tuned into practical system. The main stages in the implementation are as follows:

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 20

 Planning
 Training
 System testing and
 Changeover Planning
Planning is the first task in the system implementation. At the time of
implementation of any system people from different departments and system analysis
involve. They are confirmed to practical problem of controlling various activities of
people outside their own data processing departments.

The line managers controlled through an implementation coordinating committee.


The committee considers ideas, problems and complaints of user department, it must also
consider:
 The implication of system environment
 Self-selection and allocation for implementation tasks
 Consultation with unions and resources available
 Standby facilities and channels of communication

6.2 SYSTEM MAINTENANCE

Software maintenance is far more than finding mistakes. Provision must be made
for environment changes, which may affect either the computer, or other parts of the
computer based systems. Such activity is normally called maintenance. It includes both
the improvement of the system functions and the corrections of faults, which arise during
the operation of a new system.

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 21

It may involve the continuing involvement of a large proportion of computer


department recourses. The main task may be to adapt existing systems in a changing
environment.
Back up for the entire database files are taken and stored in storage devices like
flash drives, pen drives and disks so that it is possible to restore the system at the earliest.
If there is a breakdown or collapse, then the system gives provision to restore database
files. Storing data in a separate secondary device leads to an effective and efficient
maintains of the system. The nominated person has sufficient knowledge of the
organization’s computer passed based system to be able to judge the relevance of each
proposed chapter.

CHAPTER -7

SYSTEM TESTING

7.1 INTRODUCTION
Once source code has been generated, software must be tested to uncover (and
correct) as many errors as possible before delivery to customer. Our goal is to design a
series of test cases that have a high likelihood of finding errors. To uncover the errors

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 22

software techniques are used. These techniques provide systematic guidance for
designing test that

(1) Exercise the internal logic of software components, and

(2) Exercise the input and output domains of the program to uncover errors in program
function, behavior and performance.

7.1.1 Steps: Software is tested from two different perspectives:

(1) Internal program logic is exercised using ―White box‖ test case design Techniques.
(2) Software requirements are exercised using ―block box‖ test case Design techniques.

In both cases, the intent is to find the maximum number of errors with the
Minimum amount of effort and time.

7.2 Testing Methodologies:


A strategy for software testing must accommodate low-level tests that are
necessary to verify that a small source code segment has been correctly implemented as
well as high-level tests that validate major system functions against customer
requirements.

A strategy must provide guidance for the practitioner and a set of milestones for the
manager. Because the steps of the test strategy occur at a time when deadline pressure
begins to rise, progress must be measurable and problems must surface as early as
possible. Following testing techniques are well known and the same strategy is adopted
during this project testing.

7.2.1 Unit testing:

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 23

Unit testing focuses verification effort on the smallest unit of software design- the
software component or module. The unit test is white-box oriented. The unit testing
implemented in every module of ONLINE HOME APPLIANCES. By giving correct
manual input to the system, the data’s are stored in database and retrieved. If you want
required module to access input or gets the output from the End user any error will
accrued at the time will provide handler to show what type of error will accrued.

7.2.2 System testing:


System testing is actually a series of different tests whose primary purpose is to
fully exercise the computer-based system. Below we have described the two types of
testing which have been taken for this project. It is to check all modules worked on input
basis .if you want change any values or inputs will change all information. So specified
input is must.

7.2.3 Performance Testing


Performance testing is designed to test the run-time performance of software
within the context of an integrated system. Performance testing occurs throughout all
steps in the testing process. Even at the unit level, the performance of an individual
module may be assessed as white-box tests are conducted.
This project reduce booking table, codes. It will generate report fast. No have extra time
or waiting of results. Entered correct data will show result in few millisecond just used
only low memory of our system. Automatically do not getting access to software. Get
user permission and then access to other applications.

7.3 TEST CASES


Test case is an object for execution for other modules in the architecture does not
represent any interaction by itself. A test case is a set of sequential steps to execute a test
operating on a set of predefined inputs to produce certain expected outputs. There are two
types of test cases:-manual and automated. A manual test case is executed manually while
an automated test case is executed using automation.

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 24

In system testing, test data should cover the possible values of each parameter based on
the requirements. Since testing every value is impractical, a few values should be chosen
from each equivalence class. An equivalence class is a set of values that should all be
treated the same.
Ideally, test cases that check error conditions are written separately from the
functional test cases and should have steps to verify the error messages and logs.
Realistically, if functional test cases are not yet written, it is ok for testers to check for
error conditions when performing normal functional test cases. It should be clear which
test data, if any is expected to trigger errors.

CHAPTER 8

DATA TABLE DESCRIPTION

8.1 Admin Login:

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 25

Column name Data type Nulls Key

Username varchar(50) No PRI

Password Varchar(30) Yes

Table No. 8.1 Admin Login

8.2 CUSTOMER LOGIN:

Column name Data type Nulls

User name Varchar(50) No

Password Varchar(50) No

Table No. 8.2 Customer Login

8.3 Register Details:

Column Name Data Type Nulls Key

Customer id Int Yes PRI

Customer Name Varchar(50) Yes

Gender Varchar(10) Yes

Phone number Varchar(50) Yes

Date Date Time Yes

Address Varchar(50) Yes

City Varchar(50) Yes

Pin code Varchar(50) Yes

Table No. 8.3 Register Details

8.4 Customer Details:

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 26

Column Name Data Type Nulls Key

Customer id Int Yes PRI

Customer Name Varchar(50) Yes

Gender Varchar(10) Yes

Phone number Varchar(50) Yes

Date Date Time Yes

Address Varchar(50) Yes

City Varchar(50) Yes

Pin code Varchar(50) Yes

Table No. 8.4 Customer Details

8.5 Booking details:

Column Name Date Time Null Key

Booking id int No PRI

Product id BigInt Yes

PRODUCT name Varchar(50) Yes

Date Date Time Yes

Address Varchar(50) Yes

Gender Varchar(50) Yes

Phone Varchar(50) Yes

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 27

Email Varchar(30) Yes

product name Varchar(30) Yes

Quantity Varchar(30) Yes

Total cost Varchar(30) Yes

Select mode of Varchar(30) Yes


payment

Enter card number Varchar(30) Yes

Pin Varchar(30) Yes

Table No. 8.4 Booking Details

CHAPTER: 9
SCREENSHOTS

9.1 Home Page

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 28

Fig No 9.1 HOME PAGE

9.2 Login Page:

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 29

Fig No 9.2 LOGIN FORM

9.3 Customer

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 30

Fig No 9.3 CUSTOMER

9.4 Registration

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 31

Fig No 9.4 REGISTRATION

9.5 Product List

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 32

Fig No 9.5 PRODUCT LIST

9.6 Product Booking

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 33

Fig No 9.6 PRODUCT BOOKING

9.7 Cancellation

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 34

Fig No 9.7 CANCELLATION

9.8 Complaints

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 35

Fig No 9.8 COMPLAINTS

9.9 Admin Home

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 36

Fig No 9.9 ADMIN HOME

9.10 Add Product

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 37

Fig No 9.10 ADD PRODUCT

9.11 Delete Product

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 38

Fig No 9.11 DELETE PFRODUCT

9.12 Manage

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 39

Fig No 9.12 MANAGE

CHAPTER 10
SOURCE CODE
Customer form:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage3.master"
AutoEventWireup="true" CodeFile="customers.aspx.cs" Inherits="customers" %>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 40

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


Runat="Server">
<asp:Panel ID="Panel1" runat="server" BackImageUrl="backgrounds/ct.jpg">

<br />
<h3 class="auto-style25" style="height: 28px">Customer</h3>
<table align="center" class="auto-style1">
<tr>
<td class="auto-style5">
<asp:Label ID="Label1" runat="server" Text="Customer ID"></asp:Label>
</td>
<td class="auto-style6">
<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
</td>
<td class="auto-style7">
<asp:Label ID="Label8" runat="server" Text="Mobile No"></asp:Label>
</td>
<td class="auto-style26">
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2"
runat="server" ControlToValidate="TextBox3" ErrorMessage="enter currect number"
Font-Size="Smaller" ForeColor="Red" ValidationExpression="/d{10}"
ValidationGroup="suni"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="auto-style9">
<asp:Label ID="Label5" runat="server" Text="Customer Name"></asp:Label>
</td>
<td class="auto-style10">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 41

<asp:RangeValidator ID="RangeValidator1" runat="server"


ControlToValidate="TextBox1" ErrorMessage="enter only character" Font-
Size="Smaller" ForeColor="Red" ValidationGroup="[a-z]*" MaximumValue="z"
MinimumValue="a"></asp:RangeValidator>
</td>
<td class="auto-style11">
<asp:Label ID="Label9" runat="server" Text="Date"></asp:Label>
</td>
<td class="auto-style27">&nbsp;&nbsp;
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>

<strong>
<asp:ImageButton ID="ImageButton1" runat="server"
OnClick="ImageButton1_Click" Width="20px" Height="26px"
ImageUrl="~/viji/calender.jpg" />

</strong>

</td>
</tr>
<tr>
<td class="auto-style13">
<asp:Label ID="Label6" runat="server" Text="Gender"></asp:Label>
</td>
<td class="auto-style14">
<asp:DropDownList ID="DropDownList1" runat="server" Height="30px"
Width="128px">
<asp:ListItem></asp:ListItem>
<asp:ListItem>Male</asp:ListItem>
<asp:ListItem>Female</asp:ListItem>
<asp:ListItem>Other</asp:ListItem>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 42

</asp:DropDownList>
</td>
<td class="auto-style15">
<asp:Label ID="Label10" runat="server" Text="Adress"></asp:Label>
</td>
<td class="auto-style28">
<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style17">
<asp:Label ID="Label7" runat="server" Text="Emai ID"></asp:Label>
</td>
<td class="auto-style18">
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1"
runat="server" ControlToValidate="TextBox2" ErrorMessage="enter currect email id"
Font-Size="Smaller" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+
([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="suni"></asp:RegularExpressionValidator>
</td>
<td class="auto-style19">
<asp:Label ID="Label12" runat="server" Text="Pincode"></asp:Label>
</td>
<td class="auto-style29">
<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator3"
runat="server" ControlToValidate="TextBox6" ErrorMessage="enter only number" Font-
Size="Smaller" ForeColor="Red" ValidationExpression="/d{6}"
ValidationGroup="suni"></asp:RegularExpressionValidator>
</td>
</tr>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 43

<tr>
<td class="auto-style21">
<asp:Button ID="Button1" runat="server" Text="Clear" OnClick="Button1_Click"
style="margin-top: 1px; color: #FF3300; font-weight: 700; font-size: medium;" />
</td>
<td class="auto-style22">
<asp:Button ID="Button2" runat="server" Text="Register"
OnClick="Button2_Click" style="margin-top: 1px; font-weight: 700; font-size: medium;
color: #0066FF;" />
</td>
<td class="auto-style23">
<asp:Button ID="Button3" runat="server" Text="Exit" OnClick="Button3_Click"
style="margin-top: 1px; font-weight: 700; font-size: medium; color: #FF0000;" />
</td>
<td class="auto-style31">
<asp:Label ID="Label13" runat="server" Text="Fill all the fields" style="font-
weight: 700; font-size: medium; color: #FF0000"></asp:Label>
</td>
</tr>
<tr>
<td class="auto-style21">
<asp:Calendar ID="Calendar1" runat="server" BackColor="White"
BorderColor="Black" BorderStyle="Solid" CellSpacing="1" Font-Names="Verdana"
Font-Size="9pt" ForeColor="Black" Height="136px" NextPrevFormat="ShortMonth"
OnDayRender="Calendar1_DayRender"
OnSelectionChanged="Calendar1_SelectionChanged" Width="116px">
<DayHeaderStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333"
Height="8pt" />
<DayStyle BackColor="#CCCCCC" />
<NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="White" />
<OtherMonthDayStyle ForeColor="#999999" />

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 44

<SelectedDayStyle BackColor="#333399" ForeColor="White" />


<TitleStyle BackColor="#333399" BorderStyle="Solid" Font-Bold="True" Font-
Size="12pt" ForeColor="White" Height="12pt" />
<TodayDayStyle BackColor="#999999" ForeColor="White" />
</asp:Calendar>
</td>
<td class="auto-style22">&nbsp;</td>
<td class="auto-style23">&nbsp;</td>
<td class="auto-style31">&nbsp;</td>
</tr>
</table>
</asp:Panel>
</asp:Content>

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


</asp:Content>

Customer code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Security;

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 45

public partial class customers : System.Web.UI.Page


{
SqlCommand cmd = new SqlCommand();
SqlConnection con = new SqlConnection();
string ID = "id";
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(@"data
source=VIJAY\SQLEXPRESS;initial catalog=home;integrated security=true;");
SqlCommand cmd = new SqlCommand();
if (!IsPostBack)
{
GenarateAutoID();
}
Label13.Visible = false;
TextBox4.Text = DateTime.Now.ToString();
Calendar1.Visible = false;

private void GenarateAutoID()


{

SqlConnection con = new SqlConnection(@"data


source=VIJAY\SQLEXPRESS;initial catalog=home;integrated security=true;");

con.Open();
SqlCommand cmd = new SqlCommand("select Count(id) from customers", con);
int i = Convert.ToInt32(cmd.ExecuteScalar());
con.Close();

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 46

i++;
TextBox7.Text = i.ToString();
}

protected void Button1_Click(object sender, EventArgs e)


{
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
DropDownList1.Text = "";
}
protected void Button3_Click(object sender, EventArgs e)
{
Response.Redirect("registration.aspx");
}
protected void Button2_Click(object sender, EventArgs e)
{

if (TextBox1.Text == "" || TextBox2.Text == "" || TextBox3.Text == "" ||


TextBox4.Text == "" || TextBox5.Text == "" || TextBox6.Text == "")
{
Label13.Text = " fill all the field";
Label13.Visible = true;

}
else
{

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 47

SqlConnection con = new SqlConnection(@"data


source=VIJAY\SQLEXPRESS;initial catalog=home;integrated security=true;");
string cmd = "insert into
customers(customername,gender,emailid,phoneno,date,address,pincode)values('" +
TextBox1.Text + "','" + DropDownList1.Text + "','" + TextBox2.Text + "','" +
TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" + TextBox6.Text +
"')";
SqlCommand b = new SqlCommand(cmd, con);
con.Open();
b.ExecuteNonQuery();
con.Close();

Response.Redirect("Product list.aspx");
}

protected void ImageButton1_Click(object sender, ImageClickEventArgs e)


{
if (Calendar1.Visible)
{
Calendar1.Visible = false;
}
else
{
Calendar1.Visible = true;
}
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 48

TextBox5.Text = Calendar1.SelectedDate.ToString();
Calendar1.Visible = false;
}
protected void Calendar1_DayRender(object sender,
System.Web.UI.WebControls.DayRenderEventArgs e)
{
if (e.Day.IsOtherMonth || e.Day.IsWeekend)
{
e.Day.IsSelectable = false;
e.Cell.BackColor = System.Drawing.Color.Red;
}
}
}

Registration:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage3.master"
AutoEventWireup="true" CodeFile="registration.aspx.cs" Inherits="register" %>

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


Runat="Server">
<asp:Panel ID="Panel1" runat="server" BackImageUrl="backgrounds/qq.jpg">

<br />
<style type="text/css">
body
{

background-color:#F0FFF0;

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 49

<strong><span class="auto-style7"><span class="auto-


style6">REGISTRATION</span>
<br class="auto-style8" />
</span><span class="auto-style2">
<br />
<br />
</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<table class="auto-style9" align="center">
<tr>
<td class="auto-style46">

<strong> <asp:Label ID="Label1" runat="server" Text="First Name"


CssClass="auto-style5" ForeColor="Lime"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; </strong>
</td>
<td class="auto-style41">

<strong>
<asp:TextBox ID="TextBox1" runat="server" Height="23px" Width="127px"
CssClass="auto-style5"></asp:TextBox>
</strong>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1"
runat="server" ControlToValidate="TextBox1" ErrorMessage="enter only character"
Font-Size="Smaller" ForeColor="#CC0000" ValidationExpression="[a-z]*"
ValidationGroup="suni"></asp:RegularExpressionValidator>
</td>
<td class="auto-style36">

<strong>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 50

<span class="auto-style4">
<asp:Label ID="Label5" runat="server" Text="Email Id" CssClass="auto-style3"
ForeColor="Lime"></asp:Label>
</span></strong>
</td>
<td class="auto-style12">

<strong>
<span class="auto-style4">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;
<asp:TextBox ID="TextBox4" runat="server" Height="23px" Width="127px"
CssClass="auto-style5"></asp:TextBox>
</span>
<asp:RegularExpressionValidator ID="RegularExpressionValidator4"
runat="server" ControlToValidate="TextBox4" ErrorMessage="enter currect email id"
Font-Size="Smaller" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+
([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="suni"></asp:RegularExpressionValidator>
</strong>
</td>
</tr>
<tr>
<td class="auto-style47">
<asp:Label ID="Label2" runat="server" Text="Last Name" CssClass="auto-style3"
ForeColor="Lime"></asp:Label>
</td>
<td class="auto-style42">

<strong>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 51

<asp:TextBox ID="TextBox2" runat="server" Height="23px" Width="127px"


CssClass="auto-style5"></asp:TextBox>

</strong>

<asp:RegularExpressionValidator ID="RegularExpressionValidator2"
runat="server" ControlToValidate="TextBox2" ErrorMessage="enter only character"
Font-Size="Smaller" ForeColor="#CC0000" ValidationExpression="[a-z]*"
ValidationGroup="suni"></asp:RegularExpressionValidator>

</td>
<td class="auto-style37">

<strong>

<asp:Label ID="Label6" runat="server" Text="Date" CssClass="auto-style3"


ForeColor="Lime"></asp:Label>
</strong>

</td>
<td class="auto-style14">
<asp:TextBox ID="TextBox5" runat="server" Height="23px"
Width="127px"></asp:TextBox>

<strong>
<asp:ImageButton ID="ImageButton1" runat="server"
OnClick="ImageButton1_Click" Width="32px" Height="34px"
ImageUrl="~/viji/calender.jpg" />

</strong>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 52

</td>
</tr>
<tr>
<td class="auto-style48"> <asp:Label ID="Label3" runat="server"
Text="Gender" CssClass="auto-style3" ForeColor="Lime"></asp:Label>
&nbsp; </td>
<td class="auto-style43">

<strong>
<asp:DropDownList ID="DropDownList1" runat="server" Height="43px"
Width="127px" CssClass="auto-style5">
<asp:ListItem></asp:ListItem>
<asp:ListItem>Male</asp:ListItem>
<asp:ListItem>Female</asp:ListItem>
<asp:ListItem>Other</asp:ListItem>
</asp:DropDownList>
</strong>
</td>
<td class="auto-style38">

<strong>
<asp:Label ID="Label7" runat="server" Text="Address" style="font-size: medium;
font-weight: 700; color: #0066FF" ForeColor="Lime"></asp:Label>
</strong>
</td>
<td class="auto-
style16">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;
<asp:TextBox ID="TextBox6" runat="server" Height="23px" Width="128px"
OnTextChanged="TextBox6_TextChanged" ></asp:TextBox>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 53

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
</tr>
<tr>
<td class="auto-style49">
<asp:Label ID="Label4" runat="server" Text="Phone no" CssClass="auto-style3"
ForeColor="Lime"></asp:Label>

</td>
<td class="auto-style44">

<strong>

<asp:TextBox ID="TextBox3" runat="server" Height="23px" Width="127px"


CssClass="auto-style5"></asp:TextBox>

</strong>
<asp:RegularExpressionValidator ID="RegularExpressionValidator3"
runat="server" ControlToValidate="TextBox3" ErrorMessage="enter currect number"
Font-Size="Smaller" ForeColor="#CC0000" ValidationExpression="\d{10}"
ValidationGroup="suni"></asp:RegularExpressionValidator>
</td>
<td class="auto-style39">

<strong>
<asp:Label ID="Label8" runat="server" Text="Pincode" style="font-weight: 700;
font-size: medium; color: #0066FF" ForeColor="Lime"></asp:Label>
</strong>
</td>
<td class="auto-
style18">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 54

;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<strong>
<asp:TextBox ID="TextBox7" runat="server" Height="22px"
Width="127px"></asp:TextBox>

</strong>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;
<asp:RegularExpressionValidator ID="RegularExpressionValidator5"
runat="server" ControlToValidate="TextBox7" ErrorMessage="enter currect pin" Font-
Size="Smaller" ForeColor="#CC0000" ValidationExpression="\d{6}"
ValidationGroup="suni"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="auto-style50">
<asp:Button ID="Button2" runat="server" Text="Register"
OnClick="Button2_Click" style="margin-top: 1px; font-weight: 700; font-size: medium;
color: #0066FF;" Width="95px" />
</td>
<td class="auto-style45">

<strong>
<asp:Button ID="Button1" runat="server" Text="Clear" OnClick="Button1_Click"
style="margin-top: 1px; color: #FF3300; font-weight: 700; font-size: medium;"
Width="95px" ForeColor="Blue" />
</strong>
</td>
<td class="auto-style40">

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 55

<strong>
<asp:Button ID="Button3" runat="server" Text="Exit" OnClick="Button3_Click"
style="margin-top: 1px; font-weight: 700; font-size: medium; color: #FF0000;"
Width="78px" ForeColor="Blue" />
</strong>
</td>
<td class="auto-style20
<strong>
<asp:Label ID="Label9" runat="server" Text="Fill all the fields" style="font-
weight: 700; font-size: medium; color: #FF0000"></asp:Label>

</strong>
</td>
</tr>
</table>
<span class="auto-style5">
<asp:Calendar ID="Calendar1" runat="server" BackColor="White"
BorderColor="Black" BorderStyle="Solid" CellSpacing="1" Font-Names="Verdana"
Font-Size="9pt" ForeColor="Black" Height="89px" NextPrevFormat="ShortMonth"
OnDayRender="Calendar1_DayRender"
OnSelectionChanged="Calendar1_SelectionChanged" Width="81px">
<DayHeaderStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333"
Height="8pt" />
<DayStyle BackColor="#CCCCCC" />
<NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="White" />
<OtherMonthDayStyle ForeColor="#999999" />
<SelectedDayStyle BackColor="#333399" ForeColor="White" />
<TitleStyle BackColor="#333399" BorderStyle="Solid" Font-Bold="True" Font-
Size="12pt" ForeColor="White" Height="12pt" />
<TodayDayStyle BackColor="#999999" ForeColor="White" />

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 56

</asp:Calendar>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span>
<span class="auto-
style4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br /></span></strong>
</div>
<div>
<br />

<br class="auto-style3" />

<br />&nbsp;<br class="auto-style3" />

</div>
<div>
<br />

<br class="auto-style3" />

</div>
<div>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; </span></span>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 57

<br />

<br class="auto-style3" />

</div>
<div>

<span class="auto-style3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; </span></span></strong>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
<br />
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;<br />
</div>
<div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />
<br />
</div>
<div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />
<br />
</div>
</asp:Panel>
</asp:Content>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 58

Registration
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;
using System.Web.Security;
using System.Web.UI.WebControls;

public partial class register : System.Web.UI.Page


{

SqlCommand cmd = new SqlCommand();


SqlConnection con = new SqlConnection();
protected void Page_Load(object sender, EventArgs e)
{
TextBox5.Text = DateTime.Now.ToString();
Calendar1.Visible = false;

SqlConnection con = new SqlConnection(@"data source=VIJAY\VIJAY;initial


catalog=home;integrated security=true;");
SqlCommand cmd = new SqlCommand();
Label9.Visible = false;
}
protected void Button2_Click(object sender, EventArgs e)
{

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 59

if (TextBox1.Text == "" || TextBox2.Text == "" || TextBox3.Text == "" ||


TextBox4.Text == "" || TextBox5.Text == "" || TextBox6.Text == "" || TextBox7.Text ==
"")
{
Label9.Text = " fill all the field";
Label9.Visible = true;

}
else
{
SqlConnection con = new SqlConnection(@"data
source=VIJAY\SQLEXPRESS;initial catalog=home;integrated security=true;");
SqlCommand cmd = new SqlCommand();
con.Open();
cmd.CommandText = "insert into
registration(firstname,lastname,gender,emailid,date,phoneno,address,pincode)values(@fi
rstname,@lastname,@gender,@emailid,@date,@phoneno,@address,@pincode)";
cmd.CommandType = CommandType.Text;
cmd.Connection = con;
cmd.Parameters.AddWithValue("@firstname", TextBox1.Text);
cmd.Parameters.AddWithValue("@lastname", TextBox2.Text);
cmd.Parameters.AddWithValue("@gender",
DropDownList1.SelectedItem.Value);
cmd.Parameters.AddWithValue("@emailid", TextBox3.Text);
cmd.Parameters.AddWithValue("@date", TextBox4.Text);
cmd.Parameters.AddWithValue("@phoneno", TextBox5.Text);
cmd.Parameters.AddWithValue("@address", TextBox6.Text);
cmd.Parameters.AddWithValue("@pincode", TextBox7.Text);

cmd.ExecuteNonQuery();
Response.Redirect("customers.aspx");

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 60

}
}
protected void Button3_Click(object sender, EventArgs e)
{
Response.Redirect("login.aspx");
}
protected void Button1_Click(object sender, EventArgs e)
{

TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
DropDownList1.Text = "";
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
if (Calendar1.Visible)
{
Calendar1.Visible = false;
}
else
{
Calendar1.Visible = true;
}
}
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 61

Calendar1.SelectedDate = Calendar1.TodaysDate;

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

TextBox5.Text = Calendar1.SelectedDate.ToString();
Calendar1.Visible = false;
}
protected void TextBox6_TextChanged(object sender, EventArgs e)
{

}
}

Product list:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage3.master"
AutoEventWireup="true" CodeFile="Product list.aspx.cs" Inherits="Default2" %>

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


Runat="Server">
<asp:Panel ID="Panel1" runat="server" BackImageUrl="backgrounds/prdl.jpg">

<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"


RepeatDirection="Horizontal"
RepeatColumns="3" BackColor="White" BorderColor="#E7E7FF"
BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal" >
<AlternatingItemStyle BackColor="#F7F7F7" />
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7"
/>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 62

<ItemStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />


<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("id") %>'
Visible='false'></asp:Label>
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("image") %>'
Height="250px"
Width="225px" />
<br />
<asp:Label ID="Label1" runat="server" Text='<%# Eval("productName")
%>'></asp:Label>
<asp:ImageButton ID="ImageButton1" runat="server"
ImageUrl='~/header/booking.jpg' PostBackUrl='<%#"product detail.aspx?
pName="+Eval("productName") %>' />
</ItemTemplate>
<SelectedItemStyle BackColor="#738A9C" Font-Bold="True"
ForeColor="#F7F7F7" />
</asp:DataList>

<asp:SqlDataSource ID="SqlDataSource1" runat="server"


ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>"
SelectCommand="SELECT [id], [productName], [brand], [image], [catagory],
[price] FROM [product]">
</asp:SqlDataSource>
</asp:Panel>

</asp:Content>

Booking:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage3.master"
AutoEventWireup="true" CodeFile="booking.aspx.cs" Inherits="booking" %>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 63

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


Runat="Server">

<table class="auto-style1">

<tr>
<td class="auto-style2">
<asp:Label ID="Label1" runat="server" Text="Product Name"
></asp:Label>
</td>
<td class="auto-style3">
<asp:TextBox ID="TextBox2" runat="server" ></asp:TextBox>
<asp:RangeValidator ID="RangeValidator2" runat="server"
ControlToValidate="TextBox2" ErrorMessage="enter only character" Font-Bold="False"
Font-Size="Smaller" ForeColor="Red" ValidationGroup="suni" MaximumValue="z"
MinimumValue="a"></asp:RangeValidator>
</td>
<td class="auto-style4">
<asp:Label ID="Label2" runat="server" Text="Mode Of
Pay"></asp:Label>
</td>
<td class="auto-style5">
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style2">
<asp:Label ID="Label3" runat="server" Text="Brand"></asp:Label>
</td>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 64

<td class="auto-style3">
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
<asp:RangeValidator ID="RangeValidator4" runat="server"
ControlToValidate="TextBox4" ErrorMessage="enter only characters" Font-
Size="Smaller" ForeColor="Red" ValidationGroup="suni"></asp:RangeValidator>
</td>
<td class="auto-style4">
<asp:Label ID="Label7" runat="server" Text="Card
Number"></asp:Label>
</td>
<td class="auto-style5">
<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator7"
runat="server" ControlToValidate="TextBox8" ErrorMessage="enter currect number"
Font-Size="Smaller" ForeColor="#CC0000" ValidationExpression="\d{16}"
ValidationGroup="sunil"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="auto-style2">
<asp:Label ID="Label4" runat="server" Text="Category"></asp:Label>
</td>
<td class="auto-style3">
<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
<asp:RangeValidator ID="RangeValidator5" runat="server"
ControlToValidate="TextBox5" ErrorMessage="enter only character" Font-
Size="Smaller" ForeColor="Red" ValidationGroup="suni"></asp:RangeValidator>
</td>
<td class="auto-style4">
<asp:Label ID="Label8" runat="server" Text="Cvv"></asp:Label>
</td>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 65

<td class="auto-style5">
<asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator8"
runat="server" ControlToValidate="TextBox9" ErrorMessage="enter curret cvv" Font-
Size="Smaller" ForeColor="#CC0000" ValidationExpression="[0-9]*"
ValidationGroup="sunil"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="auto-style10">
<asp:Label ID="Label5" runat="server" Text="Price"></asp:Label>
</td>
<td class="auto-style11">
<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1"
runat="server" ControlToValidate="TextBox6" ErrorMessage="enter only numbers"
Font-Size="Smaller" ForeColor="Red" ValidationExpression="[0-9]*"
ValidationGroup="suni"></asp:RegularExpressionValidator>
</td>
<td class="auto-style12">
<asp:Label ID="Label9" runat="server" Text="Pin"></asp:Label>
</td>
<td class="auto-style13">
<asp:TextBox ID="TextBox10" runat="server"
Width="134px"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator5"
runat="server" ControlToValidate="TextBox10" ErrorMessage="enter currect pin" Font-
Size="Smaller" ForeColor="Red" ValidationExpression="[0-9]*"
ValidationGroup="sunil"></asp:RegularExpressionValidator>
</td>
</tr>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 66

<tr>
<td class="auto-style2">
<asp:Label ID="Label12" runat="server" Text="Quantity"></asp:Label>
</td>
<td class="auto-
style3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" ErrorMessage="must fill some
value"></asp:RequiredFieldValidator>
<asp:RangeValidator ID="RangeValidator1" runat="server"
ControlToValidate="TextBox1" ErrorMessage="must fill value 1-1000"
MaximumValue="1000" MinimumValue="1" Display="Dynamic"
Type="Integer"></asp:RangeValidator>
</td>
<td class="auto-style4">
<asp:Label ID="Label10" runat="server" Text="Deliver To
Address"></asp:Label>
</td>
<td class="auto-style5">
<asp:TextBox ID="TextBox11" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style6">
<asp:Label ID="Label6" runat="server" Text="Total Price"></asp:Label>
</td>
<td class="auto-style7">
<asp:TextBox ID="TextBox7" runat="server" ></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2"
runat="server" ControlToValidate="TextBox7" ErrorMessage="enter only numbers"

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 67

Font-Size="Smaller" ForeColor="Red" ValidationExpression="[0-9]*"


ValidationGroup="suni"></asp:RegularExpressionValidator>
</td>
<td class="auto-style8">
<asp:Label ID="Label11" runat="server" Text="Pincode"></asp:Label>
</td>
<td class="auto-style9">
<asp:TextBox ID="TextBox12" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator6"
runat="server" ErrorMessage="enter only pin" Font-Size="Smaller" ForeColor="Red"
ValidationExpression="[0-9]*" ControlToValidate="TextBox12"
ValidationGroup="suni"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="auto-style2">&nbsp;</td>
<td class="auto-style3">&nbsp;</td>
<td class="auto-style4">&nbsp;</td>
<td class="auto-style5">&nbsp;</td>
</tr>
<tr>
<td class="auto-style2">&nbsp;</td>
<td class="auto-style3">&nbsp;</td>
<td class="auto-style4">&nbsp;</td>
<td class="auto-style5">&nbsp;</td>
</tr>
</table>

</asp:Content>

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

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 68

Booking code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;

public partial class product_detail : System.Web.UI.Page


{
SqlCommand cmd = new SqlCommand();
SqlConnection con = new SqlConnection();
string ID = "id";
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(@"data
source=VIJAY\SQLEXPRESS;initial catalog=shopping;integrated security=true;");
SqlCommand cmd = new SqlCommand();
if (!IsPostBack)
{
GenarateAutoID();
}
Label15.Visible = false;

private void GenarateAutoID()

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 69

{
SqlConnection con = new SqlConnection(@"data
source=VIJAY\SQLEXPRESS;initial catalog=shopping;integrated security=true;");

con.Open();
SqlCommand cmd = new SqlCommand("select Count(bookingid) from bookings",
con);
int i = Convert.ToInt32(cmd.ExecuteScalar());
con.Close();
i++;
TextBox15.Text = i.ToString();
}

protected void use(object sender, DataListItemEventArgs e)


{
if ((ViewState["testviewdata"] != null))
{
Label prd = (Label)e.Item.FindControl("productNameLabel");
ViewState["poductName"] = prd.Text;
Label brd = (Label)e.Item.FindControl("brandLabel");
ViewState["brand"] = brd.Text;
Image img = (Image)e.Item.FindControl("Image1");
ViewState["image"] = img.ImageUrl.ToString();
Label prc = (Label)e.Item.FindControl("priceLabel");
ViewState["price"] = prc.Text;
}

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

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 70

protected void ImageButton3_Click(object sender, ImageClickEventArgs e)


{

SqlConnection con = new SqlConnection(@"data


source=VIJAY\SQLEXPRESS;initial catalog=shopping;integrated security=true;");
string cmd = "insert into
bookings(productid,productname,brand,category,price,quantity,totalprice,emailid,mobilen
o,modeofpay,cardno,cvv,pin,address,pincode)values('" + TextBox13.Text + "','" +
TextBox2.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" + TextBox6.Text +
"','" + TextBox1.Text + "','" + TextBox7.Text + "','" + TextBox16.Text + "','" +
TextBox14.Text + "','" + DropDownList1.Text + "','" + TextBox8.Text + "','" +
TextBox9.Text + "','" + TextBox10.Text + "','" + TextBox11.Text + "','" + TextBox12.Text
+ "')";
SqlCommand b = new SqlCommand(cmd, con);
con.Open();
b.ExecuteNonQuery();
con.Close();

Response.Redirect("Product list.aspx");

}
protected void Button1_Click1(object sender, EventArgs e)
{
Response.Redirect("Product list.aspx");
}
protected void Button2_Click(object sender, EventArgs e)
{

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 71

int a = Convert.ToInt32(this.TextBox6.Text);
int b = Convert.ToInt32(this.TextBox1.Text);
int c;
c = a * b;
TextBox7.Text = Convert.ToString(c);
}
protected void Button3_Click(object sender, EventArgs e)
{
if (DropDownList1.Text == "Cash On Delivary")
{
Label7.Visible = false;
Label8.Visible = false;
Label9.Visible = false;
TextBox8.Visible = false;
TextBox9.Visible = false;
TextBox10.Visible = false;
}
}}

Cancel:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage3.master"
AutoEventWireup="true" CodeFile="cancel.aspx.cs" Inherits="cancel" %>

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


Runat="Server">
<asp:Panel ID="Panel1" runat="server" BackImageUrl="backgrounds/ctc.jpg">
<table class="auto-style1">
<tr>
<td class="auto-style2">
<asp:Label ID="Label1" runat="server" Text="Customer ID"
ForeColor="Lime" BackColor="White"></asp:Label>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 72

</td>
<td class="auto-style2">
&nbsp;<asp:TextBox ID="TextBox1" runat="server" style="margin-left: 0px;
margin-top: 13px; padding-top: 8px" Width="100px"></asp:TextBox>
&nbsp;
<asp:RegularExpressionValidator ID="RegularExpressionValidator4"
runat="server" ControlToValidate="TextBox1" ErrorMessage="enter only number" Font-
Size="Smaller" ForeColor="#CC0000" ValidationExpression="[0-
9]*"></asp:RegularExpressionValidator>
</td>
<td class="auto-style2"></td>
<td class="auto-style2"></td>
</tr>
<tr>
<td class="auto-style3">
<asp:Label ID="Label2" runat="server" Text="Product ID"
ForeColor="Lime"></asp:Label>
</td>
<td class="auto-style3">
&nbsp;
<asp:TextBox ID="TextBox2" runat="server" Width="144px"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1"
runat="server" ControlToValidate="TextBox2" ErrorMessage="enter only numbers"
ValidationExpression="[0-9]*" ValidationGroup="suni" Font-Size="Smaller"
ForeColor="#CC0000"></asp:RegularExpressionValidator>
</td>
<td class="auto-style3"></td>
<td class="auto-style3"></td>
</tr>
<tr>
<td class="auto-style3">

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 73

<asp:Label ID="Label4" runat="server" Text="Reason For Cancellation"


ForeColor="Lime"></asp:Label>
</td>
<td class="auto-style3">
<asp:TextBox ID="TextBox3" runat="server" Height="41px"
TextMode="MultiLine" Width="178px"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator3"
runat="server" ControlToValidate="TextBox3" ErrorMessage="enter only characters"
ValidationExpression="[a-z]*" ValidationGroup="suni" Font-Size="Smaller"
ForeColor="#CC0000"></asp:RegularExpressionValidator>
</td>
<td class="auto-style3">&nbsp;</td>
<td class="auto-style3">&nbsp;</td>
</tr>
<tr>
<td class="auto-style5">
<asp:Button ID="Button1" runat="server" Text="Cancel Product"
Width="130px" OnClick="Button1_Click" Font-Bold="True" Font-Size="Medium" />
</td>
<td class="auto-style5">
<asp:Label ID="Label3" runat="server" ></asp:Label>
</td>
<td class="auto-style5"></td>
<td class="auto-style5"></td>
</tr>
<tr>
<td class="auto-style5">
&nbsp;</td>
<td class="auto-style5">
<asp:Label ID="Label5" runat="server" Text="Product cancelled successfully"
ForeColor="Red"></asp:Label>

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 74

</td>
<td class="auto-style5">&nbsp;</td>
<td class="auto-style5">&nbsp;</td>
</tr>
</table>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$
ConnectionStrings:shoppingConnectionString %>"
SelectCommand="SELECT [id], [productName], [brand], [image], [catagory],
[price] FROM [products] WHERE ([productName] = @productName)">
<SelectParameters>
<asp:QueryStringParameter Name="productName" QueryStringField="pName"
Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Panel>
</asp:Content>

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


<style type="text/css">
.auto-style1 {
width: 100%;
}
.auto-style2 {
height: 74px;
}
.auto-style3 {
height: 73px;
}
.auto-style5 {
height: 45px;
}

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 75

</style>
</asp:Content>

Cancel code:
using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class cancel : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{
Label5.Visible = false;
Label3.Visible = false;
}
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection sunil = new SqlConnection(@"data
source=VIJAY\SQLEXPRESS;initial catalog=shopping;integrated security=true;");
SqlCommand cmd = new SqlCommand();
sunil.Open();
cmd.CommandText = "Delete from booking where prid='" + TextBox2.Text + "'";

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 76

cmd.CommandText = "insert into cancel(customerid,reason) values('" +


TextBox1.Text + "','" + TextBox3.Text + "')";

cmd.CommandType = CommandType.Text;
cmd.Connection = sunil;
Label5.Text = "Product cancelled successfully";
cmd.ExecuteNonQuery();

}
}

CHAPTER-11

11.1 FUTURE ENHANCEMENT


Upcoming versions will be more users friendly. And high security to the payment
and there will be soon delivery of the product.

1. There will give to free delivery.


2. In this application were used only cards then future we used at online banking can be
used.

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 77

3. Admin can new offers can be given in future time.


4. The Administrator of the web site can be given more functionalities, like Looking at a
specific customer’s profile, the books that have to be Reordered, etc.
5. In future we trying to provide call service.
6. Payment can be done by scanning QR code and bar code.
7. Payment through all payment apps like Paytm, freecharge.

12 CONCLUSION

The shopping has become a major resource in modern business, thus home appliances
shopping has gained significance not only from the entrepreneur’s but also from the
Customer’s point of view. For the entrepreneur, electronic shopping generates new
Business opportunities and for the customer, it makes comparative shopping possible.

Per a survey, most consumers of online stores are impulsive and usually make a
decision Stay on a site within the first few seconds. “Website design is like a shop
interior. If the Shop looks poor or like hundreds of other shops the customer is most
likely to skip to the other site”. Hence we have designed the project to provide the user
with easy Navigation, retrieval of data and necessary feedback as much as possible.

12.1 APPLICATIONS

Due to rapid growth of technology,business organizations have switched over


from thetraditional method of selling goods to electronic method of selling
goods.Businessorganizations use internet as main vehicle to conduct commertial
transactions.

Online stores do not have space constraints and a wide variety of products can be
displayed on websites.It helps the analytical buyers to purchase a product after a good
search.

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 78

 Saves time and efforts.

 Convenience of shopping at home.

 Wide variety of products are available.

 Good discounts/lower prices.

 Get detailed information of the product.

 We can compare various models/brands.

13 BIBLIOGRAPHY:

[1] Software Engineering “Somerville”


[2] Fundamentals of database “ELMASRI NAVATHE” “5th Edition”
[3] Database System Concepts “Henry F Korth” “Abraham Silberschatz” “S.
Sudarshan” “SIXTH Edition”
[4] Database System “C.J. Date” “A. Kannan” “S. Swamynathan” “Eighth Edition”
[5] https://www.youtube.com

Department of Computer Science and Applications, Bangalore University


ONLINE HOME APPLIANCES 79

[6] https://www.carrerindia.com

[7] https://stackoverflow.com
[8] https://w3schools.com

Department of Computer Science and Applications, Bangalore University

Вам также может понравиться