Академический Документы
Профессиональный Документы
Культура Документы
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.
1.1 OBJECTIVE:
• Project describes the complete procedures in order to book products based on the
availability.
• So the main point of this scenario is posting the ONLINE HOME APPLIANCES
from the fixed asset to a current asset.
CHAPTER 2
SYSTEM ANALYSIS
2.1 INTRODUCTION
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.
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,
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.
CHAPTER-3
SYSTEM REQUIREMENT SPECIFICATION
CHAPTER-4
SOFTWARE DESCRIPTION
Advantages of DBMS
Components of DBMS
CHAPTER 5
PROJECT DESCRIPTION
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.
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.
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.
Booking details:
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.
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.
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.
Customer
Admin
Details
Access
Manage
BOOKIN
G
Report
ACCESS Request
Admin
Response PRODUCTS
Request
View
Response REPORTS
5.5 ER DIAGRAM
Usernam
Username e
Password M Password
M
1 1
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
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.
ER-Symbols Description
Entity
Weak entity
Attribute
Multivalve attribute
Relationship
Identifying relationship
Key attribute
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:
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.
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.
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
software techniques are used. These techniques provide systematic guidance for
designing test that
(2) Exercise the input and output domains of the program to uncover errors in program
function, behavior and performance.
(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.
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.
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.
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
Password Varchar(50) No
CHAPTER: 9
SCREENSHOTS
9.3 Customer
9.4 Registration
9.7 Cancellation
9.8 Complaints
9.12 Manage
CHAPTER 10
SOURCE CODE
Customer form:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage3.master"
AutoEventWireup="true" CodeFile="customers.aspx.cs" Inherits="customers" %>
<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>
<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>
</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>
<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" />
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;
con.Open();
SqlCommand cmd = new SqlCommand("select Count(id) from customers", con);
int i = Convert.ToInt32(cmd.ExecuteScalar());
con.Close();
i++;
TextBox7.Text = i.ToString();
}
}
else
{
Response.Redirect("Product list.aspx");
}
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" %>
<br />
<style type="text/css">
body
{
background-color:#F0FFF0;
<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>
<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">
<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>
</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>
</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>
</td>
</tr>
<tr>
<td class="auto-style48"> <asp:Label ID="Label3" runat="server"
Text="Gender" CssClass="auto-style3" ForeColor="Lime"></asp:Label>
</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">
&n
bsp;
<asp:TextBox ID="TextBox6" runat="server" Height="23px" Width="128px"
OnTextChanged="TextBox6_TextChanged" ></asp:TextBox>
</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>
</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">  
;
<strong>
<asp:TextBox ID="TextBox7" runat="server" Height="22px"
Width="127px"></asp:TextBox>
</strong>
&nbs
p;
<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">
<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" />
</asp:Calendar>
</span>
<span class="auto-
style4">
<br /></span></strong>
</div>
<div>
<br />
</div>
<div>
<br />
</div>
<div>
</span></span>
<br />
</div>
<div>
<span class="auto-style3">
</span></span></strong>
<br />
<br />
<br />
<br />
<br />
</div>
<div>
<br />
<br />
</div>
<div>
<br />
<br />
</div>
</asp:Panel>
</asp:Content>
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;
}
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");
}
}
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)
{
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>
Booking:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage3.master"
AutoEventWireup="true" CodeFile="booking.aspx.cs" Inherits="booking" %>
<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>
<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>
<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>
<tr>
<td class="auto-style2">
<asp:Label ID="Label12" runat="server" Text="Quantity"></asp:Label>
</td>
<td class="auto-
style3">
<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"
</asp:Content>
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;
{
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 DataList1_SelectedIndexChanged(object sender, EventArgs e)
{
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)
{
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" %>
</td>
<td class="auto-style2">
<asp:TextBox ID="TextBox1" runat="server" style="margin-left: 0px;
margin-top: 13px; padding-top: 8px" Width="100px"></asp:TextBox>
<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">
<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">
</td>
<td class="auto-style5"> </td>
<td class="auto-style5"> </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>
</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;
cmd.CommandType = CommandType.Text;
cmd.Connection = sunil;
Label5.Text = "Product cancelled successfully";
cmd.ExecuteNonQuery();
}
}
CHAPTER-11
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
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.
13 BIBLIOGRAPHY:
[6] https://www.carrerindia.com
[7] https://stackoverflow.com
[8] https://w3schools.com