Академический Документы
Профессиональный Документы
Культура Документы
A
PROJECT REPORT
ON
SHOPEE.COM
Submitted in Partial Fulfillment of Requirement for
Degree of
BACHELOR OF SCIENCE-INFORMATION
TECHNOLOGY
SUBMITTED
BY
ASHOK BAHIR(5580)
SANDESH CHAULKAR(5585)
2
ACKOWLEDGEMENT
ASHOK BAHIR(5580)
SANDESH CHAULKAR(5585)
3
TABLE OF CONTENTS
Sr.No Description Page No.
1. Introduction 8
2. Preliminary Investigation 10
Overview of Online Shopping 11
e-shopping 12
Existing System 13
Problems in Existing System 13
Advantages Of Proposed System 16
Needs Of The System 17
Description Of System 19
Project Management 22
System Specification 27
Feasibility Study 32
Gantt Chart 34
3. System Analysis 38
Study of the current system 39
Use-Case Diagrams 40
Entity-Relationship Diagram 47
4. System Design 50
Activity Diagram 51
Class Diagram 56
Sequence Diagram 60
Component Diagram 63
Deployment Diagram 65
5. System Coding 68
List of Tables with Attributes and Constraints 68
Screen Layout 71
Source Code 88
6. System Testing 179
Testability 182
Testing Objectives 184
7. Future Enhancement 185
8. Conclusion 186
9. Bibliography 188
4
Introduction
The Project entitled "e-Shopping" is a web-based application
Software developed in ASP.NET using C# as front end on
Pentium machine. The main aim of "e- Shopping" is to improve
the services of Customers and vendors. It maintains the details of
customer payments, product receipts, addition of new customers,
products and also updating, deletion for the same. It also stores
the details of invoices generated by customer and payments
made by them with all Payments details like credit card. The
primary features of the project entitled "ONLINE SHOPPING" are
high accuracy, design flexibility and easy availability. And also it
uses database tables Representing entities and relationships
between entities.
The Shopping Cart program allows visitors to your on-line
shopping site to collect items in a virtual shopping cart. They may
view the contents of their shopping cart at any time and may add
or delete items at will. The program automatically calculates the
subtotal, sales tax, shipping charges, and grand total. When a
visitor decides to check-out, the order information including the
buyer's name, address and billing instruction is e-mailed to your
order department (or whomever you choose) and a receipt is sent
to the shopper.
5
Online shopping is the process of buying goods and services
from merchants who sell on the Internet. Since the emergence of
the World Wide Web, merchants have sought to sell their
products to people who surf the Internet. Shoppers can visit web
stores from the comfort of their homes and shop as they sit in
front of the computer. Consumers buy a variety of items from
online stores. In fact, people can purchase just about anything
from companies that provide their products online. Books,
clothing, household appliances, toys, hardware, software, and
health insurance are just some of the hundreds of products
consumers can buy from an online store.
6
PRELIMINARY
INVESTIGATION
7
Overview Of Online Shopping
8
e-Shopping
9
10
Existing System
11
customer can sit at home and browse in a fraction of
seconds.
Time Consuming
Needed an agent
12
Proposed System
13
ADVANTAGES OF PROPOSED SYSTEM
From any place user can get more information about various
categories of books.
14
NEEDS OF THE SYSTEM
15
Features of Proposed System
Modules
16
Description Of System
17
Detail view of Modules-
New user can register can register at this part of the project.
Here user means client who enters into the web site.
This part of the project for the previous clients of the site,
whose are already registered at here they can login and view the
related things to them selves and they can do shopping over here.
This is the display view of the products. Here user can view
and select the desired products. And these he can add to the cart.
5. Pay pricing
This is the payment part of the project user can pay their price to
products through credit cards, debit cards and etc…..
The mode of pay through online.
6. Acknowledgement
This is report generation module of the project. Here the user can
receive the acknowledge messages from the server system.
19
Project Management
20
tasks ( required to accomplish an activity) are identified
and scheduled.
21
SOFTWARE DEVELOPMENT
METHODOLOGY
22
In looking at this graphic, which was for major defence systems
developments, please note this presumes that the system
requirement have already been defined and scrubbed
exhaustively, which is probably the most important step towards
project success. Nevertheless, the graphic illustrates a few
critical principles of a good methodology:
23
The waterfall provides an orderly sequence of development steps
and helps ensure the adequacy of documentation and design
reviews to ensure the quality, reliability, and maintainability of the
developed software. While almost everyone these days
disparages the "waterfall methodology" as being needlessly slow
and cumbersome, it does illustrate a few sound principles of life
cycle development.
24
System Specification
Hardware Requirements:-
Pentium-IV(Processor).
1 GB Ram
Hard disk 1 GB
Internet Connection
Software Requirements: -
Web Technologies : ASP.NET 10
Language : C#
25
Front-End Used- ASP.NET:
26
A new data grid control supports sorting, data paging, and
everything you expect from a dataset control.
2. Event-driven programming :
27
Backend used:
28
29
FEASIBILITY STUDY
1)Economic Feasibility:
In economic feasibility, analysis of the cost of the system is
carried out. The system should be only developed if it is going
to give returned the current manual system user can get the
price only by purchasing the newspapers. In addition if he/she
30
wants to see archives of particular equity then he has to refer
to all the old newspapers. For research reports he has to buy
another magazine. So Instead of buying no of magazines user
has to just go online and with a single click he can get
whatever information he wants. So our project of online share
news passes the test of economic feasibility.
2) Technical Feasibility:
It is basically used to see existing computer, hardware and
software etc., weather it is sufficient or additional equipment’s
are required? Minimum System Requirement is such that it can
be affordable by of the user who is having computer. All the user
requires is compatible browser and.net framework installed so our
system is fully technical feasible.
3) Operational Feasibility:
Once the system is designed there must be trained and expert
operator. If there are not trained they should give training
according to the needs of the system. From the user’s
perspective our system fully operational feasible as it just
requires some knowledge of computer. Operators only need
add daily prices of various equities and there are enough
validations available so operator does not require any special
technical knowledge. So our system also passes the test of
operational feasibility.
31
Gantt Chart
32
As the project progresses, the charts is updated by
filling in the bars to length proportional to fraction of words
that has been accomplished on the task. This way, one
can get quick reading of projects progress by drawing
vertical lines through the chart by the current rates.
33
We plan our project according to Gantt Chart as
shown as follows:-
Grantt Chat
34
SYSTEM
ANALYSIS
35
Study of the current system:
Online shopping tries to enhance access to care and improve the
continuity and efficiency of services. Depending on the specific
setting and locale, case managers are responsible for a variety of
tasks, ranging from linking clients to services to actually providing
intensive shopping and delivery services themselves
.
Administrator is adding the delivery report to the database.
36
USE-CASE DIAGRAM
A use case diagram acts as a focus for the description of user requirements. It
describes the relationships between requirements, users, and the major
components. It does not describe the requirements in detail; these can be described
in separate diagrams or in documents that can be linked to each use case.
ELEMENT DESCRIPTION
37
(3)System Boundary A system boundary defines the scope of
what a system will be. A system cannot
have infinite functionality. So, it follows
that use cases also need to have
definitive limits defined. A system
boundary of a use case diagram defines
the limits of the system
sese
at the arrowhead end.
38
Login
39
Registration
40
Category
<<extend>>
Category Management
<<extend>>
Product Management
<<extend>>
Content Management
Customer
<<extend>> Admin
Order Management
<<extend>>
Customer Management
Purchase Module
41
Category Management
View Category
Add Category
42
Customer Man
Customer Management
List Customer
Update Customer
Delete Customer
Content Management
Customer Admin
43
ER Diagram
ER- DIAGRAM
ELEMENT DESCRIPTION
Relationships: Relationships
illustrate how two entities share
information in the database
structure.
44
Key attribute: A key attribute is
the unique, distinguishing
characteristic of the entity.
45
ER DIAGRAM
46
SYSTEM
DESIGN
47
ACTIVITY DIAGRAM
Initial activity
This show the starting point.
There can be only one initial
state .
48
Activity Description
Represent by
rectangle with rounded
edges.
Transition
Transition are used
mark with movement.
Transition are model using
arrow.
Decisions
49
ACTOR: CUSTOMER
USECASE: LOGIN
Click on LOG IN
button
If member
NO
Sign up for new
registration
Enter
username
Enter password
Password
validation
NO Please enter correct
password
YES
Click ok
50
ACTOR: CUSTOMER, SALES PERSON, WAREHOUSE EMPLOYEE
USECASE: REGISTER
Click on LOG IN
button
click on Sign
up link
Fill registration
form
Enter Verification
Code
Is Verification
Code Valid?
NO Reenter Verification
Code
YES
Submit Form
Is given Mail
ID correct?
NO
Please enter
correct mail Id
YES
Confirm
Registration
51
ACTOR: CUSTOMER
52
CLASS DIAGRAM
The purpose of class diagram is to identify and classify the
object that will make up the new system
1. Generalization/specialization hierarchy
2. Aggregation hierarchy
53
54
Sequence Diagram
ELEMENTS DESCRIPTION
Or
: Class name
55
(3)Messages
The sender sent the message to the
(a)Synchronous receiver and wait for the procedure
completion
56
Registration
57
Login
58
Product Order
59
COMPONENT DIAGRAM
ELEMENT DESCRIPTION
(1)
Component The objects interacting with each other
in the system. Depicted by a rectangle
with the name of the object in it,
preceded by a colon and underlined.
60
(2)
Class/Interface/ Similar to the notations used in class
Object and object diagrams
(3)
Relation/Association Similar to the relation/association used
in class diagrams. Gives relation
between two components
61
62
DEPLOYMENT DIAGRAM:
The basic deployment diagram element is the node. The
node represents the environment in which a component or a set
of components execute The different nodes in the deployment
diagram can be interconnected to represent interdependencies,
thus providing a deployment diagram that is easy to comprehend
and provides the complete deployment environment of a system.
ELEMENTS DESCRIPTION
63
Web Server
Data
Base
Server
64
SYSTEM
CODING
65
List Of Tables With Attribute And
Constraints:-
Login TABLE
Column name Data type size Allow nulls Constraints Remarks
Registration TABLE
Column name Data type size Allow nulls Constraints Remarks
66
PRODUCTS TABLE
Column name Data type size Allow null
Order_detail
67
Order_master
68
Screen Layout
Homepage
User Sign-in:
69
Authorized User Home page:
Registration Form
70
Admin Login
71
All Mobiles:
72
Product wise:
Accessories:
73
All Tv’s:
74
Product wise:
Accessories:
75
All mp3:
76
Product wise:
Accessories:
77
All Laptops:
78
Product wise:
Accessories:
79
All Tab’s:
80
Product wise:
All Camera’s:
81
Company wise distribution:
Product wise:
82
Accessories:
Order Summary:
83
Add to cart:
Transaction
1. Address
2.Type
84
Final page
Source Code
Main.master.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
public partial class Main : System.Web.UI.MasterPage
{
SqlDataAdapter da,da1;
DataSet ds,ds1;
string a, b, d, e;
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
if (Session["uname"] == null)
{
LinkButton1.Text = "Sign_in";
}
else
{
LinkButton1.Text = "Sign_out";
}
85
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
Response.Redirect("https://accounts.google.com/ServiceLogin?service=oz&continue=https://p
lus.google.com/up/?type%3Dst%26continue%3Dhttps://plus.google.com/%252BGoogleIndia?gpsrc%
253Dsrc%25253Asignup-header%25253Bactn%25253Asignup%2526hl%253Den-
GB%2523%252BGoogleIndia/posts&hl=en-GB");
}
86
protected void Menu7_MenuItemClick(object sender, MenuEventArgs e)
{
if (Menu7.SelectedValue.ToString().Equals("All Brands"))
{
Session["Catagories"]="Mobile";
Response.Redirect("mobile.aspx");
}
if (Menu7.SelectedValue.ToString().Equals("HTC"))
{
Session["Catagories"] = "Mobile";
Session["brand"] = "HTC";
Response.Redirect("mobile_one.aspx");
}
if (Menu7.SelectedValue.ToString().Equals("Sony"))
{
Session["Catagories"] = "Mobile";
Session["brand"] = "Sony";
Response.Redirect("mobile_one.aspx");
}
if (Menu7.SelectedValue.ToString().Equals("Samsung"))
{
Session["Catagories"] = "Mobile";
Session["brand"] = "Samsung";
Response.Redirect("mobile_one.aspx");
}
if (Menu7.SelectedValue.ToString().Equals("Nokia"))
{
Session["Catagories"] = "Mobile";
Session["brand"] = "Nokia";
Response.Redirect("mobile_one.aspx");
}
if (Menu7.SelectedValue.ToString().Equals("Blackberry"))
{
Session["Catagories"] = "Mobile";
Session["brand"] = "BlackBerry";
Response.Redirect("mobile_one.aspx");
}
if (Menu7.SelectedValue.ToString().Equals("Accessories"))
{
Session["Catagories"] = "mob_acc";
Response.Redirect("mobile_acc.aspx");
}
}
87
da1.Fill(ds1);
LinkButton1.Text = "Sign_in";
}
}
88
Session["Catagories"] = "Laptop";
Session["brand"] = "Acer";
Response.Redirect("laptop_one.aspx");
}
if (Menu4.SelectedValue.ToString().Equals("Dell"))
{
Session["Catagories"] = "Laptop";
Session["brand"] = "Dell";
Response.Redirect("laptop_one.aspx");
}
if (Menu4.SelectedValue.ToString().Equals("HP"))
{
Session["Catagories"] = "Laptop";
Session["brand"] = "HP";
Response.Redirect("laptop_one.aspx");
}
if (Menu4.SelectedValue.ToString().Equals("Lenovo"))
{
Session["Catagories"] = "Laptop";
Session["brand"] = "Lenovo";
Response.Redirect("laptop_one.aspx");
}
if (Menu4.SelectedValue.ToString().Equals("Sony"))
{
Session["Catagories"] = "Laptop";
Session["brand"] = "Sony";
Response.Redirect("laptop_one.aspx");
}
if (Menu4.SelectedValue.ToString().Equals("Accessories"))
{
Session["Catagories"] = "laptop_acc";
Response.Redirect("laptop_acc.aspx");
}
89
Session["brand"] = "HCL";
Response.Redirect("tab_one.aspx");
}
if (Menu5.SelectedValue.ToString().Equals("Karbonn"))
{
Session["Catagories"] = "tab";
Session["brand"] = "Karbonn";
Response.Redirect("tab_one.aspx");
}
if (Menu5.SelectedValue.ToString().Equals("Milagrow"))
{
Session["Catagories"] = "tab";
Session["brand"] = "Milagrow";
Response.Redirect("tab_one.aspx");
}
}
90
Session["Catagories"] = "Tv";
Session["brand"] = "Videocon";
Response.Redirect("tv_one.aspx");
}
if (Menu2.SelectedValue.ToString().Equals("Accessories"))
{
Session["Catagories"] = "Tv_acc";
Response.Redirect("tv_acc.aspx");
}
}
91
AdminMaster.master.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Shopee.com
{
public partial class Main_AdminMaster : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Redirect("https://accounts.google.com/ServiceLogin?service=oz&continue=https://p
lus.google.com/up/?type%3Dst%26continue%3Dhttps://plus.google.com/%252BGoogleIndia?gpsrc%
253Dsrc%25253Asignup-header%25253Bactn%25253Asignup%2526hl%253Den-
GB%2523%252BGoogleIndia/posts&hl=en-GB");
}
}
}
92
DailyDeals.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
public partial class WebForm3 : System.Web.UI.Page
{
SqlDataAdapter da, da1;
DataSet ds, ds1;
string a, b;
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
}
}
}
}
Admin-mobile-acc.aspx.cs
using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
namespace Shopee.com
{
public partial class WebForm9 : System.Web.UI.Page
93
{
string s1;
Boolean flag;
string filenameLoc;
string filenameLoc1, a, b, filenameLoc2, filenameLoc3;
SqlConnection con;
SqlDataAdapter da,da1,da2;
DataSet ds,ds1,ds2;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
if (IsPostBack == false)
{
combofill();
}
}
public void combofill()
{
string s2;
s2 = "Select pid from product";
da2 = new SqlDataAdapter(s2, con);
ds2 = new DataSet();
da2.Fill(ds2);
for (int i = 0; i < ds2.Tables[0].Rows.Count; i++)
{
DropDownList1.Items.Add(ds2.Tables[0].Rows[i].ItemArray[0].ToString());
}
}
public void photo()
{
if (Fileupload1.HasFile == true)
{
filenameLoc = Server.MapPath("~/Images/product/") + Fileupload1.FileName;
filenameLoc1 = ("~/Images/product/" + Fileupload1.FileName);
Session["Pick"] = filenameLoc1;
Fileupload1.SaveAs(filenameLoc);
Image1.ImageUrl = filenameLoc1;
}
}
public void photo1()
{
if (FileUpload2.HasFile == true)
{
filenameLoc2 = Server.MapPath("~/Images/product/") +
FileUpload2.FileName;
filenameLoc3 = ("~/Images/product/" + FileUpload2.FileName);
Session["Pick1"] = filenameLoc3;
FileUpload2.SaveAs(filenameLoc2);
Image2.ImageUrl = filenameLoc3;
94
}
}
da.Fill(ds);
combofill();
}
else
{
95
da1.Fill(ds1);
combofill();
}
//}
flag = true ;
Session["Flag"] = flag;
}
}
96
Login.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
if (aa == "user")
{
Session["uname"] = TextBox3.Text;
a = "select case when count(oid)=0 then 'o1' else 'o'
+cast(max(cast(substring(oid,2,len(oid)) as int))+1 as varchar) end from Order_Master";
da = new SqlDataAdapter(a, con);
97
ds = new DataSet();
da.Fill(ds);
d = ds.Tables[0].Rows[0].ItemArray[0].ToString();
Session["order_id"] = d;
Response.Redirect("DailyDeals.aspx");
}
else
{
Response.Redirect("admin-mobile-acc.aspx");
}
}
else
{
Label2.Text = "Please enter correct username and password ";
Registration.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
98
}
Mobile.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
if (IsPostBack == false)
{
a = "select pname,price,Image from product where cat ='" +
Session["Catagories"] + "'";
da = new SqlDataAdapter(a, con);
ds = new DataSet();
da.Fill(ds);
Label2.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
Session["Name"] = Label2.Text;
99
ImageButton13.ImageUrl = ds.Tables[0].Rows[0].ItemArray[2].ToString();
Label3.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();
Label4.Text = ds.Tables[0].Rows[1].ItemArray[0].ToString();
Session["Name1"] = Label4.Text;
ImageButton14.ImageUrl = ds.Tables[0].Rows[1].ItemArray[2].ToString();
Label5.Text = ds.Tables[0].Rows[1].ItemArray[1].ToString();
Label6.Text = ds.Tables[0].Rows[2].ItemArray[0].ToString();
Session["Name2"] = Label6.Text;
ImageButton15.ImageUrl = ds.Tables[0].Rows[2].ItemArray[2].ToString();
Label7.Text = ds.Tables[0].Rows[2].ItemArray[1].ToString();
Label8.Text = ds.Tables[0].Rows[3].ItemArray[0].ToString();
Session["Name3"] = Label8.Text;
ImageButton16.ImageUrl = ds.Tables[0].Rows[3].ItemArray[2].ToString();
Label9.Text = ds.Tables[0].Rows[3].ItemArray[1].ToString();
Label10.Text = ds.Tables[0].Rows[4].ItemArray[0].ToString();
Session["Name4"] = Label10.Text;
ImageButton17.ImageUrl = ds.Tables[0].Rows[4].ItemArray[2].ToString();
Label11.Text = ds.Tables[0].Rows[4].ItemArray[1].ToString();
Label12.Text = ds.Tables[0].Rows[5].ItemArray[0].ToString();
Session["Name5"] = Label12.Text;
ImageButton18.ImageUrl = ds.Tables[0].Rows[5].ItemArray[2].ToString();
Label13.Text = ds.Tables[0].Rows[5].ItemArray[1].ToString();
Label14.Text = ds.Tables[0].Rows[6].ItemArray[0].ToString();
Session["Name6"] = Label14.Text;
ImageButton19.ImageUrl = ds.Tables[0].Rows[6].ItemArray[2].ToString();
Label15.Text = ds.Tables[0].Rows[6].ItemArray[1].ToString();
Label16.Text = ds.Tables[0].Rows[7].ItemArray[0].ToString();
Session["Name7"] = Label16.Text;
ImageButton20.ImageUrl = ds.Tables[0].Rows[7].ItemArray[2].ToString();
Label17.Text = ds.Tables[0].Rows[7].ItemArray[1].ToString();
Label18.Text = ds.Tables[0].Rows[8].ItemArray[0].ToString();
Session["Name8"] = Label18.Text;
ImageButton21.ImageUrl = ds.Tables[0].Rows[8].ItemArray[2].ToString();
Label19.Text = ds.Tables[0].Rows[8].ItemArray[1].ToString();
Label20.Text = ds.Tables[0].Rows[9].ItemArray[0].ToString();
Session["Name9"] = Label20.Text;
ImageButton22.ImageUrl = ds.Tables[0].Rows[9].ItemArray[2].ToString();
Label21.Text = ds.Tables[0].Rows[9].ItemArray[1].ToString();
Label22.Text = ds.Tables[0].Rows[10].ItemArray[0].ToString();
Session["Name10"] = Label22.Text;
ImageButton23.ImageUrl = ds.Tables[0].Rows[10].ItemArray[2].ToString();
Label23.Text = ds.Tables[0].Rows[10].ItemArray[1].ToString();
Label24.Text = ds.Tables[0].Rows[11].ItemArray[0].ToString();
Session["Name11"] = Label24.Text;
ImageButton24.ImageUrl = ds.Tables[0].Rows[11].ItemArray[2].ToString();
Label25.Text = ds.Tables[0].Rows[11].ItemArray[1].ToString();
100
Label26.Text = ds.Tables[0].Rows[12].ItemArray[0].ToString();
Session["Name12"] = Label26.Text;
ImageButton25.ImageUrl = ds.Tables[0].Rows[12].ItemArray[2].ToString();
Label27.Text = ds.Tables[0].Rows[12].ItemArray[1].ToString();
Label28.Text = ds.Tables[0].Rows[13].ItemArray[0].ToString();
Session["Name13"] = Label28.Text;
ImageButton26.ImageUrl = ds.Tables[0].Rows[13].ItemArray[2].ToString();
Label29.Text = ds.Tables[0].Rows[13].ItemArray[1].ToString();
Label30.Text = ds.Tables[0].Rows[14].ItemArray[0].ToString();
Session["Name14"] = Label30.Text;
ImageButton27.ImageUrl = ds.Tables[0].Rows[14].ItemArray[2].ToString();
Label31.Text = ds.Tables[0].Rows[14].ItemArray[1].ToString();
Label32.Text = ds.Tables[0].Rows[15].ItemArray[0].ToString();
Session["Name15"] = Label32.Text;
ImageButton28.ImageUrl = ds.Tables[0].Rows[15].ItemArray[2].ToString();
Label33.Text = ds.Tables[0].Rows[15].ItemArray[1].ToString();
Label34.Text = ds.Tables[0].Rows[16].ItemArray[0].ToString();
Session["Name16"] = Label34.Text;
ImageButton29.ImageUrl = ds.Tables[0].Rows[16].ItemArray[2].ToString();
Label35.Text = ds.Tables[0].Rows[16].ItemArray[1].ToString();
Label37.Text = ds.Tables[0].Rows[17].ItemArray[0].ToString();
Session["Name17"] = Label37.Text;
ImageButton30.ImageUrl = ds.Tables[0].Rows[17].ItemArray[2].ToString();
Label36.Text = ds.Tables[0].Rows[17].ItemArray[1].ToString();
Label38.Text = ds.Tables[0].Rows[18].ItemArray[0].ToString();
Session["Name18"] = Label38.Text;
ImageButton31.ImageUrl = ds.Tables[0].Rows[18].ItemArray[2].ToString();
Label39.Text = ds.Tables[0].Rows[18].ItemArray[1].ToString();
Label40.Text = ds.Tables[0].Rows[19].ItemArray[0].ToString();
Session["Name19"] = Label40.Text;
ImageButton32.ImageUrl = ds.Tables[0].Rows[19].ItemArray[2].ToString();
Label41.Text = ds.Tables[0].Rows[19].ItemArray[1].ToString();
Label42.Text = ds.Tables[0].Rows[20].ItemArray[0].ToString();
Session["Name20"] = Label42.Text;
ImageButton33.ImageUrl = ds.Tables[0].Rows[20].ItemArray[2].ToString();
Label43.Text = ds.Tables[0].Rows[20].ItemArray[1].ToString();
Label44.Text = ds.Tables[0].Rows[21].ItemArray[0].ToString();
Session["Name21"] = Label44.Text;
ImageButton34.ImageUrl = ds.Tables[0].Rows[21].ItemArray[2].ToString();
Label45.Text = ds.Tables[0].Rows[21].ItemArray[1].ToString();
Label46.Text = ds.Tables[0].Rows[22].ItemArray[0].ToString();
Session["Name22"] = Label46.Text;
ImageButton35.ImageUrl = ds.Tables[0].Rows[22].ItemArray[2].ToString();
Label47.Text = ds.Tables[0].Rows[22].ItemArray[1].ToString();
Label48.Text = ds.Tables[0].Rows[23].ItemArray[0].ToString();
Session["Name23"] = Label48.Text;
ImageButton36.ImageUrl = ds.Tables[0].Rows[23].ItemArray[2].ToString();
101
Label49.Text = ds.Tables[0].Rows[23].ItemArray[1].ToString();
Label50.Text = ds.Tables[0].Rows[24].ItemArray[0].ToString();
Session["Name24"] = Label50.Text;
ImageButton37.ImageUrl = ds.Tables[0].Rows[23].ItemArray[2].ToString();
Label51.Text = ds.Tables[0].Rows[24].ItemArray[1].ToString();
}
}
102
Response.Redirect("detail.aspx");
}
103
aa1 = Session["Name8"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
104
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
105
string aa1;
aa1 = Session["Name17"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
106
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
107
Mobile_acc.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
if (IsPostBack == false)
{
a = "select pname,price,Image from product where cat ='" +
Session["Catagories"] + "'";
da = new SqlDataAdapter(a, con);
ds = new DataSet();
da.Fill(ds);
Label2.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
Session["Name"] = Label2.Text;
ImageButton13.ImageUrl = ds.Tables[0].Rows[0].ItemArray[2].ToString();
Label4.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();
Label5.Text = ds.Tables[0].Rows[1].ItemArray[0].ToString();
Session["Name1"] = Label5.Text;
ImageButton14.ImageUrl = ds.Tables[0].Rows[1].ItemArray[2].ToString();
Label7.Text = ds.Tables[0].Rows[1].ItemArray[1].ToString();
Label8.Text = ds.Tables[0].Rows[2].ItemArray[0].ToString();
Session["Name2"] = Label8.Text;
ImageButton15.ImageUrl = ds.Tables[0].Rows[2].ItemArray[2].ToString();
Label10.Text = ds.Tables[0].Rows[2].ItemArray[1].ToString();
Label11.Text = ds.Tables[0].Rows[3].ItemArray[0].ToString();
Session["Name3"] = Label11.Text;
ImageButton16.ImageUrl = ds.Tables[0].Rows[3].ItemArray[2].ToString();
Label13.Text = ds.Tables[0].Rows[3].ItemArray[1].ToString();
Label14.Text = ds.Tables[0].Rows[4].ItemArray[0].ToString();
Session["Name4"] = Label14.Text;
108
ImageButton17.ImageUrl = ds.Tables[0].Rows[4].ItemArray[2].ToString();
Label16.Text = ds.Tables[0].Rows[4].ItemArray[1].ToString();
Label17.Text = ds.Tables[0].Rows[5].ItemArray[0].ToString();
Session["Name5"] = Label17.Text;
ImageButton18.ImageUrl = ds.Tables[0].Rows[5].ItemArray[2].ToString();
Label19.Text = ds.Tables[0].Rows[5].ItemArray[1].ToString();
Label20.Text = ds.Tables[0].Rows[6].ItemArray[0].ToString();
Session["Name6"] = Label20.Text;
ImageButton19.ImageUrl = ds.Tables[0].Rows[6].ItemArray[2].ToString();
Label22.Text = ds.Tables[0].Rows[6].ItemArray[1].ToString();
Label23.Text = ds.Tables[0].Rows[7].ItemArray[0].ToString();
Session["Name7"] = Label23.Text;
ImageButton20.ImageUrl = ds.Tables[0].Rows[7].ItemArray[2].ToString();
Label25.Text = ds.Tables[0].Rows[7].ItemArray[1].ToString();
Label26.Text = ds.Tables[0].Rows[8].ItemArray[0].ToString();
Session["Name8"] = Label26.Text;
ImageButton21.ImageUrl = ds.Tables[0].Rows[8].ItemArray[2].ToString();
Label28.Text = ds.Tables[0].Rows[8].ItemArray[1].ToString();
Label29.Text = ds.Tables[0].Rows[9].ItemArray[0].ToString();
Session["Name9"] = Label29.Text;
ImageButton22.ImageUrl = ds.Tables[0].Rows[9].ItemArray[2].ToString();
Label31.Text = ds.Tables[0].Rows[9].ItemArray[1].ToString();
Label32.Text = ds.Tables[0].Rows[10].ItemArray[0].ToString();
Session["Name10"] = Label32.Text;
ImageButton23.ImageUrl = ds.Tables[0].Rows[10].ItemArray[2].ToString();
Label34.Text = ds.Tables[0].Rows[10].ItemArray[1].ToString();
Label35.Text = ds.Tables[0].Rows[11].ItemArray[0].ToString();
Session["Name11"] = Label35.Text;
ImageButton24.ImageUrl = ds.Tables[0].Rows[11].ItemArray[2].ToString();
Label37.Text = ds.Tables[0].Rows[11].ItemArray[1].ToString();
Label38.Text = ds.Tables[0].Rows[12].ItemArray[0].ToString();
Session["Name12"] = Label38.Text;
ImageButton25.ImageUrl = ds.Tables[0].Rows[12].ItemArray[2].ToString();
Label40.Text = ds.Tables[0].Rows[12].ItemArray[1].ToString();
Label41.Text = ds.Tables[0].Rows[13].ItemArray[0].ToString();
Session["Name13"] = Label41.Text;
ImageButton26.ImageUrl = ds.Tables[0].Rows[13].ItemArray[2].ToString();
Label43.Text = ds.Tables[0].Rows[13].ItemArray[1].ToString();
Label44.Text = ds.Tables[0].Rows[14].ItemArray[0].ToString();
Session["Name14"] = Label44.Text;
ImageButton27.ImageUrl = ds.Tables[0].Rows[14].ItemArray[2].ToString();
Label46.Text = ds.Tables[0].Rows[14].ItemArray[1].ToString();
Label47.Text = ds.Tables[0].Rows[15].ItemArray[0].ToString();
Session["Name15"] = Label47.Text;
ImageButton28.ImageUrl = ds.Tables[0].Rows[15].ItemArray[2].ToString();
Label49.Text = ds.Tables[0].Rows[15].ItemArray[1].ToString();
109
Label50.Text = ds.Tables[0].Rows[16].ItemArray[0].ToString();
Session["Name16"] = Label50.Text;
ImageButton29.ImageUrl = ds.Tables[0].Rows[16].ItemArray[2].ToString();
Label52.Text = ds.Tables[0].Rows[16].ItemArray[1].ToString();
Label53.Text = ds.Tables[0].Rows[17].ItemArray[0].ToString();
Session["Name17"] = Label53.Text;
ImageButton30.ImageUrl = ds.Tables[0].Rows[17].ItemArray[2].ToString();
Label55.Text = ds.Tables[0].Rows[17].ItemArray[1].ToString();
Label56.Text = ds.Tables[0].Rows[18].ItemArray[0].ToString();
Session["Name18"] = Label56.Text;
ImageButton31.ImageUrl = ds.Tables[0].Rows[18].ItemArray[2].ToString();
Label58.Text = ds.Tables[0].Rows[18].ItemArray[1].ToString();
Label59.Text = ds.Tables[0].Rows[19].ItemArray[0].ToString();
Session["Name19"] = Label59.Text;
ImageButton32.ImageUrl = ds.Tables[0].Rows[19].ItemArray[2].ToString();
Label61.Text = ds.Tables[0].Rows[19].ItemArray[1].ToString();
Label62.Text = ds.Tables[0].Rows[20].ItemArray[0].ToString();
Session["Name20"] = Label62.Text;
ImageButton33.ImageUrl = ds.Tables[0].Rows[20].ItemArray[2].ToString();
Label64.Text = ds.Tables[0].Rows[20].ItemArray[1].ToString();
Label65.Text = ds.Tables[0].Rows[21].ItemArray[0].ToString();
Session["Name21"] = Label65.Text;
ImageButton34.ImageUrl = ds.Tables[0].Rows[21].ItemArray[2].ToString();
Label67.Text = ds.Tables[0].Rows[21].ItemArray[1].ToString();
110
}
111
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail_acc.aspx");
}
112
Response.Redirect("detail_acc.aspx");
}
113
aa1 = Session["Name15"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail_acc.aspx");
}
114
Session["pid"] = c;
Response.Redirect("detail_acc.aspx");
}
Mobile_one.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
115
public partial class WebForm12 : System.Web.UI.Page
{
SqlDataAdapter da, da1;
DataSet ds, ds1;
string a, b;
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
Label12.Text = Session["brand"].ToString();
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
if (IsPostBack == false)
{
a = "select pname,price,Image from product where cat ='" +
Session["Catagories"] + "' and company='" + Session["brand"] + " '";
da = new SqlDataAdapter(a, con);
ds = new DataSet();
da.Fill(ds);
Label2.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
Session["Name"] = Label2.Text;
ImageButton13.ImageUrl = ds.Tables[0].Rows[0].ItemArray[2].ToString();
Label3.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();
Label4.Text = ds.Tables[0].Rows[1].ItemArray[0].ToString();
Session["Name1"] = Label4.Text;
ImageButton14.ImageUrl = ds.Tables[0].Rows[1].ItemArray[2].ToString();
Label5.Text = ds.Tables[0].Rows[1].ItemArray[1].ToString();
Label6.Text = ds.Tables[0].Rows[2].ItemArray[0].ToString();
Session["Name2"] = Label6.Text;
ImageButton15.ImageUrl = ds.Tables[0].Rows[2].ItemArray[2].ToString();
Label7.Text = ds.Tables[0].Rows[2].ItemArray[1].ToString();
Label8.Text = ds.Tables[0].Rows[3].ItemArray[0].ToString();
Session["Name3"] = Label8.Text;
ImageButton16.ImageUrl = ds.Tables[0].Rows[3].ItemArray[2].ToString();
Label9.Text = ds.Tables[0].Rows[3].ItemArray[1].ToString();
Label10.Text = ds.Tables[0].Rows[4].ItemArray[0].ToString();
Session["Name4"] = Label10.Text;
ImageButton17.ImageUrl = ds.Tables[0].Rows[4].ItemArray[2].ToString();
Label11.Text = ds.Tables[0].Rows[4].ItemArray[1].ToString();
}
}
116
Response.Redirect("detail.aspx");
}
117
Tv.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
public partial class Tv : System.Web.UI.Page
{
SqlDataAdapter da, da1;
DataSet ds, ds1;
string a, b;
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
if (IsPostBack == false)
{
a = "select pname,price,Image from product where cat ='" +
Session["Catagories"] + "'";
da = new SqlDataAdapter(a, con);
ds = new DataSet();
da.Fill(ds);
Label2.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
Session["Name"] = Label2.Text;
ImageButton13.ImageUrl = ds.Tables[0].Rows[0].ItemArray[2].ToString();
Label4.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();
Label5.Text = ds.Tables[0].Rows[1].ItemArray[0].ToString();
Session["Name1"] = Label4.Text;
ImageButton14.ImageUrl = ds.Tables[0].Rows[1].ItemArray[2].ToString();
Label7.Text = ds.Tables[0].Rows[1].ItemArray[1].ToString();
Label8.Text = ds.Tables[0].Rows[2].ItemArray[0].ToString();
Session["Name2"] = Label6.Text;
ImageButton15.ImageUrl = ds.Tables[0].Rows[2].ItemArray[2].ToString();
Label10.Text = ds.Tables[0].Rows[2].ItemArray[1].ToString();
Label11.Text = ds.Tables[0].Rows[3].ItemArray[0].ToString();
Session["Name3"] = Label8.Text;
ImageButton16.ImageUrl = ds.Tables[0].Rows[3].ItemArray[2].ToString();
Label13.Text = ds.Tables[0].Rows[3].ItemArray[1].ToString();
Label65.Text = ds.Tables[0].Rows[4].ItemArray[0].ToString();
Session["Name4"] = Label65.Text;
ImageButton17.ImageUrl = ds.Tables[0].Rows[4].ItemArray[2].ToString();
118
Label67.Text = ds.Tables[0].Rows[4].ItemArray[1].ToString();
Label14.Text = ds.Tables[0].Rows[5].ItemArray[0].ToString();
Session["Name5"] = Label14.Text;
ImageButton18.ImageUrl = ds.Tables[0].Rows[5].ItemArray[2].ToString();
Label16.Text = ds.Tables[0].Rows[5].ItemArray[1].ToString();
Label17.Text = ds.Tables[0].Rows[6].ItemArray[0].ToString();
Session["Name6"] = Label17.Text;
ImageButton19.ImageUrl = ds.Tables[0].Rows[6].ItemArray[2].ToString();
Label19.Text = ds.Tables[0].Rows[6].ItemArray[1].ToString();
Label20.Text = ds.Tables[0].Rows[7].ItemArray[0].ToString();
Session["Name7"] = Label20.Text;
ImageButton20.ImageUrl = ds.Tables[0].Rows[7].ItemArray[2].ToString();
Label22.Text = ds.Tables[0].Rows[7].ItemArray[1].ToString();
Label23.Text = ds.Tables[0].Rows[8].ItemArray[0].ToString();
Session["Name8"] = Label23.Text;
ImageButton21.ImageUrl = ds.Tables[0].Rows[8].ItemArray[2].ToString();
Label25.Text = ds.Tables[0].Rows[8].ItemArray[1].ToString();
Label68.Text = ds.Tables[0].Rows[9].ItemArray[0].ToString();
Session["Name9"] = Label68.Text;
ImageButton22.ImageUrl = ds.Tables[0].Rows[9].ItemArray[2].ToString();
Label70.Text = ds.Tables[0].Rows[9].ItemArray[1].ToString();
Label26.Text = ds.Tables[0].Rows[10].ItemArray[0].ToString();
Session["Name10"] = Label26.Text;
ImageButton23.ImageUrl = ds.Tables[0].Rows[10].ItemArray[2].ToString();
Label28.Text = ds.Tables[0].Rows[10].ItemArray[1].ToString();
Label29.Text = ds.Tables[0].Rows[11].ItemArray[0].ToString();
Session["Name11"] = Label29.Text;
ImageButton24.ImageUrl = ds.Tables[0].Rows[11].ItemArray[2].ToString();
Label31.Text = ds.Tables[0].Rows[11].ItemArray[1].ToString();
Label32.Text = ds.Tables[0].Rows[12].ItemArray[0].ToString();
Session["Name12"] = Label32.Text;
ImageButton25.ImageUrl = ds.Tables[0].Rows[12].ItemArray[2].ToString();
Label34.Text = ds.Tables[0].Rows[12].ItemArray[1].ToString();
Label35.Text = ds.Tables[0].Rows[13].ItemArray[0].ToString();
Session["Name13"] = Label35.Text;
ImageButton26.ImageUrl = ds.Tables[0].Rows[13].ItemArray[2].ToString();
Label37.Text = ds.Tables[0].Rows[13].ItemArray[1].ToString();
Label71.Text = ds.Tables[0].Rows[14].ItemArray[0].ToString();
Session["Name14"] = Label71.Text;
ImageButton27.ImageUrl = ds.Tables[0].Rows[14].ItemArray[2].ToString();
Label73.Text = ds.Tables[0].Rows[14].ItemArray[1].ToString();
Label38.Text = ds.Tables[0].Rows[15].ItemArray[0].ToString();
Session["Name15"] = Label38.Text;
ImageButton28.ImageUrl = ds.Tables[0].Rows[15].ItemArray[2].ToString();
Label40.Text = ds.Tables[0].Rows[15].ItemArray[1].ToString();
Label41.Text = ds.Tables[0].Rows[16].ItemArray[0].ToString();
119
Session["Name16"] = Label41.Text;
ImageButton29.ImageUrl = ds.Tables[0].Rows[16].ItemArray[2].ToString();
Label43.Text = ds.Tables[0].Rows[16].ItemArray[1].ToString();
Label44.Text = ds.Tables[0].Rows[17].ItemArray[0].ToString();
Session["Name17"] = Label44.Text;
ImageButton30.ImageUrl = ds.Tables[0].Rows[17].ItemArray[2].ToString();
Label46.Text = ds.Tables[0].Rows[17].ItemArray[1].ToString();
Label47.Text = ds.Tables[0].Rows[18].ItemArray[0].ToString();
Session["Name18"] = Label47.Text;
ImageButton31.ImageUrl = ds.Tables[0].Rows[18].ItemArray[2].ToString();
Label49.Text = ds.Tables[0].Rows[18].ItemArray[1].ToString();
Label74.Text = ds.Tables[0].Rows[19].ItemArray[0].ToString();
Session["Name19"] = Label74.Text;
ImageButton32.ImageUrl = ds.Tables[0].Rows[19].ItemArray[2].ToString();
Label76.Text = ds.Tables[0].Rows[19].ItemArray[1].ToString();
}
}
120
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
121
string aa1;
aa1 = Session["Name7"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
122
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
123
{
string aa1;
aa1 = Session["Name16"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
}
}
124
Tv_acc.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
public partial class tv_acc : System.Web.UI.Page
{
SqlDataAdapter da, da1;
DataSet ds, ds1;
string a, b;
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
if (IsPostBack == false)
{
a = "select pname,price,Image from product where cat ='" +
Session["Catagories"] + "'";
da = new SqlDataAdapter(a, con);
ds = new DataSet();
da.Fill(ds);
Label2.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
Session["Name"] = Label2.Text;
ImageButton13.ImageUrl = ds.Tables[0].Rows[0].ItemArray[2].ToString();
Label4.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();
Label5.Text = ds.Tables[0].Rows[1].ItemArray[0].ToString();
Session["Name1"] = Label5.Text;
ImageButton14.ImageUrl = ds.Tables[0].Rows[1].ItemArray[2].ToString();
Label7.Text = ds.Tables[0].Rows[1].ItemArray[1].ToString();
Label8.Text = ds.Tables[0].Rows[2].ItemArray[0].ToString();
Session["Name2"] = Label8.Text;
ImageButton15.ImageUrl = ds.Tables[0].Rows[2].ItemArray[2].ToString();
Label10.Text = ds.Tables[0].Rows[2].ItemArray[1].ToString();
Label11.Text = ds.Tables[0].Rows[3].ItemArray[0].ToString();
Session["Name3"] = Label11.Text;
ImageButton16.ImageUrl = ds.Tables[0].Rows[3].ItemArray[2].ToString();
Label13.Text = ds.Tables[0].Rows[3].ItemArray[1].ToString();
125
Label14.Text = ds.Tables[0].Rows[4].ItemArray[0].ToString();
Session["Name4"] = Label14.Text;
ImageButton17.ImageUrl = ds.Tables[0].Rows[4].ItemArray[2].ToString();
Label16.Text = ds.Tables[0].Rows[4].ItemArray[1].ToString();
Label17.Text = ds.Tables[0].Rows[5].ItemArray[0].ToString();
Session["Name5"] = Label17.Text;
ImageButton18.ImageUrl = ds.Tables[0].Rows[5].ItemArray[2].ToString();
Label19.Text = ds.Tables[0].Rows[5].ItemArray[1].ToString();
Label20.Text = ds.Tables[0].Rows[6].ItemArray[0].ToString();
Session["Name6"] = Label20.Text;
ImageButton19.ImageUrl = ds.Tables[0].Rows[6].ItemArray[2].ToString();
Label22.Text = ds.Tables[0].Rows[6].ItemArray[1].ToString();
Label23.Text = ds.Tables[0].Rows[7].ItemArray[0].ToString();
Session["Name7"] = Label23.Text;
ImageButton20.ImageUrl = ds.Tables[0].Rows[7].ItemArray[2].ToString();
Label25.Text = ds.Tables[0].Rows[7].ItemArray[1].ToString();
Label26.Text = ds.Tables[0].Rows[8].ItemArray[0].ToString();
Session["Name8"] = Label26.Text;
ImageButton21.ImageUrl = ds.Tables[0].Rows[8].ItemArray[2].ToString();
Label28.Text = ds.Tables[0].Rows[8].ItemArray[1].ToString();
Label29.Text = ds.Tables[0].Rows[9].ItemArray[0].ToString();
Session["Name9"] = Label29.Text;
ImageButton22.ImageUrl = ds.Tables[0].Rows[9].ItemArray[2].ToString();
Label31.Text = ds.Tables[0].Rows[9].ItemArray[1].ToString();
Label32.Text = ds.Tables[0].Rows[10].ItemArray[0].ToString();
Session["Name10"] = Label32.Text;
ImageButton23.ImageUrl = ds.Tables[0].Rows[10].ItemArray[2].ToString();
Label34.Text = ds.Tables[0].Rows[10].ItemArray[1].ToString();
Label35.Text = ds.Tables[0].Rows[11].ItemArray[0].ToString();
Session["Name11"] = Label35.Text;
ImageButton24.ImageUrl = ds.Tables[0].Rows[11].ItemArray[2].ToString();
Label37.Text = ds.Tables[0].Rows[11].ItemArray[1].ToString();
Label38.Text = ds.Tables[0].Rows[12].ItemArray[0].ToString();
Session["Name12"] = Label38.Text;
ImageButton25.ImageUrl = ds.Tables[0].Rows[12].ItemArray[2].ToString();
Label40.Text = ds.Tables[0].Rows[12].ItemArray[1].ToString();
Label41.Text = ds.Tables[0].Rows[13].ItemArray[0].ToString();
Session["Name13"] = Label41.Text;
ImageButton26.ImageUrl = ds.Tables[0].Rows[13].ItemArray[2].ToString();
Label43.Text = ds.Tables[0].Rows[13].ItemArray[1].ToString();
Label44.Text = ds.Tables[0].Rows[14].ItemArray[0].ToString();
Session["Name14"] = Label44.Text;
ImageButton27.ImageUrl = ds.Tables[0].Rows[14].ItemArray[2].ToString();
Label46.Text = ds.Tables[0].Rows[14].ItemArray[1].ToString();
}
}
126
protected void ImageButton13_Click(object sender, ImageClickEventArgs e)
{
string aa1;
aa1 = Session["Name"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail_acc.aspx");
}
127
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail_acc.aspx");
}
128
protected void ImageButton22_Click(object sender, ImageClickEventArgs e)
{
string aa1;
aa1 = Session["Name9"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail_acc.aspx");
}
129
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail_acc.aspx");
}
}
}
Tv_one.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
public partial class tv_one : System.Web.UI.Page
{
SqlDataAdapter da, da1;
DataSet ds, ds1;
string a, b;
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
if (IsPostBack == false)
{
a = "select pname,price,Image from product where cat='" +
Session["Catagories"] + "' AND company='" + Session["brand"] + "'";
da = new SqlDataAdapter(a, con);
130
ds = new DataSet();
da.Fill(ds);
Label2.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
Session["Name"] = Label2.Text;
ImageButton13.ImageUrl = ds.Tables[0].Rows[0].ItemArray[2].ToString();
Label4.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();
Label5.Text = ds.Tables[0].Rows[1].ItemArray[0].ToString();
Session["Name1"] = Label5.Text;
ImageButton14.ImageUrl = ds.Tables[0].Rows[1].ItemArray[2].ToString();
Label7.Text = ds.Tables[0].Rows[1].ItemArray[1].ToString();
Label8.Text = ds.Tables[0].Rows[2].ItemArray[0].ToString();
Session["Name2"] = Label8.Text;
ImageButton15.ImageUrl = ds.Tables[0].Rows[2].ItemArray[2].ToString();
Label10.Text = ds.Tables[0].Rows[2].ItemArray[1].ToString();
Label11.Text = ds.Tables[0].Rows[3].ItemArray[0].ToString();
Session["Name3"] = Label11.Text;
ImageButton16.ImageUrl = ds.Tables[0].Rows[3].ItemArray[2].ToString();
Label13.Text = ds.Tables[0].Rows[3].ItemArray[1].ToString();
}
}
131
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
}
}
Camera.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
public partial class camera : System.Web.UI.Page
{
SqlDataAdapter da, da1;
DataSet ds, ds1;
string a, b;
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
if (IsPostBack == false)
{
a = "select pname,price,Image from product where cat ='" +
Session["Catagories"] + "'";
132
da = new SqlDataAdapter(a, con);
ds = new DataSet();
da.Fill(ds);
Label2.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
Session["Name"] = Label2.Text;
ImageButton13.ImageUrl = ds.Tables[0].Rows[0].ItemArray[2].ToString();
Label4.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();
Label5.Text = ds.Tables[0].Rows[1].ItemArray[0].ToString();
Session["Name1"] = Label5.Text;
ImageButton14.ImageUrl = ds.Tables[0].Rows[1].ItemArray[2].ToString();
Label7.Text = ds.Tables[0].Rows[1].ItemArray[1].ToString();
Label8.Text = ds.Tables[0].Rows[2].ItemArray[0].ToString();
Session["Name2"] = Label8.Text;
ImageButton15.ImageUrl = ds.Tables[0].Rows[2].ItemArray[2].ToString();
Label10.Text = ds.Tables[0].Rows[2].ItemArray[1].ToString();
Label11.Text = ds.Tables[0].Rows[3].ItemArray[0].ToString();
Session["Name3"] = Label11.Text;
ImageButton16.ImageUrl = ds.Tables[0].Rows[3].ItemArray[2].ToString();
Label13.Text = ds.Tables[0].Rows[3].ItemArray[1].ToString();
Label14.Text = ds.Tables[0].Rows[4].ItemArray[0].ToString();
Session["Name4"] = Label14.Text;
ImageButton17.ImageUrl = ds.Tables[0].Rows[4].ItemArray[2].ToString();
Label16.Text = ds.Tables[0].Rows[4].ItemArray[1].ToString();
Label17.Text = ds.Tables[0].Rows[5].ItemArray[0].ToString();
Session["Name5"] = Label17.Text;
ImageButton18.ImageUrl = ds.Tables[0].Rows[5].ItemArray[2].ToString();
Label19.Text = ds.Tables[0].Rows[5].ItemArray[1].ToString();
Label20.Text = ds.Tables[0].Rows[6].ItemArray[0].ToString();
Session["Name6"] = Label20.Text;
ImageButton19.ImageUrl = ds.Tables[0].Rows[6].ItemArray[2].ToString();
Label22.Text = ds.Tables[0].Rows[6].ItemArray[1].ToString();
Label23.Text = ds.Tables[0].Rows[7].ItemArray[0].ToString();
Session["Name7"] = Label23.Text;
ImageButton20.ImageUrl = ds.Tables[0].Rows[7].ItemArray[2].ToString();
Label25.Text = ds.Tables[0].Rows[7].ItemArray[1].ToString();
Label26.Text = ds.Tables[0].Rows[8].ItemArray[0].ToString();
Session["Name8"] = Label26.Text;
ImageButton21.ImageUrl = ds.Tables[0].Rows[8].ItemArray[2].ToString();
Label28.Text = ds.Tables[0].Rows[8].ItemArray[1].ToString();
Label29.Text = ds.Tables[0].Rows[9].ItemArray[0].ToString();
Session["Name9"] = Label29.Text;
ImageButton22.ImageUrl = ds.Tables[0].Rows[9].ItemArray[2].ToString();
Label31.Text = ds.Tables[0].Rows[9].ItemArray[1].ToString();
Label32.Text = ds.Tables[0].Rows[10].ItemArray[0].ToString();
Session["Name10"] = Label32.Text;
ImageButton23.ImageUrl = ds.Tables[0].Rows[10].ItemArray[2].ToString();
Label34.Text = ds.Tables[0].Rows[10].ItemArray[1].ToString();
133
Label35.Text = ds.Tables[0].Rows[11].ItemArray[0].ToString();
Session["Name11"] = Label35.Text;
ImageButton24.ImageUrl = ds.Tables[0].Rows[11].ItemArray[2].ToString();
Label37.Text = ds.Tables[0].Rows[11].ItemArray[1].ToString();
Label38.Text = ds.Tables[0].Rows[12].ItemArray[0].ToString();
Session["Name12"] = Label38.Text;
ImageButton25.ImageUrl = ds.Tables[0].Rows[12].ItemArray[2].ToString();
Label40.Text = ds.Tables[0].Rows[12].ItemArray[1].ToString();
Label41.Text = ds.Tables[0].Rows[13].ItemArray[0].ToString();
Session["Name13"] = Label41.Text;
ImageButton26.ImageUrl = ds.Tables[0].Rows[13].ItemArray[2].ToString();
Label43.Text = ds.Tables[0].Rows[13].ItemArray[1].ToString();
Label44.Text = ds.Tables[0].Rows[14].ItemArray[0].ToString();
Session["Name14"] = Label44.Text;
ImageButton27.ImageUrl = ds.Tables[0].Rows[14].ItemArray[2].ToString();
Label46.Text = ds.Tables[0].Rows[14].ItemArray[1].ToString();
Label47.Text = ds.Tables[0].Rows[15].ItemArray[0].ToString();
Session["Name15"] = Label47.Text;
ImageButton28.ImageUrl = ds.Tables[0].Rows[15].ItemArray[2].ToString();
Label49.Text = ds.Tables[0].Rows[15].ItemArray[1].ToString();
Label50.Text = ds.Tables[0].Rows[16].ItemArray[0].ToString();
Session["Name16"] = Label50.Text;
ImageButton29.ImageUrl = ds.Tables[0].Rows[16].ItemArray[2].ToString();
Label52.Text = ds.Tables[0].Rows[16].ItemArray[1].ToString();
Label53.Text = ds.Tables[0].Rows[17].ItemArray[0].ToString();
Session["Name17"] = Label53.Text;
ImageButton30.ImageUrl = ds.Tables[0].Rows[17].ItemArray[2].ToString();
Label55.Text = ds.Tables[0].Rows[17].ItemArray[1].ToString();
Label56.Text = ds.Tables[0].Rows[18].ItemArray[0].ToString();
Session["Name18"] = Label56.Text;
ImageButton31.ImageUrl = ds.Tables[0].Rows[18].ItemArray[2].ToString();
Label58.Text = ds.Tables[0].Rows[18].ItemArray[1].ToString();
Label59.Text = ds.Tables[0].Rows[19].ItemArray[0].ToString();
Session["Name19"] = Label59.Text;
ImageButton32.ImageUrl = ds.Tables[0].Rows[19].ItemArray[2].ToString();
Label61.Text = ds.Tables[0].Rows[19].ItemArray[1].ToString();
Label62.Text = ds.Tables[0].Rows[20].ItemArray[0].ToString();
Session["Name20"] = Label62.Text;
ImageButton33.ImageUrl = ds.Tables[0].Rows[20].ItemArray[2].ToString();
Label64.Text = ds.Tables[0].Rows[20].ItemArray[1].ToString();
Label65.Text = ds.Tables[0].Rows[21].ItemArray[0].ToString();
Session["Name21"] = Label65.Text;
ImageButton34.ImageUrl = ds.Tables[0].Rows[21].ItemArray[2].ToString();
Label67.Text = ds.Tables[0].Rows[21].ItemArray[1].ToString();
Label68.Text = ds.Tables[0].Rows[22].ItemArray[0].ToString();
Session["Name22"] = Label68.Text;
134
ImageButton35.ImageUrl = ds.Tables[0].Rows[22].ItemArray[2].ToString();
Label70.Text = ds.Tables[0].Rows[22].ItemArray[1].ToString();
Label71.Text = ds.Tables[0].Rows[23].ItemArray[0].ToString();
Session["Name23"] = Label68.Text;
ImageButton36.ImageUrl = ds.Tables[0].Rows[23].ItemArray[2].ToString();
Label73.Text = ds.Tables[0].Rows[23].ItemArray[1].ToString();
}
string aa1;
aa1 = Session["Name1"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
string aa1;
aa1 = Session["Name2"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
135
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
string aa1;
aa1 = Session["Name3"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
string aa1;
aa1 = Session["Name4"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
string aa1;
aa1 = Session["Name5"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
string aa1;
aa1 = Session["Name6"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
136
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
string aa1;
aa1 = Session["Name9"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
string aa1;
aa1 = Session["Name10"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
137
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
string aa1;
aa1 = Session["Name11"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
string aa1;
aa1 = Session["Name12"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
string aa1;
aa1 = Session["Name13"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
string aa1;
aa1 = Session["Name14"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
138
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
string aa1;
aa1 = Session["Name15"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
string aa1;
aa1 = Session["Name17"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
string aa1;
aa1 = Session["Name18"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
139
string aa1;
aa1 = Session["Name19"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
string aa1;
aa1 = Session["Name20"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
string aa1;
aa1 = Session["Name21"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
string aa1;
aa1 = Session["Name22"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
140
{
string aa1;
aa1 = Session["Name23"].ToString();
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail.aspx");
}
}
}
Camera_acc.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
public partial class WebForm19 : System.Web.UI.Page
{
SqlDataAdapter da, da1;
DataSet ds, ds1;
string a, b;
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
if (IsPostBack == false)
{
a = "select pname,price,Image from product where cat ='" +
Session["Catagories"] + "'";
da = new SqlDataAdapter(a, con);
ds = new DataSet();
da.Fill(ds);
Label2.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
Session["Name"] = Label2.Text;
ImageButton13.ImageUrl = ds.Tables[0].Rows[0].ItemArray[2].ToString();
Label4.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();
141
Label5.Text = ds.Tables[0].Rows[1].ItemArray[0].ToString();
Session["Name1"] = Label5.Text;
ImageButton14.ImageUrl = ds.Tables[0].Rows[1].ItemArray[2].ToString();
Label7.Text = ds.Tables[0].Rows[1].ItemArray[1].ToString();
Label8.Text = ds.Tables[0].Rows[2].ItemArray[0].ToString();
Session["Name2"] = Label8.Text;
ImageButton15.ImageUrl = ds.Tables[0].Rows[2].ItemArray[2].ToString();
Label10.Text = ds.Tables[0].Rows[2].ItemArray[1].ToString();
Label11.Text = ds.Tables[0].Rows[3].ItemArray[0].ToString();
Session["Name3"] = Label11.Text;
ImageButton16.ImageUrl = ds.Tables[0].Rows[3].ItemArray[2].ToString();
Label13.Text = ds.Tables[0].Rows[3].ItemArray[1].ToString();
Label14.Text = ds.Tables[0].Rows[4].ItemArray[0].ToString();
Session["Name4"] = Label14.Text;
ImageButton17.ImageUrl = ds.Tables[0].Rows[4].ItemArray[2].ToString();
Label16.Text = ds.Tables[0].Rows[4].ItemArray[1].ToString();
Label17.Text = ds.Tables[0].Rows[5].ItemArray[0].ToString();
Session["Name5"] = Label17.Text;
ImageButton18.ImageUrl = ds.Tables[0].Rows[5].ItemArray[2].ToString();
Label19.Text = ds.Tables[0].Rows[5].ItemArray[1].ToString();
Label20.Text = ds.Tables[0].Rows[6].ItemArray[0].ToString();
Session["Name6"] = Label20.Text;
ImageButton19.ImageUrl = ds.Tables[0].Rows[6].ItemArray[2].ToString();
Label22.Text = ds.Tables[0].Rows[6].ItemArray[1].ToString();
Label23.Text = ds.Tables[0].Rows[7].ItemArray[0].ToString();
Session["Name7"] = Label23.Text;
ImageButton20.ImageUrl = ds.Tables[0].Rows[7].ItemArray[2].ToString();
Label25.Text = ds.Tables[0].Rows[7].ItemArray[1].ToString();
Label26.Text = ds.Tables[0].Rows[8].ItemArray[0].ToString();
Session["Name8"] = Label26.Text;
ImageButton21.ImageUrl = ds.Tables[0].Rows[8].ItemArray[2].ToString();
Label28.Text = ds.Tables[0].Rows[8].ItemArray[1].ToString();
Label29.Text = ds.Tables[0].Rows[9].ItemArray[0].ToString();
Session["Name9"] = Label29.Text;
ImageButton22.ImageUrl = ds.Tables[0].Rows[9].ItemArray[2].ToString();
Label31.Text = ds.Tables[0].Rows[9].ItemArray[1].ToString();
Label32.Text = ds.Tables[0].Rows[10].ItemArray[0].ToString();
Session["Name10"] = Label32.Text;
ImageButton23.ImageUrl = ds.Tables[0].Rows[10].ItemArray[2].ToString();
Label34.Text = ds.Tables[0].Rows[10].ItemArray[1].ToString();
Label35.Text = ds.Tables[0].Rows[11].ItemArray[0].ToString();
Session["Name11"] = Label35.Text;
ImageButton24.ImageUrl = ds.Tables[0].Rows[11].ItemArray[2].ToString();
Label37.Text = ds.Tables[0].Rows[11].ItemArray[1].ToString();
Label38.Text = ds.Tables[0].Rows[12].ItemArray[0].ToString();
Session["Name12"] = Label38.Text;
ImageButton25.ImageUrl = ds.Tables[0].Rows[12].ItemArray[2].ToString();
142
Label40.Text = ds.Tables[0].Rows[12].ItemArray[1].ToString();
Label41.Text = ds.Tables[0].Rows[13].ItemArray[0].ToString();
Session["Name13"] = Label41.Text;
ImageButton26.ImageUrl = ds.Tables[0].Rows[13].ItemArray[2].ToString();
Label43.Text = ds.Tables[0].Rows[13].ItemArray[1].ToString();
Label44.Text = ds.Tables[0].Rows[14].ItemArray[0].ToString();
Session["Name14"] = Label44.Text;
ImageButton27.ImageUrl = ds.Tables[0].Rows[14].ItemArray[2].ToString();
Label46.Text = ds.Tables[0].Rows[14].ItemArray[1].ToString();
}
}
143
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail_acc.aspx");
}
144
}
145
b = "select pid from product where pname='" + aa1 + "'";
da1 = new SqlDataAdapter(b, con);
ds1 = new DataSet();
da1.Fill(ds1);
string c = ds1.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"] = c;
Response.Redirect("detail_acc.aspx");
}
Camera_one.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
146
{
SqlDataAdapter da, da1;
DataSet ds, ds1;
string a, b;
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
if (IsPostBack == false)
{
a = "select pname,price,Image from product where cat='" +
Session["Catagories"] + "' AND company='" + Session["brand"] + "'";
da = new SqlDataAdapter(a, con);
ds = new DataSet();
da.Fill(ds);
Label2.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
Session["Name"] = Label2.Text;
ImageButton13.ImageUrl = ds.Tables[0].Rows[0].ItemArray[2].ToString();
Label4.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();
Label5.Text = ds.Tables[0].Rows[1].ItemArray[0].ToString();
Session["Name1"] = Label5.Text;
ImageButton14.ImageUrl = ds.Tables[0].Rows[1].ItemArray[2].ToString();
Label7.Text = ds.Tables[0].Rows[1].ItemArray[1].ToString();
Label8.Text = ds.Tables[0].Rows[2].ItemArray[0].ToString();
Session["Name2"] = Label8.Text;
ImageButton15.ImageUrl = ds.Tables[0].Rows[2].ItemArray[2].ToString();
Label10.Text = ds.Tables[0].Rows[2].ItemArray[1].ToString();
Label11.Text = ds.Tables[0].Rows[3].ItemArray[0].ToString();
Session["Name3"] = Label11.Text;
ImageButton16.ImageUrl = ds.Tables[0].Rows[3].ItemArray[2].ToString();
Label13.Text = ds.Tables[0].Rows[3].ItemArray[1].ToString();
Label14.Text = ds.Tables[0].Rows[4].ItemArray[0].ToString();
Session["Name4"] = Label14.Text;
ImageButton17.ImageUrl = ds.Tables[0].Rows[4].ItemArray[2].ToString();
Label16.Text = ds.Tables[0].Rows[4].ItemArray[1].ToString();
}
}
147
}
148
Order-summary.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data .SqlClient ;
namespace Shopee.com
{
public partial class Orders_summary : System.Web.UI.Page
{
SqlDataAdapter da,da1;
DataSet ds,ds1;
string a, b ,c,d,e1,f,f1;
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
Label9.Text =DateTime.Now.ToShortDateString();
Label3.Text = Session["pid"].ToString ();
Label4.Text = Session["pname"].ToString();
Label5.Text = Session["company"].ToString();
Label8.Text = Session["price"].ToString();
149
Session["qty"] = TextBox1.Text;
Session["subtotal"] =Label6.Text ;
Response.Redirect("Add-to-cart.aspx");
}
}
Add-to-cart.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
public partial class Add_to_cart : System.Web.UI.Page
{
SqlDataAdapter da,da1,da3;
DataSet ds,ds1,ds3;
string a,b,c,f,f1,f3,f4,f5,f6,f7,f8;
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
Label2.Text = DateTime.Now.ToShortDateString();
a="select * from Order_detail1";
da = new SqlDataAdapter(a, con);
ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds.Tables[0];
150
GridView1.DataBind();
Response.Redirect("Transaction.aspx");
}
}
}
151
Detail.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Data;
using System.Data.SqlClient;
using System.Web.UI.WebControls;
namespace Shopee.com
{
public partial class WebForm13 : System.Web.UI.Page
{
SqlDataAdapter da;
DataSet ds;
string a, b, c;
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
a = "select * from product where pid='" + Session["pid"].ToString() + "'";
da = new SqlDataAdapter(a, con);
ds = new DataSet();
da.Fill(ds);
Image10.ImageUrl = ds.Tables[0].Rows[0].ItemArray[3].ToString();
Image11.ImageUrl = ds.Tables[0].Rows[0].ItemArray[2].ToString();
// Label7.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pid"]= Label7.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
Session["pname"] =Label2.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();
Session["price"] =Label6.Text = ds.Tables[0].Rows[0].ItemArray[4].ToString();
Session["company"] =Label4.Text =
ds.Tables[0].Rows[0].ItemArray[5].ToString();
Session["feature"]= Label5.Text = ds.Tables[0].Rows[0].ItemArray[6].ToString();
152
Detail1.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace Shopee.com
{
public partial class WebForm8 : System.Web.UI.Page
{
SqlDataAdapter da;
DataSet ds;
string a, b, c;
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.;Initial Catalog=Project;Integrated
Security=True");
con.Open();
string p = Session["dropdown"].ToString();
a = "select * from product where pname ='" + Session["dropdown"].ToString()
+ "'";
da = new SqlDataAdapter(a, con);
ds = new DataSet();
da.Fill(ds);
Image10.ImageUrl = ds.Tables[0].Rows[0].ItemArray[3].ToString();
Label2.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
Label4.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();
Label5.Text = ds.Tables[0].Rows[0].ItemArray[4].ToString();
Label6.Text = ds.Tables[0].Rows[0].ItemArray[5].ToString();
Label7.Text = ds.Tables[0].Rows[0].ItemArray[6].ToString();
}
153
SYSTEM
TESTING
154
Kinds of Testing
155
easily done unless the application has a well-designed
architecture with tight code; may require developing test
driver modules or test harnesses.
156
User Acceptance Testing- Determining if software is
satisfactory to an end user customer.
Testability
157
A good test would be neither too simple nor too
complex.
Compartmentalization
158
Testing enhances the integrity of a system by detecting
deviations in design and errors in the system.
Testing Principles
Testing Objectives
159
Testing is a process of executing a program with the intent of
finding errors.
A good test case is one that has a high probability of finding
an as yet undiscovered error.
A successful test is one that uncovers an as yet
undiscovered error.
FUTURE ENHANCEMENT
Future enhancement
CONCLUSION
161
4) Ease and Security of shipping.
162
BIBILIOGRAPHY
www.google.com
www.flipkart.com
163
www.ebay.in
www.amazon.com
www.jabong.com
www.wikipedia.org
www.w3schools.com
164