You are on page 1of 135

G-Fresh Ice- cream

PROJECT PROFILE
Project Title: G-Fresh Ice-Cream
(www.g-fresh ice-cream.com)
Objective: Providing Information about
Online shopping
Platform: Windows 7, Windows 8, Windows 10,etc
Front End: Asp.Net,Html,JavaScript
Back End: SQL server 2012
Editor: Visual Studio 2010
Project Team Size: 3 Members
Developed By: 1.Vachhani Dhruvi
2.Bhalodiya Shreya
3.Kasondra Ishani
Guided By:
Prof. Khushboo Trivedi

Submitted to: M.M.Ghodasara Mahila Arts & Commerce


Collage, Junagadh.

INTRODUCTION
Page 1
G-Fresh Ice- cream

&
OBJECTIVE
● Introduction
● Title
● Object

● Introduction

G-Fresh Ice-Cream is integrated Online Shopping Web-Site that handles transaction


reports. It works well in single-user mode.

G-Fresh Ice-Cream it just automates the existing entry system resulting in much faster
speed, minimization of the possibility of errors and instant retrieval of information.
Further,
the option to classify the Report group heads and items gives more flexibility to organize
your data, to keep track of the outstanding and to exercise a better control over individual
transactions.

We are very glad to represent the successful working model of “G-Fresh Ice-
Cream” within the given time period. Actually, our aim in preparing this project is to get
understand of practical programming approach rather than to get only good marks.

● TITLE : -G-Fresh Ice-Cream

G-Fresh Ice-Cream Parlour’s Product is basically a web application which is


developed in ASP.NET 2010. We have used C# language for server side coding
and Microsoft for the database. Internet helps people to move around the world.
Internet use has made communication faster, provides information from the
corners of the world, made our work trouble-free and speedy. Today’s life is so
busy and people have no time for roaming in Markets for Buy different ice

Page 2
G-Fresh Ice- cream

creams. So, to make life easy for people we make a small web service for Products
purchasing. It gives facility to Purchase Buy Products online easily and speedy.

In the Online Products there are two levels of users. Administrator and User. Here
administrator can add or modify data. User can view & Purchase.

● Objective

G-Fresh Ice-Cream is a web application from which any person can Purchase
Product online without physically presence of person. All the related information
of the Product can be provided by this website.

so the person can get each and every information of the Product.

TOOLS AND TECHNOLOGY


● Introduction of .Net :-
.NET is an object-oriented programming (OOP) model introduced to help
developers create internet-based distributed systems. It provides a platform-independent
framework that enables developers to quickly build, deploy and manage web-based
application, smart client applications and xml web services applications. The platform-
independence features enable business to quickly integrate their systems, information and
devices, there by helping users collaborate and communicate effectively.

● Features :-
⮚ It is a new environment for developing and running software applications.
⮚ It provides the framework for an internet-centric industry standard that makes
it possible.
⮚ Implement a service-oriented architecture by trying together applications,
information
and data, Source using web services.

Page 3
G-Fresh Ice- cream

⮚ It enables software to become platform and device-independent.


⮚ It employs many standard run-time services available to components written
in
variety of programming languages.
⮚ It has inter-language and inter-machine operability

● What is .NET Framework?


⮚ The .NET Framework is a common environment for building, deploying, and
running Web Services and Web Applications. The .NET Framework contains
common class libraries - like ADO.NET, ASP.NET and Windows Forms - to
provide advanced standard services that can be integrated into a variety of
computer systems.
⮚ The .NET Framework is language neutral. Currently it supports C++, C#, Visual
Basic, JScript (The Microsoft version of JavaScript) and COBOL. Third-party
languages - like Eiffel, Perl, Python, Smalltalk, and others - will also be available
for building future .NET Framework applications.

● The .NET Framework Architecture

❖ ASP.NET is based on the fundamental architecture of .NET Framework. Visual studio


provides a uniform way to combine the various features of this Architecture

Page 4
G-Fresh Ice- cream

Figure 1.1 The .NET Framework Architecture

❖ Architecture is explained form bottom to top in the following discussion.


❖ At the bottom of the Architecture is Common Language Runtime. NET Framework
common language runtime resides on top of the operating system services. The
common language runtime loads and executes code that targets the runtime. This code
is therefore called managed code. The runtime gives you, for example, the ability for
cross-language integration.
❖ .NET Framework provides a rich set of class libraries. These include base classes, like
networking and input/output classes, a data class library for data access, and classes for
use by programming tools, such as debugging services. All of them are brought
together by the Services Framework, which sits on top of the common language
runtime.
❖ The 4th layer of the framework consists of the Windows application model and, in
parallel, the web application model. The Web application model-in the slide presented
as ASP.NET comes with built-in Web Forms controls, which are responsible for
generating the user interface. They mirror typical HTML widgets like text boxes or
buttons. If these controls do not fit your needs, you are free to create your own user
controls.
❖ Web Services brings you a model to bind different applications over the Internet. This
model is based on existing infrastructure and applications and is therefore standard-
based, simple.
❖ Web Services are software solutions delivered via Internet to any device. Today, that
means Web browsers on computers, for the most part, but the device-agnostic design of
.NET will eliminate this limitation.
❖ One of the obvious themes of .NET is unification and interoperability between various
programming languages. In order to achieve this; certain rules must be laid and all the
languages must follow these rules. In other words we cannot have languages running
around.
❖ creating their own extensions and their own fancy new data types. CLS is the collection
of the rules and constraints that every language (that seeks to achieve .NET
compatibility) must follow.
❖ The CLR and the .NET Frameworks in general, however, are designed in such a way
that code written in one language can not only seamlessly be used by another language.

Page 5
G-Fresh Ice- cream

Hence ASP.NET can be programmed in any of the .NET compatible language whether
it is VB.NET, C#, Managed C++ or JScript.NET.

● KEY BENEFITS OF .NET


⮚ Ease of Use
▪ Object-oriented model
▪ Everything is an object
▪ Namespace and Framework structure
▪ Easier to comprehend and use
▪ Naming scheme of namespace reflects the underlying functionality

⮚ Freedom to choose
▪ The language that meet your needs.
▪ The development tool that is best for you
▪ The “feature and functionality” to “plug in to”
⮚ Security
▪ Restricting or containing the illegal memory reference
▪ Comprehensive security model
▪ Assembly specifics
▪ System wide
▪ Code inspection through MSIL
⮚ Deployment and Management
▪ Deployment: Code is “Assembled” and Run “Securely”
▪ Maintenance: Version Maintenance Simplified
⮚ Web Services
▪ The web the Way You Want It
▪ Anywhere
▪ Anytime
▪ On any device

● ASP.NET

Page 6
G-Fresh Ice- cream

⮚ .NET provides a complete environment for building, deploying and running .NET Web
application.
● Feature Of Asp.Net
⮚ ASP.NET has better language support, a large set of new controls , XML based
Components and better user authentication.
⮚ ASP.NET provides increased performance by running compiled code.
⮚ ASP.NET code is not fully backward compatible with ASP.
● New In Asp.Net
⮚ Better language support
⮚ Programming controls
⮚ Event-driven programming
⮚ XML based components
⮚ User authentication, with accounts and roles
⮚ Higher scalability
⮚ Increased performance –Compiled code
● Language Support
⮚ ASP.NET uses the new ADO.NET.
⮚ ASP.NET supports full, not VBScript.
⮚ ASP.NET supports C#(C sharp) and C++.
⮚ ASP.NET supports JScript as before
● ASP.NET Controls
⮚ ASP.NET contains a large set of HTML controls; almost all HTML elements on a
page can be defined as ASP.NET controls objects that can be controlled by
scripts.
⮚ ASP.NET also contains a new set of object oriented input controls, like
programmable
list and validation controls.
⮚ A new data grid control supports sorting, data paging, and everything you expect
from
dataset controls.
● Asp.Net Components
⮚ ASP.NET components are heavily based on XML, Like the new AD Rotator ,
That uses XML to store advertisement information and configuration.

Page 7
G-Fresh Ice- cream

● User Authentication
⮚ ASP.NET components forms based user authentication, including cookies
management and automatic redirecting of unauthorized logins.
⮚ You can still do your custom login page and custom user checking.
● User Accounts And Roles
⮚ ASP.NET allows for user and roles, to give each user (with a given role) access
to different server code and executables.
● Compiled Code
⮚ The first for an ASP.NET page on the server will compile the ASP.NET code and
keep a cached copy in memory. The results of this are greatly increased
performance.
● Easy Deployment
⮚ No more server restart to deploy compiled code. ASP.NET simply redirects all New
request to the new code.
● Back End Tool (SQL Server 2012)
SQL Server 2012 R2 boasts a number of new services, including PowerPivot for Excel and
SharePoint, Master Data Services, Stream Insight, Report Builder 3.0, Reporting Services
Add-in for SharePoint, a Data-tier function in Visual Studio that enables packaging of
tiered databases as part of an application, and a SQL Server Utility that manages multiple
SQL Servers.
⮚ Power Pivot allows end users to import, manipulate, analyze and export data, as well
as create reports, all using the familiar Excel interface and language.
-- Master Data Services is a new and powerful feature designed to help an
organization create a structure and hierarchy for data, so that data collected and used
across multiple departments, silos and databases is standardized and aligned. This
ensures that different databases are interoperable.
⮚ Stream Insight is a new platform integrated with .Net and SQL Server for processing
streams of data in parallel, allowing for many simultaneous queries running on live
data.
⮚ The data-tier functionality in Visual Studio is designed to make it simple to create n-
tier applications that use databases on the back end, and package the entire
application including the database as a sing leunit.

Page 8
G-Fresh Ice- cream

-- The SQL Server Utility allows for a single management dashboard across multiple
servers and databases.
● Key features include:
⮚ A new Control Point Explorer for central multi-instance and application utilization
management.
⮚ Built-in wizards to help you quickly set up and enroll instances and Data-Tier
Application components into central management.
⮚ Dashboard viewpoints for quick insight into application and instance utilization.
⮚ Report Builder 3.0
⮚ Power Pivot for Microsoft Excel
⮚ Master Data Services
⮚ Stream Insight core technology engine.
● Microsoft Sql Server as Database
⮚ A database is a collection of data arranged in such a way that we can easily
Extract information from it.
⮚ We have User SQL Server as backend.
⮚ There are many reasons for the SQL Server to be chosen as backend.
⮚ Maximum database size roughly 1,000,000 Terabytes.
⮚ To put that in perspective we could store 100 megabytes in a single SQL Server
Database.
⮚ Up to 16 simultaneous instances of SQL Server can run on single computer.
⮚ This helps in running complex Internet Site.
⮚ It has support for up to 32 processors in single instance.
⮚ Support for up to 64 Gigabytes of physical RAM.
⮚ Built in support for Extensible Markup Language XML.
⮚ Indexed Views.
⮚ Cascading referential integrity.
⮚ Data mining support in analysis services.
Basically with the depth and range of it, it is Enterprise-level database server.

● Tool Used

● This project is developed using the tools, which are most suited for development of
the Application Package. These tools are as follows: -
✔ Front End: Visual Studio2010 (ASP.Net 4.0)
Page 9
G-Fresh Ice- cream

✔ Back End: SQL Server 2012


● Mozilla Firefox:
⮚ Mozilla Firefox 7.0 and more makes it easier to get the most from the World Wide
Web, whether you are searching for new information or browsing your favorite web
sites. Built-in intelligence technology can save you time completing routine web
tasks, such as automatically completing web addresses and forms for you, and
automatically detecting your and connection status.
● ADO.NET OVERVIEW
⮚ ADO.NET is an evolution of the ADO data access model that directly addresses
user requirements for developing scalable applications. It was designed specifically
for the web with scalability, statelessness, and XML in mind.
⮚ ADO.NET uses some ADO objects, such as the Connection and Command
objects, and also introduces new objects. Key new ADO.NET objects include the
DataSet, DataReader, and DataAdapter.
⮚ The important distinction between this evolved stage of ADO.NET and previous
data architectures is that there exists an object -- the DataSet -- that is separate and
distinct from any data stores. Because of that, the DataSet functions as a standalone
entity.
⮚ You can think of the DataSet as an always disconnected recordset that knows
nothing about the source or destination of the data it contains. Inside a DataSet,
much like in a database, there are tables, columns, relationships, constraints, views,
and so forth.
✔ Connections: For connection to and managing transactions against a database.
✔ Commands: For issuing SQL commands against a database.
✔ DataReaders: For reading a forward-only stream of data records from a SQL
Server data source.
✔ DataSets: For storing, Remoting and programming against flat data, XML data and
relational data.
✔ DataAdapters. For pushing data into a DataSet, and reconciling data against a
database.
⮚ When dealing with connections to a database, there are two different options: SQL
Server .NET Data Provider (System.Data.SqlClient) and OLE DB .NET Data
Provider (System.Data.OleDb). In these samples we will use the SQL Server .NET

Page 10
G-Fresh Ice- cream

Data Provider. These are written to talk directly Microsoft SQL Server. The OLE
DB .NET Data Provider is used to talk to any OLE DB provider (as it uses OLE
DB underneath).
● SQL SERVER
✔ A database management, or DBMS, gives the user access to their data and helps
them transform the data into information. Such database management systems
include dBase, paradox, IMS, SQL Server and SQL Server. These systems allow
users to create, update and extract information from their database.
✔ A database is a structured collection of data. Data refers to the characteristics of
people, things and events. SQL Server stores each data item in its own fields.
● SQL SERVER TABLES
✔ SQL Server stores records relating to each other in a table. Different tables are
created for the various groups of information. Related tables are grouped
together to form a database.
● PRIMARY KEY
✔ Every table in SQL Server has a field or a combination of fields that
uniquely identifies each record in the table. The Unique identifier is called
the Primary Key, or simply the Key. The primary key provides the means
to distinguish one record from all other in a table. It allows the user and the
database system to identify, locate and refer to one particular record in the
database.
● RELATIONAL DATABASE
✔ Sometimes all the information of interest to a business operation can be stored in
one table. SQL Server makes it very easy to link the data in multiple tables.
Matching an employee to the department in which they work is one example.
✔ This is what makes SQL Server a relational database management system, or
RDBMS. It stores data in two or more tables and enables you to define
relationships between the table and enables you to define relationships between the
tables.
● FOREIGN KEY
✔ When a field is one table matches the primary key of another field is referred to as a
foreign key. A foreign key is a field or a group of fields in one table whose values
match those of the primary key of another table.

Page 11
G-Fresh Ice- cream

● REFERENTIAL INTEGRITY
✔ Not only does SQL Server allow you to link multiple tables, it also maintains
consistency between them. Ensuring that the data among related tables is correctly
matched is referred to as maintaining referential integrity.
● Description :-
✔ G-Fresh Ice-Cream Products is a web application. The basic users of this system are
administrator, registered users . This web application will be providing features such
as registration of user and purchase shopping prodects.
✔ The scope of the administrator is he can manage the shopping Product and view
purchases done by users And the scope of users is to view all the items based on
category and purchase it as per required quantity.
✔ The users of the system are as follows:

● Registered User:- The role of the registered user is to manage his profile. Registered
User can make purchase of shopping Products and give feedback about site.

● Simple User:- The role of the simple user can see the Ice Cream Products and give
feedback but can not purchase product without login. Once the simple user registered
in the web site he will get the full functionality of the website.

Analysis
❖ All projects follow a life cycle model (SDLC). The most widely used SDLC model in
my project is:

Analysis: Before a project is created, they have to know what they want to create. To
understand the nature of the project to be built we must understand the information

Page 12
G-Fresh Ice- cream

domain for the software as well as required function behavior, performance and interface
requirements for both the system.

Designing: once the analysis is done now it’s time for designing. It is the process by
which a person creates a specification of a software artifact, intended to accomplish goals,
using a set of primitive components and subject to constraints. Software design usually
involves problem solving and planning a software solution. This includes both low-level
component and algorithm design and high-level, architecture design.

Coding: The design must be translated in machine readable form. It performs this task. If
design is performed in a detailed manner, code generation can be accomplished
mechanically.

Testing: once code has been generated, software testing begins. It is done before the
release to the final audience. Software testing is meant to see how the software works
under different conditions. Testing is done to understand if it will work correctly, partially
fail to work properly, or totally fail to work properly. Each test may be used to see how
one, or many, parts of the software work at a point in its development.

❖ Prescriptive process models define a distinct set of activities, actions, tasks,


milestones, and work products, that are required to engineer high-quality
software. They do provide a useful roadmap for software engineering work.

❖ We discuss here the strategy of the system development in detail as the Register and
search Application is developed using this strategy.

❖ The SDLC method is classically thought of as the set of activities that Analyst,
designer and user carry out to develop and implement an information system. This
method consists of six steps. In most business situations the activities are all closely
related, usually inseparable and even order of the steps in these activities may be
difficult to determine. Different parts of the project can be in various phases at the
same time, with some components undergoing analysis while other is at advanced
design stages.

Page 13
G-Fresh Ice- cream

PROJECT LIFE CYCLE SDLC


(A)SYSTEM ANALYSIS:-
● Project Definition

⮚ Now a day’s people have not enough time to go in market and search for the
required items
⮚ In the morden time people are want each and every thing at their door step without
consuming much time.
⮚ Some time people have to pay high cost of product as products are sold in retail
store.
⮚ People are never like to stay in a que for purchasing or payment.
⮚ An online items will online shopping.
⮚ I have done this project using ASP.NET as front end and SQL Server as back end
easing the effort of user.

● Modules of the Project

❖ Client Module:
⮚ Each of the citizens, who want to purchase online ordering shopping, must
first register with the Software. For the registration part each person enters
their details name, address, phone no, E-Mail ID, User Id & password in
the Software.
⮚ Once the registration is complete, the citizen can sign-in to the website &
make purchasing of different product items.

❖ Administrators Module:
⮚ The module will be protected by user ID and password. Ordinary users of
the software will not be permitted to enter into this area of the software.

Page 14
G-Fresh Ice- cream

⮚ The module will be focusing on the maintenance like Master Data


Maintenance, Removal of old and outdated data from the software etc.

REQUIREMENT ANALYSIS

(1)Function Requirement
● Organization has following basic requirements to be performed by the website. So,
user can be able to get following functionality from website.

✔ Information about online order shopping system.


✔ Information about different types of items and category in our site.
✔ Available range of searching facility.
✔ Admin can search client information.
✔ Admin can add, update and delete shopping detail.
✔ User able to put required information.
✔ User can do order different flavour of Ice Cream, etc...
✔ User Can Update and View his Profile.
✔ Secure user Login account.

❖ FEASIBILITY STUDIES
✔ Feasibility study is most important and it concerns great to the customer, for which
new system is to be developed.
✔ It includes the study of success and level of satisfaction that the customer and the
user will get from the system. Feasibility means possibilities, i.e. this study
explores the possibility of implementation of new system as a substitute to old
system removing all shortcomings and including all new requirements.
❖ The feasibility study is needed to
✔ Answer the question whether a new system is to be installed or not?
✔ Determine the potential of the existing system.
✔ Improve the existing system.
✔ Know what should be embedded in the new system.

Page 15
G-Fresh Ice- cream

✔ Define the problems and objective involved in a project.


✔ Avoid costly repairs at a later stage when the system is implemented.
✔ Avoid crash implementation of a new system.
✔ Avoid the ‘Hardware Approach’ i.e. getting a computer first and then deciding
how to use it.

✔ An initial determine in a proposal that whether an alternative system is feasible or


not. To determine of candidate system in all respect I need to consider following
feasibility factors:
I. Operational feasibility
II. Technical feasibility
III. Economical feasibility
(1 ) Technical Feasibility:
✔ It is determined by the hardware and supporting software. Hardware requirements:
stand-alone computer with enough main memory space & backup storage more
than 2 GB to support MYSQL and huge database. Software requirement: MYSQL.

❖ Minimum Hardware Requirement

Component Minimum Requirement


1.Processor 1.6GHz processor
For above
2.Suported Architecture 32bit(* 86)
64bit(*64)
3.Memory 512MB for above
4.Hardisk Total space 4GB

❖ Minimum Software Requirement

Component Minimum Requirement


1.Operating System Window 7 or above
2.ASP.NET Language
Page 16
G-Fresh Ice- cream

3. SQLServer Database
4.Other Tools Photoshop
5.Web Browser Microsoft IE 9.0,
Mozilla Firefox 48
2).Operational Feasibility:
❖ Our application has such a user friendly GUI that any person having a sound
knowledge of computer can operate the system.

Page Process Affected Table Operation


1.Item Add,Updated,delete Login Update
by admin
2.Registration Upadate by user Registration Update
3. Feedback Add And Delete Feedback Add And
by admin Delete
4. Purchase Add,Update Purchase Add,Update
And Delete And Delete
By user
3).Economical Feasibility:

Component Minimum Price Local market Website


Requirement Price
1.Processor 1.6 GHz, 1200 1400 www.amazon.com
Intel Pentium
2.Hardisk 250GB 2000 2100 www.ebay.in
3.Memory 4GB RAM 2000 2100 www.sanpdeal.com
4.xampp Free Free Free www.ebey.com

❖ Software Requirement

Component Price Website


1.Window 7 OS 8199 or 10000 www.Infibean.com
2.Add of Photoshop 7.0 5000 www.ebay.in
3.Mozilla Firefox Free www.amazon.com
4.Microsoft Visual Studio Free www.sanpdeal.com

● Limitation of existing system:

⮚ Before we creating this Creaminess web site, we were faces many problems.
⮚ People don’t know about our one storage of Creaminess which is selling an
every type of items.
⮚ So, people were purchase a item in different shop. So, her time is wasted.

Page 17
G-Fresh Ice- cream

⮚ We were gives a many advertisement in news paper & TV.

 Scope of the purposed system:

⮚ This website has facility to view the purchase any items.


⮚ User can also buy a many items.
⮚ User can give feedback and ask some query to admin.
⮚ Admin is authorized so while admin not approve user until user not login.
This website is for all people who want to purchase any item..User first of
all login.After login user can view item. After this user can send this
opinion for this our web site.
⮚ User can purchase the items and give feedback
⮚ Admin can delete users.
⮚ Admin can delete user and view user’s order.
⮚ Our web site providing a case on delivery.
⮚ So, user can do not hasisate while purchasing a item

Design:
DATA FLOW DIAGRAM
❖ A Data Flow Diagram (DFD) is a graphical representation of the "flow" of data
through an Information System.
❖ A data flow diagram can also be used for the visualization of Data Processing. It is
common practice for a designer to draw a context-level DFD first which shows the
interaction between the system and outside entities.

DFD Symbols Description

Symbol Name Shape Description


The sharp cornered
Entity rectangles(or simply boxes)
External Entity in a DFD indicates entities.
Entities are people things,

Page 18
G-Fresh Ice- cream

organizations etc

The Process symbol


Process represents an activity that
transforms or manipulates the
data (combines, reorders,
converts, etc.).

Opened sided rectangles in


Data Store DFD indicates data store.
A Data Store is a repository
of data.

DataF low Arrow symbol in DFD


indicate data flow.
The Data Flow symbol
represents movement of
data

● Functional Modeling:-
Data Flow Diagram

❖ Object Oriented Approach


(1)DFD for 0 levels

Page 19
G-Fresh Ice- cream

(2)DFD for Admin

Page 20
G-Fresh Ice- cream

(3)DFD for Client

Page 21
G-Fresh Ice- cream

(B)SYSTEM DESIGN:-

❖ Function of the system:-

Page 22
G-Fresh Ice- cream

Use-case Diagram for ClientSide

Use-case Diagram for AdminSide

Page 23
G-Fresh Ice- cream

I. Data Modeling:

Page 24
G-Fresh Ice- cream

⮚ Activity diagram for Invalid User:

❖ Activity Diagram For Admin:

Page 25
G-Fresh Ice- cream

❖ Activity diagram for Client:

Page 26
G-Fresh Ice- cream

Page 27
G-Fresh Ice- cream

Traditional Approach

ERDiagram

Page 28
G-Fresh Ice- cream

DATA DICTIONARY

● DATABASE DETAIL
❖ A data dictionary is as defined as a “centralized repository of information about
data such as meaning, relationships to other data, origin, usage, and format”.
❖ A data dictionary can be consulted to understand where a data item fits in the
structure, what values it may contain, and basically what the data item means in
real-world terms.

[1]

Table Name : Login


Description : This table is used to store administration information.

Field Name Data Type Extra


Id Int(11) Auto_increment
username Varchar(20)
Password Varchar(20)

[2]
Table Name : Feedback
Description : This table is used to store customer Feedback information.

Field Name Data Type Extra


Id Int(11) Auto_increment
Name Varchar(20)
City Varchar(15)
Mobileno Int(10)
Email Varchar(50)
Feedback Varchar(255)

Page 29
G-Fresh Ice- cream

[3]
Table Name : Product
Description : This table is used to store Product Information.

Field Name Data Type Extra


Id Int(11) Auto_increment
Name Varchar(30)
Price Varchar(20)
Image Varchar(100)
Company Varchar(20)
Flavour Varchar(100)
Quantity Varchar(70)
Suger Varchar(20)

[4]
Table Name: Registration
Description : This table is used to Registration Information.

Field Name Data Type Extra


Id Int(11) Auto_increment
Name Varchar(20)
Address Varchar(50)
City Varchar(15)
Pincode Int(6)
State Varchar(15)
Country Varchar(15)
Username Varchar(20)
Password Varchar(20)
Gender Varchar(10)
Mobileno Varchar(12)
Email Varchar(20)
Dob Date

Page 30
G-Fresh Ice- cream

[5]
Table Name : Purchase
Description : This table is used to store purchase Information.

Field Name Data Type Extra


Id Int(11) Auto_increment
Name Varchar(50)
Price Int(30)
Quantity Int(20)
Username Varchar(20)
Total Int(20)
T Int(20)

[6]
Table Name : Addtocart
Description : This table is used to store addtocart Information.

Field Name Data Type Extra


Id Int(20) Auto_increment
Name Varchar(100)
Price Int(30)
Image Varchar(40)
Quantity Int(20)
Total Int(20)
Username Varchar(30)

Page 31
G-Fresh Ice- cream

IMPLEMENTATION & PLANING:-

 Gantt chart
Star Finis Durati
Task Name Dec-21 Jan-22 Feb-22 Mar-22
t h on

26-Mar
02-Mar

03-Mar
01-Dec

15-Dec

16-Dec

21-Feb

22-Feb
01-Jan

03-Jan

25-Jan

27-Jan
       

01-
15-
Requireme 12-
12- 2 wk                        
nt Analysis 202
2021
1
16-
01-
Database 12- 15
01-                        
Design 202 Days
2022
1
03-
25-
Screen 01- 25
01-                
Design 202 Days
2022
2  
27-
21-
Programmi 01- 25
02-                      
ng 202 Days
2022
2
22-
02-
02-
Testing 03- 1 wk                        
202
2022
2
03-
26-
User 03-
03- 2 wk                        
Document 202
2022
2

Page 32
G-Fresh Ice- cream

SCREEN LAYOUT & CODING

Web.config
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="cn"
connectionString="Data Source=.\
SQLEXPRESS;AttachDbFilename=D:\G-Fresh Ice-Cream\App_Data\
icecream.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<authentication mode="Forms">
<formsloginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>
<membership>
<providers><clear/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="ApplicationServices"enablePasswordRetrieval=
"false" enablePasswordReset="true"
requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
applicationName="/" />
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
</profile>
<roleManager enabled="false">
<provide
<clear/>
<add name="AspNetSqlRoleProvider"
type="System.Web.Security.SqlRoleProvider"
connectionStringName="ApplicationServices" applicationName="/" />

Page 33
G-Fresh Ice- cream

<add name="AspNetWindowsTokenRoleProvider"
type="System.Web.Security.WindowsTokenRoleProvider"
applicationName="/" />
</providers>
</roleManager>

</system.web>

<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>

Style.css
@font-face {
font-family: 'DeliusSwashCaps-Regular';
src: url('../fonts/DeliusSwashCaps-Regular.eot');
src: url('../fonts/DeliusSwashCaps-Regular.woff')
format('woff'), url('../fonts/DeliusSwashCaps-Regular.ttf')
format('truetype'), url('../fonts/DeliusSwashCaps-Regular.svg')
format('svg');
}
body {
background: url(../images/bg-body.jpg) repeat left top;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
line-height: 1;
margin: 0;
min-width: 960px;
padding: 0;
}
a {
outline: none;
}
img {
border: 0;
}
#header {
background: url(../images/bg-header.jpg) repeat-x left top;
border-top: 2px solid #0b9398;
}
#header div:first-child {
background: url(../images/light.png) no-repeat center top;
height: 144px;
}
#header div:first-child div {
border: 0;
background: none;

Page 34
G-Fresh Ice- cream

margin: 0 auto;
overflow: hidden;
padding: 27px 0 0;
text-align: center;
width: 960px;
}
#header div:first-child div ul {
list-style: none;
float: left;
height: auto;
margin: 0;
overflow: hidden;
padding: 46px 0;
width: auto;
}
#header div:first-child div ul li {
float: left;
height: auto;
margin: 0;
padding: 0;
width: 160px;
}
#header div:first-child div ul li a {
background: none;
color: #989282;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
line-height: 14px;
padding: 0 1px;
text-decoration: none;
text-transform: capitalize;
}
#header div:first-child div ul li.current a {
border-bottom: 1px solid #ff8fb4;
color: #ff8fb4;
}
#header div:first-child div ul li a:hover {
color: #ff8fb4;
}
#header div:first-child div a#logo {
float: left;
margin: 0 34px;
}
#header div {
background: url(../images/bg-yellow.png) repeat-x left
bottom;
width: 100%;
}
#header > div > ul {

Page 35
G-Fresh Ice- cream

background: none;
height: auto;
margin: 0 auto;
padding: 22px 0 27px;
text-align: center;
width: 960px;
}
#header > div ul li {
display: inline;
float: none;
margin: 0 10px;
}
#header > div > ul li a {
color: #989282;
display: inline-block;
font-family: 'DeliusSwashCaps-Regular';
font-size: 20px;
font-weight: normal;
height: 41px;
line-height: 41px;
text-align: center;
text-decoration: none;
text-transform: capitalize;
width: 220px;
}
#header > div > ul li.current a {
background: url(../images/bg-menu.png) no-repeat right top;
color: #ff8fb4;
}
#header > div > ul li a:hover {
color: #ff8fb4;
}
#body {
background: #4a182b;
border-bottom: 1px solid #5f233a;
min-height: 1050px;
padding: 27px 0 20px;
width: 100%;
}
#body > div {
margin: 0 auto;
padding: 0;
width: 960px;
}
#body .header, #body .body, #body .footer {
overflow: hidden;
}
#body .header {
background: url(../images/frame.jpg) no-repeat center center;

Page 36
G-Fresh Ice- cream

height: 449px;
padding: 13px 7px;
width: 946px;
}
#body .header div {
float: left;
width: 240px;
}
#body .header div h1 {
color: #ff8fb4;
font-family: 'DeliusSwashCaps-Regular';
font-size: 36px;
font-weight: normal;
line-height: 40px;
margin: 0;
padding: 60px 20px 30px;
text-align: center;
text-transform: capitalize;
}
#body .header div h3 {
color: #ff8fb4;
font-family: 'DeliusSwashCaps-Regular';
font-size: 24px;
font-weight: normal;
margin: 0;
padding: 30px 0 0;
text-align: center;
text-transform: capitalize;
}
#body .header div p {
color: #32b5ba;
line-height: 24px;
margin: 0;
padding: 0 30px 10px;
text-align: center;
}
#body .header div p a {
color: #fff;
text-decoration: none;
}
#body .header div p a:hover {
text-decoration: underline;
}
#body .header > img {
display: block;
float: left;
margin: 0 50px 0 3px;
}
#body .header ul {

Page 37
G-Fresh Ice- cream

margin: 0;
padding: 30px 0 0;
width: 239px;
}
#body .header ul li {
list-style: none;
margin: 0;
padding: 0;
text-align: center;
width: 239px;
}
#body .header ul li a {
text-decoration: none;
}
#body .header ul li img {
display: block;
}
#body .header ul li a:hover img {
opacity: 0.8;
}
#body .header ul li span {
color: #fcc5c9;
display: block;
font-family: 'DeliusSwashCaps-Regular';
font-size: 14px;
font-weight: normal;
margin: 0;
padding: 10px 0;
}
#body .header ul li a:hover span {
color: #ff8fb4;
}
#body .body {
padding: 40px 0;
width: 940px;
}
#body .body div {
border-bottom: 1px solid #876a38;
border-top: 1px solid #876a38;
float: left;
margin: 15px 0 0;
padding: 18px 20px;
width: 340px;
}
#body .body div p {
color: #989282;
font-family: 'DeliusSwashCaps-Regular';
font-size: 16px;
font-weight: normal;

Page 38
G-Fresh Ice- cream

line-height: 24px;
margin: 0;
padding: 0;
text-align: center;
}
#body .body div p a {
color: #989282;
text-decoration: underline;
}
#body .body div p a:hover {
color: #b8a87c;
}
#body .body img {
display: block;
float: left;
margin: 0 20px;
}
#body .footer > div {
float: left;
margin: 0 10px;
padding: 0;
}
#body .footer div h3 {
color: #fcc5c9;
font-family: 'DeliusSwashCaps-Regular';
font-size: 16px;
font-weight: normal;
margin: 0;
padding: 10px 0 7px;
text-transform: capitalize;
}
#body .footer p {
color: #989282;
line-height: 24px;
margin: 0;
padding: 0;
}
#body .footer p a {
color: #fff;
text-decoration: none;
}
#body .footer p a:hover {
text-decoration: underline;
}
#body .footer div.figure {
background: #543f1b;
border: 1px solid #876a38;
padding: 3px;
width: 372px;

Page 39
G-Fresh Ice- cream

}
#body .footer div.figure div {
background: #1b1b1b;
padding: 16px;
}
#body .footer div.figure div h1 {
color: #ff8fb4;
font-family: 'DeliusSwashCaps-Regular';
font-size: 24px;
font-weight: normal;
margin: 0;
padding: 0 0 17px;
text-align: left;
text-transform: capitalize;
}
#body .footer div.figure div h1 a {
color: #ff8fb4;
text-decoration: none;
}
#body .footer div.figure div h1 a:hover {
color: #fcc5c9;
}
#body .footer div.figure div a, #body .footer div.figure div a img
{
display: block;
}
#body .footer div.figure div a img {
background: #bfb38d;
border: 0;
padding: 2px;
}
#body .footer div.figure div > a:hover {
opacity: 0.8;
}
#body .footer div.article {
width: 300px;
}
#body .footer div.article ul {
margin: 0;
padding: 0;
}
#body .footer div.article ul li {
border-top: 1px solid #5e3342;
color: #989282;
list-style: none;
margin: 0;
padding: 12px 0;
}
#body .footer div.article ul li:first-child {

Page 40
G-Fresh Ice- cream

border: 0;
padding-top: 0;
}
#body .footer div.article ul li span {
display: block;
line-height: 24px;
margin: 0;
padding: 0;
}
#body .footer div.article ul li span a {
color: #989282;
text-decoration: none;
text-transform: capitalize;
}
#body .footer div.article ul li p a.more {
color: #989282;
margin: 0 0 0 5px;
text-decoration: none;
}
#body .footer p a:hover, #body .footer div.article ul li p
a.more:hover, #body .footer div.article ul li span a:hover {
color: #b8a87c;
}
#body .footer div.section p a:hover {
text-decoration: underline;
}
#body .footer div.section {
width: 220px;
}
#body .footer div.section > a {
background: #543f1b;
border: 1px solid #876a38;
display: block;
margin: 7px 0;
padding: 3px;
}
#body .footer div.section > a img {
display: block;
}
#body .footer div.section > a:hover {
opacity: 0.8;
}
#body #content {
overflow: hidden;
}
#body #content > p {
color: #989282;
line-height: 24px;
margin: 0;

Page 41
G-Fresh Ice- cream

padding: 0;
padding: 0 31px;
}
#body #content > p a {
color: #989282;
text-decoration: underline;
}
#body #content > p a:hover {
color: #b8a87c;
}
#body #content ul {
margin: 0;
overflow: hidden;
padding: 0;
}
#body #content ul li {
list-style: none;
margin: 0;
padding: 0;
}
#body #content ul.gallery li {
background: #543f1b;
border: 1px solid #876a38;
float: left;
margin: 0 20px 32px;
padding: 3px;
width: 272px;
}
#body #content ul.gallery li.last {
background: none;
border: 0;
}
#body #content ul.gallery li:last-child {
background: none;
border: 0;
}
#body #content ul.gallery li a.figure {
color: #fcc5c9;
background: #1b1b1b;
border: 1px solid #1e1d1b;
display: block;
font-size: 14px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
padding: 16px 16px 0;
text-align: center;
text-decoration: none;
}
#body #content ul.gallery li a.figure img {

Page 42
G-Fresh Ice- cream

display: block;
}
#body #content ul.gallery li a.figure span {
display: block;
line-height: 24px;
margin: 0;
padding: 5px 0;
}
#body #content ul.gallery li a.figure:hover img {
opacity: 0.8;
}
#body #content ul.gallery li p {
color: #989282;
font-size: 16px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
line-height: 24px;
margin: 0;
padding: 0;
}
#body #content ul.gallery li p a {
color: #989282;
text-decoration: underline;
}
#body #content ul.gallery li p a:hover {
color: #b8a87c;
}
#body #content ul.article li {
float: left;
margin: 0 30px 30px;
min-height: 408px;
width: 420px;
}
#body #content ul.article li div {
background: #543f1b;
border: 1px solid #876a38;
margin: 0;
padding: 3px;
}
#body #content ul.article li div a {
display: block;
}
#body #content ul.article li div img {
background: #1b1b1b;
border: 1px solid #1e1d1b;
display: block;
padding: 6px;
}
#body #content ul.article li div a:hover {

Page 43
G-Fresh Ice- cream

opacity: 0.9;
}
#body #content ul.article li h3 {
color: #fcc5c9;
font-size: 16px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
margin: 0;
padding: 12px 0 5px;
}
#body #content ul.article li h3 a:hover {
color: #fff;
}
#body #content ul.article li p {
color: #989282;
line-height: 24px;
margin: 0;
padding: 0;
}
#body #content ul.article li p a {
color: #989282;
text-decoration: underline;
}
#body #content ul.article li p a:hover {
color: #b8a87c;
}
#body #about h1 {
color: #fcc5c9;
font-size: 24px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
line-height: 30px;
margin: 0;
padding: 0 10px;
}
#body #about h3 {
color: #fcc5c9;
font-size: 18px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
margin: 0;
padding: 36px 10px 8px;
}
#body #about > p {
color: #989282;
font-size: 18px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
line-height: 30px;

Page 44
G-Fresh Ice- cream

margin: 0;
padding: 0 10px;
}
#body #about > p a {
color: #989282;
text-decoration: underline;
}
#body #about > p a:hover {
color: #b8a87c;
}
#body #about .article {
margin: 0;
overflow: hidden;
padding: 28px 0 0;
width: 960px;
}
#body #about .article div {
background: url(../images/frame-mid.gif) repeat-y top center;
float: left;
margin: 0;
padding: 0;
width: 461px;
}
#body #about .article div:first-child {
margin: 0 20px 0 9px;
}
#body #about .article div h2 {
color: #ff8fb4;
background: url(../images/frame-top.gif) no-repeat top
center;
font-size: 30px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
line-height: 36px;
margin: 0;
padding: 25px 21px 20px;
}
#body #about .article div p {
background: url(../images/frame-bottom.gif) no-repeat bottom
center;
color: #32b5ba;
line-height: 24px;
margin: 0;
padding: 0 21px 31px;
}
#body #about .article div p a {
color: #32b5ba;
text-decoration: underline;
}

Page 45
G-Fresh Ice- cream

#body #about .article div p a:hover {


color: #8cdfe2;
}
#body #about .section {
margin: 0 auto;
overflow: hidden;
padding: 40px 0;
width: 940px;
}
#body #about .section div {
border-bottom: 1px solid #876a38;
border-top: 1px solid #876a38;
min-height: 141px;
float: left;
margin: 0;
padding: 18px 20px;
width: 340px;
}
#body #about .section div h4 {
color: #fcc5c9;
font-size: 16px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
margin: 0;
padding: 0 0 5px;
}
#body #about .section div p {
color: #989282;
line-height: 24px;
margin: 0;
padding: 0;
text-align: left;
}
#body #about .section div p a {
color: #989282;
text-decoration: underline;
}
#body #about .section div p a:hover {
color: #b8a87c;
}
#body #about .section img {
display: block;
float: left;
margin: 22px 20px;
}
#body #content #blog {
float: left;
margin: 0 10px;
padding: 0;

Page 46
G-Fresh Ice- cream

width: 700px;
}
#body #content #blog div {
border-bottom: 1px solid #876a38;
border-top: 1px solid #876a38;
margin: 0 0 35px;
padding: 17px 20px 40px;
}
#body #content #blog div span {
color: #989282;
display: block;
line-height: 24px;
margin: 0;
}
#body #content #blog div span a {
color: #989282;
text-decoration: none;
text-transform: capitalize;
}
#body #content #blog div h3 {
color: #fcc5c9;
font-size: 16px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
line-height: 24px;
margin: 0;
padding: 0;
}
#body #content #blog div h3 a {
color: #fff;
text-decoration: none;
}
#body #content #blog div p {
color: #989282;
line-height: 24px;
margin: 0;
padding: 0;
}
#body #content #blog div p a {
color: #989282;
text-decoration: underline;
}
#body #content #blog div a:hover {
color: #b8a87c;
}
#body #content #blog div span a:hover {
color: #fff;
text-decoration: none;
}

Page 47
G-Fresh Ice- cream

#body #content #sidebar {


float: left;
margin: 0 10px;
padding: 0;
width: 220px;
}
#body #content #sidebar div, #body #content #sidebar div ul {
margin: 0;
padding: 0;
}
#body #content #sidebar div {
margin: 0 0 6px;
padding: 17px 0 0;
}
#body #content #sidebar div ul li {
background: url(../images/bullet.png) no-repeat 0 10px;
list-style: none;
line-height: 24px;
margin: 0;
padding: 0 0 0 10px;
}
#body #content #sidebar div ul li a {
color: #989282;
display: block;
text-decoration: none;
}
#body #content #sidebar div ul li a:hover {
text-decoration: underline;
}
#body #content #sidebar div h3 {
color: #fcc5c9;
font-size: 16px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
line-height: 24px;
margin: 0;
padding: 0;
text-transform: capitalize;
}
#body #contact {
padding: 0 10px;
width: 940px;
}
#body #contact h1 {
color: #fcc5c9;
font-size: 24px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
line-height: 30px;

Page 48
G-Fresh Ice- cream

margin: 0;
padding: 0;
}
#body #contact h1 a {
color: #fcc5c9;
}
#body #contact h1 a:hover {
color: #fff;
}
#body #contact > div {
margin: 0;
overflow: hidden;
padding: 30px 0 50px;
}
#body #contact div .section {
float: left;
margin: 0 20px 0 0;
padding: 0;
width: 540px;
}
#body #contact div .section p {
color: #989282;
line-height: 24px;
margin: 0;
padding: 0;
}
#body #contact div .section p a {
color: #989282;
text-decoration: underline;
}
#body #contact div .section p a:hover {
color: #b8a87c;
}
#body #contact div .section ul, #body #contact div .section ul li
{
margin: 0;
padding: 0;
}
#body #contact div .section ul {
padding: 10px 0 0;
}
#body #contact div .section ul li {
color: #989282;
line-height: 24px;
list-style: none;
margin: 0;
padding: 14px 0;
}
#body #contact div .section ul li span {

Page 49
G-Fresh Ice- cream

color: #fcc5c9;
display: block;
font-size: 16px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
line-height: 24px;
margin: 0;
padding: 0;
text-transform: capitalize;
}
#body #contact div .section ul li a {
color: #989282;
text-decoration: none;
}
#body #contact div .section ul li a:hover {
color: #b8a87c;
}
#body #contact div .figure {
background: #543f1b;
border: 1px solid #876a38;
float: left;
margin: 0;
padding: 3px;
width: 372px;
}
#body #contact div .figure div {
background: #1b1b1b;
padding: 16px;
}
#body #contact div .figure div img {
background: #bfb38d;
border: 0;
display: block;
padding: 3px;
}
#body #contact div .figure div p {
color: #32b5ba;
line-height: 24px;
margin: 0;
padding: 7px 0 0;
}
#body #contact div .figure div p a {
color: #32b5ba;
text-decoration: underline;
}
#body #contact div .figure div p a:hover {
color: #8cdfe2;
}
#body #contact form {

Page 50
G-Fresh Ice- cream

border-bottom: 1px solid #876a38;


border-top: 1px solid #876a38;
margin: 0;
overflow: hidden;
padding: 18px 20px 30px 19px;
}
#body #contact form span {
clear: both;
color: #fcc5c9;
display: block;
font-size: 16px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
margin: 0;
padding: 0 0 17px;
text-transform: capitalize;
}
#body #contact form div {
float: left;
margin: 0;
padding: 0;
width: 502px;
}
#body #contact form div.information {
margin: 0 58px 0 0;
width: 341px;
}
#body #contact form label {
color: #989282;
display: block;
line-height: 36px;
margin: 0;
padding: 0;
text-transform: capitalize;
}
#body #contact form input {
border: 1px solid #bfc2c7;
color: #999;
display: block;
height: 35px;
line-height: 35px;
margin: 0;
padding: 0;
}
#body #contact form div.information input {
font-size: 16px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
padding: 0 5px;

Page 51
G-Fresh Ice- cream

width: 329px;
}
#body #contact form textarea {
border: 1px solid #bfc2c7;
color: #999;
display: block;
font-size: 16px;
font-family: 'DeliusSwashCaps-Regular';
font-weight: normal;
height: 172px;
margin: 0 0 5px;
padding: 5px;
resize: none;
width: 490px;
}
#body #contact form #send {
background: url(../images/button.png) no-repeat 0 0;
border: 0;
height: 24px;
margin: 0;
padding: 0;
width: 51px;
}
#body #contact form #send:hover {
background-position: 0 -29px;
}
#footer {
background: url(../images/footer-shadow.png) repeat-x left
top;
margin: 0;
padding: 40px 0;
}
#footer div {
margin: 0 auto;
padding: 0;
overflow: hidden;
width: 940px;
}
#footer div div {
float: left;
padding: 0;
width: 470px;
}
#footer div div a {
display: block;
float: left;
height: 26px;
margin: 0 0 0 18px;
text-indent: -99999px;

Page 52
G-Fresh Ice- cream

}
#footer div div a:first-child {
margin: 0;
}
#footer div div a#facebook {
background: url(../images/icons.png) no-repeat 0 0;
width: 25px;
}
#footer div div a#facebook:hover {
background-position: -43px 0;
}
#footer div div a#twitter {
background: url(../images/icons.png) no-repeat 0 -30px;
width: 38px;
}
#footer div div a#twitter:hover {
background-position: -43px -30px;
}
#footer div div a#googleplus {
background: url(../images/icons.png) no-repeat 0 -61px;
width: 26px;
}
#footer div div a#googleplus:hover {
background-position: -43px -61px;
}
#footer div p {
color: #4e4e4e;
float: right;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
margin: 0;
text-align: right;
width: 470px;
}

ADMIN SIDE
Icecream.master
<%@ Master Language="C#" AutoEventWireup="true"
CodeFile="icecream.master.cs" Inherits="admin_icecream" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>

Page 53
G-Fresh Ice- cream

<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<title>G-Fresh Ice-Cream</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="header">
<div>
<div>
<img src="../PNG logo 2 (3).png"Image"
height="100" width="100">
</div>
</div>
<div>
<ul><li>
<a href="home.aspx">home</a>
</li><li>
<a href="logout.aspx">Logout</a>
</li>
</ul>
</div>
</div>
<div id="body">
<div class="header">
<div>
<h1>G-fresh Ice-cream</h1>
<p>Ice cream is a frozen desert made of
cream with added flavour. It is very tasty.There are many variety
of ice cream available in market. Some ice cream has tow or more
than two flavours. It has very tasty toping.Everyone like it's
much even they are chidren or adult.
</p>
</div>
<img src="../images/double.jpg" alt="">
<div>
<h3>Life is like an ice cream.Enjoy it
before it melts.</h3>
<ul><li><a href="fresh.html"> <img src="images/o21.jpg"
alt=""> <span></span></a></li>
<li><a href=""> <img src="images/c2.jpg" alt=""> </a>
</li></ul>
</div></div>
<div>
<table border="5">
<asp:ContentPlaceHolder id="ContentPlaceHolder1"
runat="server">

</asp:ContentPlaceHolder>

Page 54
G-Fresh Ice- cream

</table>
</div>
</form>
<div class="body">
<div><p>Go and buy yourself an ice cream </p>
</div><img src="images/strawberry-tart.png"
alt=""><div>
<p> What flavour of ice cream do you lik</p>
</div>
</div>
</div>
<div id="footer" >
<div class="article" style="font-size:larger;margin-
left:70px;font-family: 'Times New Roman', Times, serif; font-
style: italic; font-variant: normal; font-weight: bold; color:
#FFFFFF;">
<a href="home.aspx">www.g-fresh ice
cream.com</a>
</div>
</div>
</body>
</html>

[1] Home Page :-

Home.aspx

Page 55
G-Fresh Ice- cream

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


MasterPageFile="~/admin/icecream.master" AutoEventWireup="true"
CodeFile="home.aspx.cs" Inherits="admin_home" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form>
<div id="div1" align="center" style="background-color:06F2E7;">
<asp:Label ID="Label1" runat="server" Text="Welcome To The Admin
Panel..."
Font-Bold="True" Font-Size="Large"
style="margin-left:25px; font-family: 'Lucida
Calligraphy';font-size:45px;
margin-top:100px;font-size:56px;font-color:red;color:#ff7142;
text-shadow: 1px 1px 2px black, 0 0 25px black, 0 0 5px
black;margin-top:-25px;"
Font-Italic="True"
></asp:Label>
<table
style="margin-left:3px;margin-top:20px;">
<tr>
<td style="margin-left:50px;"><a id="hp2" href="loginmaster.aspx"
style="border-style: groove; border-width: medium; font-family:
'Lucida Calligraphy';
font-size: xx-large;color:red;
font-weight: 200; font-style: italic;margin-left:-10px;
font-variant: normal; background-color:#060DF2; visibility: visible;
overflow:
visible; text-decoration: blink;">
Login</a> </td>
<td style="margin-left:90px;">
<a id="HyperLink1" href="feedbackmaster.aspx"style="border-style:
groove; border-width: medium; font-family: 'Lucida Calligraphy';
font-size: xx-large;color:red;
font-weight: 200; font-style: italic;margin-left:80px;
font-variant: normal; background-color:#060DF2; visibility:
visible; overflow:
visible; text-decoration: blink;">
Feedback</a> </td>
<td style="margin-left:90px;"><a id="A3" href="purchasemaster.aspx"
style="border-style: groove; border-width: medium; font-family:
'Lucida Calligraphy';
font-size: xx-large;color:red;
font-weight: 200; font-style: italic;margin-left:80px;
font-variant: normal; background-color:#060DF2; visibility:
visible; overflow:
visible; text-decoration: blink;">

Page 56
G-Fresh Ice- cream

Purchase</a> </td>
<br /><br />
<td><a id="A1" href="registrationmaster.aspx"style="border-style:
groove; border-width: medium;font-family: 'Lucida Calligraphy'; font-
size: xx-large;
font-weight: 200; font-style: italic;margin-left:-10px;
color:red;margin-left:90px;
font-variant: normal; background-color:#060DF2; visibility: visible;
overflow: visible;
text-decoration: blink;">Registration</a> </td>
<td><a id="A2" href="productmaster.aspx"
style="border-style: groove;margin-left:40px; border-width:
medium; font-family: 'Lucida Calligraphy'; font-size: xx-large;
font-weight: 200; font-style: italic;color:red;
font-variant: normal; background-color: #060DF2; visibility:
visible; overflow: visible; text-decoration: blink;">
Product</a> </td>
</div>
</table>
</form>
</asp:Content>

Home.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.SqlClient;
using System.Web.Configuration;
using System.Data;

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


{

protected void Page_Load(object sender, EventArgs e)


{
if(Session["uname"]==null)
{
Response.Redirect("login.aspx");
}
}
}

[2] Login Page :-

Page 57
G-Fresh Ice- cream

Login.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/admin/icecream.master" AutoEventWireup="true"
CodeFile="login.aspx.cs" Inherits="admin_login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head"
Runat="Server">
</asp:Content><asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="Form1" runat="server"style="margin-left:600px;"
align="center">
<table align="center" style="border-left:4px;background-
color:black;border-top-left-radius:15px;border-bottom-right-
radius:15px;"height="1800%"><tr></tr><tr>
</tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr>
<tr><asp:Label ID="Label1" runat="server" Text="Login Form" Font-
Size="50px"
ForeColor="#3399FF"Font-Bold="True"
style="margin-left:300px;fonfamily:Lucida Calligraphy;"
></asp:Label>&nbsp;
</tr><br /><br />
<tr><td>
<asp:Label ID="Label2" runat="server" Text="Username" Font-
Size="XX-Large" ForeColor="White" style="font-family:Monotype
Corsiva;">
</asp:Label></td><td>&nbsp;
<asp:TextBox ID="txtusername" runat="server" Font-
Size="Large"></asp:TextBox><asp:RequiredFieldValidator
ID="rfvunm"runat="server" ControlToValidate ="txtusername"
ErrorMessage="Please Enter username" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator>
Page 58
G-Fresh Ice- cream

</td></tr>
<tr><td>
<asp:Label ID="Label3" runat="server" Text="Password" Font-
Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-family:Monotype
Corsiva;"></asp:Label></td><td>
&nbsp;
<asp:TextBox ID="txtpassword" runat="server" Font-
Size="Large" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ControlToValidate ="txtpassword"
ErrorMessage="Please Enter password" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="valPassword" runat="server"
ControlToValidate="txtpassword"
ForeColor="red"
ErrorMessage="password must be within 6 to 15"
ValidationExpression="^([a-z,A-Z,0-9@#$%^&+=*]{6,15})$"
ValidationGroup="RegisterCheck" />
</td></tr>
<tr><td style="margin-left:120px;margin-top:-2px;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="btnok" runat="server" Text="Login"
BackColor="#99CCFF"
Font-Size="X-Large" style="margin-left:45px;font-
family:Algerian;margin-top:20px;
border-top-left-radius:15px;border-bottom-right-
radius:15px;"
onclick="btnok_Click" /></td><td>
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="btncancel" runat="server" Text="Cancel"
BackColor="#99CCFF" Font-Size="X-Large"
style="margin-left:48px;margin-top:20px;font-
family:Algerian;border-top-left-radius:15px;border-bottom-right-
radius:15px;"
onclick="btncancel_Click" />
</td></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></
tr><tr></tr>
</table>
</form>
</asp:Content>

Login.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
Page 59
G-Fresh Ice- cream

using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Web.Configuration;
using System.Data;

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


{
SqlConnection con = new SqlConnection();
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
}
protected void btnok_Click(object sender, EventArgs e)
{

DataTable dt = new DataTable();


SqlDataAdapter da = new SqlDataAdapter("select * from
login where username='" + txtusername.Text + "' and password='" +
txtpassword.Text + "'", con);
da.Fill(dt);
if (dt.Rows.Count == 1)
{
if (dt.Rows[0][1].ToString() == txtusername.Text &&
dt.Rows[0][2].ToString() == txtpassword.Text)
{
Session["id"] = dt.Rows[0][0].ToString();
Session["uname"] = dt.Rows[0][1].ToString();
Response.Redirect("home.aspx");
}
}
else
{
Response.Write("<script>alert('your username or
password is wrong');window.location.href='login.aspx';</script>");

}
}
protected void btncancel_Click(object sender, EventArgs e)
{
txtusername.Text = "";
txtpassword.Text = "";
}
}

Page 60
G-Fresh Ice- cream

[3] Master.aspx
<%@ Master Language="C#" AutoEventWireup="true"
CodeFile="icecream.master.cs" Inherits="admin_icecream" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<title>G-Fresh</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="header">
<div>
<div>
<img src="../PNG logo 2 (3).png"Image"
height="100" width="100">
</div>
</div>
<div>
<ul>
<li><a href="home.aspx">home</a>
</li>
<li>
<a href="logout.aspx">Logout</a>
</li>
</ul>
</div>
</div>
<div id="body">
<div class="header">
<div>
<h1>G-fresh Ice-cream</h1>
<p>
Ice cream is a frozen desert made of cream with
added flavour. It is very tasty.There are many variety of ice
cream available in market.Some ice cream has tow or more than two
flavours.It has very tasty toping.Everyone like it's much even
they are chidren or adult.
</p>

Page 61
G-Fresh Ice- cream

</div><img src="../images/double.jpg" alt=""><div>


<h3>Life is like an ice cream.Enjoy it
before it melts.</h3><ul>
<li><a href="fresh.html"> <img src="images/o21.jpg" alt="">
<span></span></a>
</li><li>
<a href=""> <img src="images/c2.jpg" alt=""> </a>
</li></ul>
</div></div>
<div><table border="5">
<asp:ContentPlaceHolder id="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</table>
</div>
</form>
<div class="body">
<div>
<p> Go and buy yourself an ice cream.</p>
</div>
<img src="images/strawberry-tart.png" alt="">
<div>
<p>What flavour of ice cream do you like?</p>
</div>
</div>
</div>
<div id="footer" >
<div class="article" style="font-size:larger;margin-
left:70px;font-family: 'Times New Roman', Times, serif; font-
style: italic; font-variant: normal; font-weight: bold; color:
#FFFFFF;">
</div>
</div>
</body>
</html>

[4] LoginMaster Page :-

Page 62
G-Fresh Ice- cream

LoginMaster.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/admin/icecream.master" AutoEventWireup="true"
CodeFile="loginmaster.aspx.cs" Inherits="admin_loginmaster" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="Form1" runat="server">
<table align="center" style="border-left:4px;background-
color:black;border-top-left-radius:15px;
border-bottom-right-radius:15px;">
<tr><asp:Label ID="Label1" runat="server" Text="Login
Master" Font-Size="50px"
ForeColor="#3399FF"
Font-Bold="True"
style="margin-left:300px;font-family:Lucida
Calligraphy;" ></asp:Label>
&nbsp;</tr> </table>
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False" AutoGenerateDeleteButton="True"
AutoGenerateEditButton="True"
onrowdeleting="GridView1_RowDeleting"
onrowediting="GridView1_RowEditing"
CellPadding="3"
Font-Size="XX-Large" BackColor="gray"
ForeColor="Black"
Width="800px" style="margin-left:69px;font-
family:Garamond;" Font-Bold="True">

Page 63
G-Fresh Ice- cream

<Columns>
<asp:TemplateField HeaderText="Id" Visible="false" >
<ItemTemplate>
<asp:Label ID="lblid" runat="server" Text='<%#Eval("id") %>'
Visible="false" >
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Username">
<ItemTemplate>
<asp:Label ID="lbluname" runat="server" Text='<
%#Eval("username") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField><asp:TemplateField
HeaderText="Password">
<ItemTemplate>
<asp:Label ID="lblpw" runat="server"Text='<%#Eval("password") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<br />
<a href="registration.aspx" style="border-style: groove;
border-width: medium;
font-family: 'Lucida Calligraphy';
font-size: xx-large;color:#060DF2;
font-weight: 200; font-style: italic;margin-
left:350px;margin-top:550px;
font-variant: normal; background-color:pink; visibility:
visible; overflow:
visible; text-decoration: blink;">Now Sign Up</a>
</form>
</asp:Content>

LoginMaster.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.SqlClient;
using System.Web.Configuration;
using System.Data;
using System.Data.SqlClient;
public partial class admin_loginmaster : System.Web.UI.Page

Page 64
G-Fresh Ice- cream

{
SqlConnection con = new SqlConnection();
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
if (Session["uname"] == null)
{
Response.Redirect("login.aspx");
}
getdata();
}
public void getdata()
{
SqlDataAdapter da = new SqlDataAdapter("select * from
login",con);
DataTable dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
dt.Clear();
}
protected void GridView1_RowDeleting(object sender,
GridViewDeleteEventArgs e)
{
Label id =
(Label)GridView1.Rows[e.RowIndex].FindControl("lblid");
int id1 = Convert.ToInt32(id.Text);
cmd = new SqlCommand("delete from login where id=" + id1,
con);
cmd.ExecuteNonQuery();
getdata();
}

protected void GridView1_RowEditing(object sender,


GridViewEditEventArgs e)
{
Label id =
(Label)GridView1.Rows[e.NewEditIndex].FindControl("lblid");
int id1 = Convert.ToInt32(id.Text);
Response.Redirect("loginedit.aspx?id=" + id1);
}
}

[5] LoginEdit Page :-

Page 65
G-Fresh Ice- cream

LoginEdit.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/admin/icecream.master" AutoEventWireup="true"
CodeFile="loginedit.aspx.cs" Inherits="admin_loginedit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="Form1" runat="server" style="margin-left:600px;"
align="center">
<table align="center" style="border-left:4px;background-
color:black;border-top-left-radius:15px;
border-bottom-right-radius:15px;" height="1800%"
><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr><asp:Label ID="Label1" runat="server" Text="Login
Form" Font-Size="50px" ForeColor="#3399FF"
Font-Bold="True"
style="margin-left:300px;font-family:Lucida
Calligraphy;" ></asp:Label>
&nbsp;</tr><br /><br />
<tr>
<td><asp:Label ID="lblid" runat="server" Text="Id" Font-
Size="XX-Large"
ForeColor="White" style="font-family:Monotype
Corsiva;"></asp:Label></td><td>
&nbsp;
<asp:TextBox ID="txtid" runat="server" Font-
Size="Large"></asp:TextBox>

Page 66
G-Fresh Ice- cream

<asp:RequiredFieldValidator
ID="RequiredFieldValidator2"
runat="server" ControlToValidate ="txtid"
ErrorMessage="Please Enter id" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator>
</td></tr>
<tr><td>
<asp:Label ID="Label2" runat="server" Text="Username" Font-
Size="XX-Large"
ForeColor="White" style="font-family:Monotype
Corsiva;"></asp:Label></td><td>
&nbsp;
<asp:TextBox ID="txtusername" runat="server" Font-
Size="Large"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvunm"
runat="server" ControlToValidate ="txtusername"
ErrorMessage="Please Enter username" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator>
</td></tr>
<tr><td>
<asp:Label ID="Label3" runat="server" Text="Password" Font-
Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;"></asp:Label></td><td>
&nbsp;
<asp:TextBox ID="txtpassword" runat="server" Font-
Size="Large"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ControlToValidate ="txtpassword"
ErrorMessage="Please Enter password" Font-Bold="True"
ForeColor="red">

</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="valPassword"
runat="server" ControlToValidate="txtpassword"
ForeColor="red"
ErrorMessage="password must be within 6 to 15"
ValidationExpression="^([a-z,A-Z,0-9@#$%^&+=*]
{6,15})$"
ValidationGroup="RegisterCheck" />
</td></tr>
<tr><td style="margin-left:120px;margin-top:-2px;">
<asp:Button ID="btnedit" runat="server" Text="Update"
BackColor="#99CCFF"
Font-Size="X-Large" style="margin-left:45px;font-
family:Algerian;margin-top:20px;

Page 67
G-Fresh Ice- cream

border-top-left-radius:15px;border-bottom-right-
radius:15px;" onclick="btnedit_Click"
/></td><td>
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="btncancel" runat="server" Text="Cancel"
BackColor="#99CCFF" Font-Size="X-Large"
style="margin-left:48px;margin-top:20px;font-
family:Algerian;border-top-left-radius:15px;border-bottom-
right-radius:15px;" />
</td></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></
tr><tr></tr>
</table>
</form>
</asp:Content>

LoginEdit.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.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Web.Configuration;
using System.Data;

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


{
SqlConnection con = new SqlConnection();
SqlCommand cmd;

protected void Page_Load(object sender, EventArgs e)


{
con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
if (Session["uname"] == null)
{
Response.Redirect("login.aspx");
}
if (!IsPostBack)
{
int id = Convert.ToInt32(Request.QueryString["id"]);
SqlDataAdapter da=new SqlDataAdapter("select * from
login where id="+id,con);
DataTable dt = new DataTable();
da.Fill(dt);
txtid.Text = dt.Rows[0][0].ToString();

Page 68
G-Fresh Ice- cream

txtusername.Text = dt.Rows[0][1].ToString();
txtpassword.Text = dt.Rows[0][2].ToString();

}
}
protected void btnedit_Click(object sender, EventArgs e)
{
int id=Convert.ToInt32(Request.QueryString["id"]);
cmd=new SqlCommand("update login set
username=@username,password=@password where
id="+id,con);Cmd.Parameters.AddWithValue("@username",txtusername.T
ext);
cmd.Parameters.AddWithValue("@password",txtpassword.Text);
cmd.ExecuteNonQuery();
Response.Redirect("loginmaster.aspx");
}
}

[6] FeedbackMaster Page :-

FeedbackMaster.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/admin/icecream.master" AutoEventWireup="true"
CodeFile="feedbackmaster.aspx.cs"
Inherits="admin_feedbackmaster" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

Page 69
G-Fresh Ice- cream

<form id="Form1" runat="server" style="margin-left:600px;"


align="center">
<table align="center" style="border-left:4px;background-
color:black;border-top-left-radius:15px;
border-bottom-right-radius:15px;" >
<tr><asp:Label ID="Label1" runat="server"
Text="Feedback Master" Font-Size="50px"
ForeColor="#3399FF"
Font-Bold="True"
style="margin-left:220px;font-family:Lucida
Calligraphy;" ></asp:Label>
&nbsp;</tr></table>
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False" AutoGenerateDeleteButton="True"
onrowdeleting="GridView1_RowDeleting" BackColor="gray"
CellPadding="3"
Font-Size="X-Large" ForeColor="Black" Width="800px"
style="margin-left:45px;font-family:Garamond;"
Font-Bold="True">
<Columns>
<asp:TemplateField HeaderText="Id" Visible="false">
<ItemTemplate>
<asp:Label ID="lblid" runat="server" Text='<%#Eval("id") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Name">
<ItemTemplate>
<asp:Label ID="lblname" runat="server" Text='<
%#Eval("name") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="City">
<ItemTemplate>
<asp:Label ID="lblcity" runat="server" Text='<%#Eval("city")
%>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Mobileno">
<ItemTemplate>
<asp:Label ID="lblmobileno" runat="server" Text='<
%#Eval("mobileno") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Email">
<ItemTemplate>

Page 70
G-Fresh Ice- cream

<asp:Label ID="lblemail" runat="server" Text='<


%#Eval("email") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Feedback">
<ItemTemplate>
<asp:Label ID="lblfeedback" runat="server" Text='<
%#Eval("feedback") %>'>
</asp:Label>
</ItemTemplate> </asp:TemplateField>
</Columns></asp:GridView>
</table>
</form>
</asp:Content>

FeedbackMaster.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.Web.Configuration;
using System.Data;
using System.Data.SqlClient;
public partial class admin_feedbackmaster : System.Web.UI.Page
{
SqlConnection con = new SqlConnection();
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open(); if (Session["uname"] == null)
{
Response.Redirect("login.aspx");
}getdata();
}
public void getdata()
{
SqlDataAdapter da = new SqlDataAdapter("select * from
feedback", con);
DataTable dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
dt.Clear();
}

Page 71
G-Fresh Ice- cream

protected void GridView1_RowDeleting(object sender,


GridViewDeleteEventArgs e)
{
Label id =
(Label)GridView1.Rows[e.RowIndex].FindControl("lblid");
int id1 = Convert.ToInt32(id.Text);
cmd = new SqlCommand("delete from feedback where id=" +
id1, con);
cmd.ExecuteNonQuery();
getdata();
}
}

[7] RegistrationMaster Page :-

RegistrationMaster.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/admin/icecream.master" AutoEventWireup="true"
CodeFile="registrationmaster.aspx.cs"
Inherits="admin_registrationmaster" %>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="Form1" runat="server" style="margin-left:600px;"
align="center">
<table align="center" style="border-left:4px;background-
color:black;border-top-left-radius:15px;
border-bottom-right-radius:15px;>

Page 72
G-Fresh Ice- cream

<tr><asp:Label ID="lblreg" runat="server" Text="Registration


Master" Font-Size="50px"
ForeColor="#3399FF" Font-Bold="True"
style="margin-left:300px;font-family:Lucida
Calligraphy;" ></asp:Label></tr>
&nbsp;</table>
<asp:GridView ID="GridView1" runat="server" border="3px"
AutoGenerateColumns="False" AutoGenerateDeleteButton="True"
CellPadding="3" BackColor="gray" ForeColor="Black" Font-
Bold="True"
Font-Size="20px" Width="800px" style="margin-left:-
250px;font-family:Garamond;"
onrowdeleting="GridView1_RowDeleting">
<Columns>
<asp:TemplateField HeaderText="Id" Visible="false">
<ItemTemplate>
<asp:Label ID="lblid" runat="server" Text='<%#Eval("id") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Name">
<ItemTemplate>
<asp:Label ID="lblname" runat="server" Text='<%#Eval("name")
%>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Address">
<ItemTemplate>
<asp:Label ID="lbladdress" runat="server" Text='<
%#Eval("address") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="City">
<ItemTemplate>
<asp:Label ID="lblcity" runat="server" Text='<%#Eval("city")
%>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Pincode">
<ItemTemplate>
<asp:Label ID="lblpincode" runat="server" Text='<
%#Eval("pincode") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="State">

Page 73
G-Fresh Ice- cream

<ItemTemplate>
<asp:Label ID="lblstate" runat="server" Text='<
%#Eval("state") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Country">
<ItemTemplate>
<asp:Label ID="lblcountry" runat="server" Text='<
%#Eval("country") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Username">
<ItemTemplate>
<asp:Label ID="lbluname" runat="server" Text='<
%#Eval("username") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Password">
<ItemTemplate>
<asp:Label ID="lblpassword" runat="server" Text='<
%#Eval("password") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Gender">
<ItemTemplate>
<asp:Label ID="lblgender" runat="server" Text='<
%#Eval("gender") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Mobileno">
<ItemTemplate>
<asp:Label ID="lblmobileno" runat="server" Text='<
%#Eval("mobileno") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Email">
<ItemTemplate>
<asp:Label ID="lblemail" runat="server" Text='<
%#Eval("email") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>

Page 74
G-Fresh Ice- cream

<asp:TemplateField HeaderText="DOB">
<ItemTemplate>
<asp:Label ID="lbldob" runat="server" Text='<%#Eval("dob")
%>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</table>
</form>
</asp:Content>

RegistrationMaster.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.Web.Configuration;
using System.Data;
using System.Data.SqlClient;

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


{
SqlConnection con = new SqlConnection();
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
if (Session["uname"] == null)
{
Response.Redirect("login.aspx");
}
getdata();
}
public void getdata()
{
SqlDataAdapter da = new SqlDataAdapter("select * from
registration", con);
DataTable dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
dt.Clear();
}

Page 75
G-Fresh Ice- cream

protected void GridView1_RowEditing(object sender,


GridViewEditEventArgs e)
{

}
protected void GridView1_RowDeleting(object sender,
GridViewDeleteEventArgs e)
{
Label id =
(Label)GridView1.Rows[e.RowIndex].FindControl("lblid");
int id1 = Convert.ToInt32(id.Text);
cmd = new SqlCommand("delete from registration where id="
+ id1, con);
cmd.ExecuteNonQuery();
getdata();
}
}

[8] ProductMaster Page :-

ProductMaster.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/admin/icecream.master"
AutoEventWireup="trueCodeFile="productmaster.aspx.cs"
Inherits="admin_productmaster" %><asp:Content
ID="Content2"ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">

Page 76
G-Fresh Ice- cream

<form id="Form1" runat="server" style="margin-left:600px;"


align="center">
<table align="center" style="border-left:4px;background-
color:black;border-top-left-radius:15px;border-bottom-right-
radius:15px;" width="320">
<tr><asp:Label ID="Label1" runat="server" Text="Product Master"
Font-Size="50px"
ForeColor="#3399FF"Font-Bold="True"
style="margin-left:300px;font-family:Lucida Calligraphy;"
></asp:Label></tr></table>
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False"AutoGenerateDeleteButton="True"
AutoGenerateEditButton="True"
onrowdeleting="GridView1_RowDeleting"
onrowediting="GridView1_RowEditing" CellPadding="3"Font-Size="X-
Large" Font-Bold="True"
BackColor="gray" ForeColor="Black" Width="950px"
style="margin-left:18px;font-
family:Garamond;"><Columns>
<asp:TemplateField HeaderText="Id" Visible="false">
<ItemTemplate>
<asp:Label ID="lblid" runat="server" Text='<%#Eval("id") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Name">
<ItemTemplate>
<asp:Label ID="lblname" runat="server" Text='<%#Eval("name")
%>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField><asp:TemplateField HeaderText="Price">
<ItemTemplate>
<asp:Label ID="lblprice" runat="server" Text='<
%#Eval("price") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Image">
<ItemTemplate>
<asp:image ID="lblimage" runat="server" imageUrl='<
%#Eval("image","~/images/{0}") %>'
height="50px" Width="50px">
</asp:image>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Company">
<ItemTemplate>

Page 77
G-Fresh Ice- cream

<asp:Label ID="lblcompany" runat="server" Text='<


%#Eval("company") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Flavour">
<ItemTemplate>
<asp:Label ID="lblflavour" runat="server" Text='<
%#Eval("flavour") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Quantity">
<ItemTemplate>
<asp:Label ID="lblquantity" runat="server" Text='<
%#Eval("quantity") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Sugar">
<ItemTemplate>
<asp:Label ID="lblsugar" runat="server" Text='<
%#Eval("sugar") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField></Columns>
</asp:GridView>
<br /> <a href="product.aspx" style="border-style: groove;
border-width: medium; font-family: 'Lucida Calligraphy'; font-
size: xx-large;color:#060DF2;font-weight: 200; font-style:
italic;margin-left:338px;margin-top:900px;
font-variant: normal; background-color:pink; visibility: visible;
overflow:
visible; text-decoration: blink;">Inset New
Product</a></form></asp:Content>

ProductMaster.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;
using System.Web.Configuration;
public partial class admin_productmaster : System.Web.UI.Page
{
SqlConnection con = new SqlConnection();

Page 78
G-Fresh Ice- cream

SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
if (Session["uname"] == null)
{
Response.Redirect("login.aspx");
}
getdata();
}
public void getdata()
{
SqlDataAdapter da = new SqlDataAdapter("select * from
product", con);
DataTable dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
dt.Clear();
}
protected void GridView1_RowDeleting(object sender,
GridViewDeleteEventArgs e)
{
Label id = (Label)GridView1.Rows[e.RowIndex].FindControl("lblid");
int id1 = Convert.ToInt32(id.Text);
cmd = new SqlCommand("delete from product where id=" +
id1, con);
cmd.ExecuteNonQuery();
getdata();
}
protected void GridView1_RowEditing(object sender,
GridViewEditEventArgs e)
{
Label id =
(Label)GridView1.Rows[e.NewEditIndex].FindControl("lblid");
int id1 = Convert.ToInt32(id.Text);
Response.Redirect("productedit.aspx?id=" + id1);
}
}
[9] ProductEdit Page :-

Page 79
G-Fresh Ice- cream

ProductEdit.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/admin/icecream.master" AutoEventWireup="true"
CodeFile="productedit.aspx.cs" Inherits="admin_productedit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head"
Runat="Server">
<style type="text/css">
.style1
{
width: 191px;
}
</style>
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="Form1" align="center" runat="server">
<table style="margin-left:170px;padding-left:-
100px;border-top-left-radius:35px;border-bottom-right-
radius:35px;background:black;">
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr style="width:20">
<asp:Label ID="Label1" runat="server" Text="Change
The Product Details" style="margin-left:130px;font-family:Lucida
Calligraphy;"Font-Size="40Px" ForeColor="#3399FF" Font-Bold="True"
></asp:Label>
</tr><br /><br /><tr><td>
<asp:Label ID="lblid" runat="server" Text="Id" Font-Size="XX-
Large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label></td><td>

Page 80
G-Fresh Ice- cream

<asp:TextBox ID="txtid" runat="server" style="margin-


left:70px;"></asp:TextBox></td>
<td><asp:RequiredFieldValidator
ID="RequiredFieldValidator4"
runat="server" ControlToValidate ="txtid"
ErrorMessage="Please Enter id" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator> </td></tr>
<tr><td>
<asp:Label ID="Label2" runat="server" Text="Name" Font-
Size="XX-Large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label>
</td><td>
<asp:TextBox ID="txtnm" runat="server" style="margin-
left:70px;"></asp:TextBox></td>
<td><asp:RequiredFieldValidator ID="rfvnm"
runat="server" ControlToValidate ="txtnm"
ErrorMessage="Please Enter name" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator> </td></tr>
<tr><td class="style1">
<asp:Label ID="Label4" runat="server" Text="Price" Font-
Size="XX-Large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label></td><td>
<asp:TextBox ID="txtprice" runat="server"
style="margin-left:25px"></asp:TextBox>
</td><td><asp:RequiredFieldValidator
ID="RequiredFieldValidator1"
runat="server" ControlToValidate ="txtprice"
ErrorMessage="Please Enter price" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator> </td></tr>
<tr><td class="style1">
<asp:Label ID="Label5" runat="server" Text="Image" Font-
Size="XX-Large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label></td><td>
<asp:FileUpload ID="FileUpload1" runat="server" style="margin-
left:3px;" ForeColor="white" />
</td></tr>
<tr><td class="style1">
<asp:Label ID="Label6" runat="server" Text="Company" Font-
Size="XX-Large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label></td><td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

Page 81
G-Fresh Ice- cream

<asp:DropDownList ID="DropDownList1" runat="server"


style="margin-left:50px;"
Font-Size="Large">
<asp:ListItem>Amul</asp:ListItem>
<asp:ListItem>Arun</asp:ListItem>
<asp:ListItem>Cornatto</asp:ListItem>
<asp:ListItem>Havmor</asp:ListItem>
<asp:ListItem>Momai</asp:ListItem>
<asp:ListItem>Sheetal</asp:ListItem>
<asp:ListItem>Vadilal</asp:ListItem>
</asp:DropDownList>
</td></tr>
<tr><td class="style1">
<asp:Label ID="Label7" runat="server" Text="Flavour" Font-
Size="XX-Large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label></td><td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="txtflavour" runat="server" style="margin-
left: 43px"></asp:TextBox>
</td><td><asp:RequiredFieldValidator
ID="RequiredFieldValidator2"
runat="server" ControlToValidate ="txtflavour"
ErrorMessage="Please Enter flavour" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator> </td></tr><tr></tr>
<tr><td class="style1">
<asp:Label ID="Label8" runat="server" Text="Quantity"
Font-Size="XX-Large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label></td><td>
<asp:TextBox ID="txtquantity" runat="server"
style="margin-left:68px"></asp:TextBox>
</td><td><asp:RequiredFieldValidator
ID="RequiredFieldValidator3"
runat="server" ControlToValidate ="txtquantity"
ErrorMessage="Please Enter quantity" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator> </td></tr>
<tr><td class="style1">
<asp:Label ID="Label9" runat="server" Text="Sugar" Font-
Size="XX-Large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label></td><td>
<asp:RadioButton ID="rbtsugar" runat="server" Text="With
Sugar"
Font-Size="XX-Large" ForeColor="White" style="margin-
left:35px;font-family:Monotype Corsiva;" GroupName="rb2" /><br />

Page 82
G-Fresh Ice- cream

<asp:RadioButton ID="rbtwithoutsugar" runat="server"


Text="Without Sugar"
Font-Size="XX-Large" ForeColor="White" style="margin-
left:71px;font-family:Monotype Corsiva;" GroupName="rb2" />
</td></tr>
<tr><td class="style1"><asp:Button ID="btnedit" runat="server"
Text="Update" BackColor="#33CCFF" Font-Size="X-Large"
style="margin-left:100px;margin-top:30px;border-top-left-
radius:15px;padding-right:25px;padding-left:25px;border-bottom-
right-radius:15px;" onclick="btnedit_Click"
class="button1" /></td><td>
<asp:Button ID="btncancel" runat="server" Text="Cancel"
BackColor="#33CCFF"
Font-Size="X-Large" style="margin-left:50px;margin-
top:30px;border-top-left-radius:15px;
border-bottom-right-radius:15px;"/>
&nbsp;</td></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></
tr><tr></tr><tr></tr><tr></tr><tr></tr>
</table>
</form>
</asp:Content>

ProductEdit.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.SqlClient;
using System.Web.Configuration;
using System.Data;

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


{
SqlConnection con = new SqlConnection();
SqlCommand cmd;

protected void Page_Load(object sender, EventArgs e)


{
con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
if (Session["uname"] == null)
{
Response.Redirect("login.aspx");
}
if (!IsPostBack)
{

Page 83
G-Fresh Ice- cream

int id = Convert.ToInt32(Request.QueryString["id"]);
SqlDataAdapter da = new SqlDataAdapter("select * from
product where id=" + id, con);
DataTable dt = new DataTable();
da.Fill(dt);
txtid.Text = dt.Rows[0][0].ToString();
txtnm.Text = dt.Rows[0][1].ToString();
txtprice.Text = dt.Rows[0][2].ToString();
DropDownList1.Text = dt.Rows[0][4].ToString();
txtflavour.Text = dt.Rows[0][5].ToString();
txtquantity.Text = dt.Rows[0][6].ToString();
}
}
protected void btnedit_Click(object sender, EventArgs e)
{
int id = Convert.ToInt32(Request.QueryString["id"]);
cmd = new SqlCommand("update product set
name=@name,price=@price,image=@image,company=@company,flavour=@fla
vour,quantity=@quantity,sugar=@sugar where id=" + id, con);
cmd.Parameters.AddWithValue("@name", txtnm.Text);
cmd.Parameters.AddWithValue("@price", txtprice.Text);
cmd.Parameters.AddWithValue("@image",
FileUpload1.FileName);
String path = Server.MapPath("~/images/");
FileUpload1.SaveAs(path + FileUpload1.FileName);
cmd.Parameters.AddWithValue("@company",
DropDownList1.Text);
cmd.Parameters.AddWithValue("@flavour", txtflavour.Text);
cmd.Parameters.AddWithValue("@quantity",
txtquantity.Text);
if (rbtsugar.Checked == true)
{
cmd.Parameters.AddWithValue("@sugar", rbtsugar.Text);
}
else
{
cmd.Parameters.AddWithValue("@sugar", rbtwithoutsugar.Text);
}
cmd.ExecuteNonQuery();
Response.Redirect("productmaster.aspx");
}
protected void btncancel_Click(object sender, EventArgs e)
{
txtnm.Text = "";
txtprice.Text = "";
DropDownList1.Text = "";
txtflavour.Text = "";
txtquantity.Text = "";
}}

Page 84
G-Fresh Ice- cream

[10] Product Page :-

Product.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/admin/icecream.master" AutoEventWireup="true"
CodeFile="product.aspx.cs" Inherits="admin_product" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head"


Runat="Server">
<style type="text/css">
.style1
{
width: 191px;
}
</style>
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="Form1" align="center" runat="server">
<table style="margin-left:170px;padding-left:-100px;
border-top-left-radius:35px;border-bottom-right-
radius:35px;background:black;">

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr style="width:20">
<asp:Label ID="Label1" runat="server" Text="Product
Details" style="margin-left:220px;font-family:Lucida Calligraphy;"

Page 85
G-Fresh Ice- cream

Font-Size="50Px" ForeColor="#3399FF" Font-Bold="True"


></asp:Label>
&nbsp;</tr><br /><br />
<tr><td>
<asp:Label ID="Label2" runat="server" Text="Name" Font-Size="XX-
large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>
<asp:TextBox ID="txtnm" runat="server" style="margin-
left:67px;"></asp:TextBox></td>
<td><asp:RequiredFieldValidator ID="rfvnm"
runat="server" ControlToValidate ="txtnm"
ErrorMessage="Please Enter name" Font-Bold="True"
ForeColor="red">

</asp:RequiredFieldValidator> </td></tr>
<tr><td class="style1">
<asp:Label ID="Label4" runat="server" Text="Price" Font-
Size="XX-large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label></td><td>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="txtprice" runat="server" style="margin-
left:20px"></asp:TextBox>
</td><td><asp:RequiredFieldValidator
ID="RequiredFieldValidator1"
runat="server" ControlToValidate ="txtprice"
ErrorMessage="Please Enter price" Font-Bold="True"
ForeColor="red">

</asp:RequiredFieldValidator> </td></tr>
<tr><td class="style1">
<asp:Label ID="Label5" runat="server" Text="Image" Font-
Size="XX-large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label></td><td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:FileUpload ID="FileUpload1" runat="server"
style="margin-left:-3px;" ForeColor="White" />
</td></tr>
<tr><td class="style1">
<asp:Label ID="Label6" runat="server" Text="Company" Font-
Size="XX-large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label></td><td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

Page 86
G-Fresh Ice- cream

<asp:DropDownList ID="DropDownList1" runat="server"


style="margin-left:45px;"
Font-Size="Large">
<asp:ListItem>Amul</asp:ListItem>
<asp:ListItem>Arun</asp:ListItem>
<asp:ListItem>Cornatto</asp:ListItem>
<asp:ListItem>Havmor</asp:ListItem>
<asp:ListItem>Momai</asp:ListItem>
<asp:ListItem>Sheetal</asp:ListItem>
<asp:ListItem>Vadilal</asp:ListItem>
</asp:DropDownList>
</td></tr>
<tr><td class="style1">
<asp:Label ID="Label7" runat="server" Text="Flavour" Font-
Size="XX-Large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label></td><td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox ID="txtflavour" runat="server" style="margin-
left: 35px"></asp:TextBox>
</td><td><asp:RequiredFieldValidator
ID="RequiredFieldValidator2"
runat="server" ControlToValidate ="txtflavour"
ErrorMessage="Please Enter flavour" Font-Bold="True"
ForeColor="red">

</asp:RequiredFieldValidator> </td></tr><tr></tr>
<tr><td class="style1">
<asp:Label ID="Label8" runat="server" Text="Quantity"
Font-Size="XX-Large"
ForeColor="White" style="margin-left:120px;font-
family:Monotype Corsiva;"></asp:Label></td><td>
&nbsp;
<asp:TextBox ID="txtquantity" runat="server"
style="margin-left:60px"></asp:TextBox>
</td><td><asp:RequiredFieldValidator
ID="RequiredFieldValidator3"
runat="server" ControlToValidate ="txtquantity"
ErrorMessage="Please Enter quantity" Font-Bold="True"
ForeColor="red">

</asp:RequiredFieldValidator> </td></tr>
<tr><td class="style1">
<asp:Label ID="Label9" runat="server" Text="Sugar" Font-
Size="XX-large"
ForeColor="White" style="margin-left:130px;font-
family:Monotype Corsiva;"></asp:Label></td><td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

Page 87
G-Fresh Ice- cream

<asp:RadioButton ID="rbtsugar" runat="server" Text="With


Sugar"
Font-Size="XX-large" ForeColor="White" style="margin-
left:35px;font-family:Monotype Corsiva;" GroupName="rb2" /><br />
<asp:RadioButton ID="rbtwithoutsugar" runat="server"
Text="Without Sugar"
Font-Size="XX-large" ForeColor="White" style="margin-
left:71px;font-family:Monotype Corsiva;" GroupName="rb2" />
</td></tr>
<tr><td class="style1">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="btnok" runat="server" Text="Ok"
BackColor="#33CCFF" Font-Size="xx-large"

style="margin-left:100px;margin-top:30px;border-top-
left-radius:15px;padding-right:25px;padding-left:25px;font-
family:Algerian;border-bottom-right-radius:15px;"
class="button1" onclick="btnok_Click" /></td><td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="btncancel" runat="server"
onClick="btncancel_Click" Text="Cancel" BackColor="#33CCFF"
Font-Size="xx-large" style="margin-left:50px;margin-
top:30px;font-family:Algerian;border-top-left-radius:15px;border-
bottom-right-radius:15px;"/>

&nbsp;</td></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr><
/tr><tr></tr><tr></tr><tr></tr>
</table>
</form>

</asp:Content>

Product.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.SqlClient;
using System.Web.Configuration;

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


{
SqlConnection con = new SqlConnection();
SqlCommand cmd;

protected void Page_Load(object sender, EventArgs e)


{

Page 88
G-Fresh Ice- cream

con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
if (Session["uname"] == null)
{
Response.Redirect("login.aspx");
}
}

protected void btnok_Click(object sender, EventArgs e)


{
cmd=new SqlCommand("insert into product
values(@name,@price,@image,@company,@flavour,@quantity,@sugar)",co
n);
cmd.Parameters.AddWithValue("@name", txtnm.Text);
cmd.Parameters.AddWithValue("@price", txtprice.Text);
cmd.Parameters.AddWithValue("@image",
FileUpload1.FileName);
String path=Server.MapPath("~/images/");
FileUpload1.SaveAs(path+FileUpload1.FileName);

cmd.Parameters.AddWithValue("@company",DropDownList1.Text);
cmd.Parameters.AddWithValue("@flavour", txtflavour.Text);
cmd.Parameters.AddWithValue("@quantity",
txtquantity.Text);
if(rbtsugar.Checked==true)
{
cmd.Parameters.AddWithValue("@sugar",rbtsugar .Text);
}
else
{

cmd.Parameters.AddWithValue("@sugar",rbtwithoutsugar .Text);
}
cmd.ExecuteNonQuery();
con.Close();
}

protected void btncancel_Click(object sender, EventArgs e)


{
txtnm.Text = "";
txtprice.Text = "";
DropDownList1.Text = "";
txtflavour.Text = "";
txtquantity.Text = "";
}}
[11] Logout.aspx.cs
using System;

Page 89
G-Fresh Ice- cream

using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

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


{
protected void Page_Load(object sender, EventArgs e)
{
Session.Abandon();
Response.Redirect("login.aspx");
}

CLIENT SIDE
[1] Home Page :

Home.aspx
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="home.aspx.cs" Inherits="client_home" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta charset="utf-8">

Page 90
G-Fresh Ice- cream

<meta name="viewport" content="width=device-width, initial-


scale=1">
<title>G-Fresh Ice-Cream</title>
<meta name="description" content="Free Bootstrap Theme by
BootstrapMade.com">
<meta name="keywords" content="free website templates, free
bootstrap themes, free template, free bootstrap, free website
template">
<link rel="stylesheet" type="text/css"
href="https://fonts.googleapis.com/css?family=Satisfy|Bree+Serif|
Candal|PT+Sans">
<link rel="stylesheet" type="text/css" href="css/font-
awesome.min.css">
<link rel="stylesheet" type="text/css"
href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/menu.css">
<link rel="Stylesheet" type="text/css" href="home.css" />
<link href="vendor/bootstrap/css/bootstrap.min.css"
rel="stylesheet">
</head>
<body>
<form id="form1" runat="server">
<div>
<section id="banner">
<div class="bg-color">
<header id="header">
<div class="container">
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn"
onclick="closeNav()">&times;</a>
<a href="#about">Home</a>
<asp:DropDownList runat="server" ID="ddl"
title="Company" style="background-color:#111;
color:white; width:160px;height:50px; border:none;
font-size:x-large;margin-left:25px;"
AutoPostBack="True"

onselectedindexchanged="ddl_SelectedIndexChanged">
<asp:ListItem >Company</asp:ListItem>
<asp:ListItem Text="amul">Amul</asp:ListItem>
<asp:ListItem
Text="vadilal">Vadilal</asp:ListItem>
<asp:ListItem Text="havmor">Havmor</asp:ListItem>
<asp:ListItem
Text="sheetal">Sheetal</asp:ListItem>
<asp:ListItem Text="arun">Arun</asp:ListItem>
<asp:ListItem
Text="cornetto">Cornetto</asp:ListItem>

Page 91
G-Fresh Ice- cream

<asp:ListItem Text="momai">Momai</asp:ListItem>

</asp:DropDownList>.
<asp:DropDownList runat="server" ID="DropDownList1"
title="Company" style="background-color:#111;
color:white; width:160px;height:50px; border:none;
font-size:x-large;margin-left:25px;"
AutoPostBack="True"

onselectedindexchanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem>Product</asp:ListItem>
<asp:ListItem Text="candy">Candy</asp:ListItem>
<asp:ListItem Text="cone">Cone</asp:ListItem>
<asp:ListItem Text="cup">Cup</asp:ListItem>
<asp:ListItem Text="cookie">Cookie</asp:ListItem>
<asp:ListItem
Text="familypack">FamilyPack</asp:ListItem>
<asp:ListItem
Text="sandwich">Sandwich</asp:ListItem>

</asp:DropDownList>
</ul>
<a href="contactus.aspx">Contact us</a>
<a href="feedback.aspx">Feedback</a>
<a href="logout.aspx">Logout</a>
</div>
</div>
</header>
<div class="container">
<div class="row">
<div class="inner text-center">
<h1 class="logo-name">G-fresh Ice-cream</h1>
<h2>Icecream To fit your lifestyle & health.</h2>
<p>Refresh your Mood With Our Diffrernt Icecream</p>
</div>
</div>
</div>
</div>
</section>
<br />
<div class="widget" style="background-color:Gray">
<h1 style="font-size:70px;color:Black;font-family:Harlow Solid
Italic;"><i>G-fresh Ice-cream</i></h1>
<p style="font-size:xx-large;font-family:Harlow Solid Italic;">
Ice cream is a frozen dessert made from cream,
with added flavors and sweeteners.
This mixture is quickly frozen while it is stirred,
so that large ice crystals do not form.

Page 92
G-Fresh Ice- cream

Some ice cream is made with carrageenan,


a gum found in seaweed so that it is not sticky.
Vanilla seems to be the most popular flavor, with chocolate
coming in second,
butter becan coming in third and strawberry coming in fourth.
</p><br />
<%--<img src="images/cup2.png" alt="" title="" style="margin-
left:250px;" />--%>
<img src="images/i17.png" alt="" title="" style="margin-
left:250px;" /></div>
<footer class="footer text-center">
<div class="footer-top">
<div class="row">
<div class="col-md-offset-3 col-md-6 text-center">
<div class="widget">
<h4 class="widget-title">G-fresh Ice-cream</h4>
<address>Near BAPS Gate,under ramdev dyning
hall<br>Junagadh, 362001</address>
<h3 style="margin-left:50px; font-size:xx-large;font-
family:Monotype Corsiva">Developed By:-Dhruvi Vachhani</h3><br>
<h3 style="margin-left:130px;margin-top:-
20px;font-size:xx-large;font-family:Monotype Corsiva"">Shreya
Bhalodiya</h3><br>
<h3 style="margin-left:160px;margin-top:-
20px;font-size:xx-large;font-family:Monotype Corsiva"">Ishani
Kasondara</h3>
</div>
</div>
</div>
</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/custom.js"></script>
<script src="contactform/contactform.js"></script>
</div>
</form>
</body></html>

Home.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class client_home : System.Web.UI.Page
{

Page 93
G-Fresh Ice- cream

protected void Page_Load(object sender, EventArgs e)


{
}
protected void DropDownList1_SelectedIndexChanged(object
sender, EventArgs e)
{
if (DropDownList1.Text == "Candy")
{
Response.Redirect("candy.aspx");
}
else if (DropDownList1.Text == "Cone")
{
Response.Redirect("cone.aspx");
}
else if (DropDownList1.Text == "Cup")
{
Response.Redirect("cup.aspx");
}
else if (DropDownList1.Text == "Cookie")
{
Response.Redirect("cookie.aspx");
}
else if (DropDownList1.Text == "Cone")
{
Response.Redirect("cone.aspx");
}
else if (DropDownList1.Text == "FamilyPack")
{
Response.Redirect("familypack.aspx");
}
else if (DropDownList1.Text == "Sandwich")
{
Response.Redirect("sandwich.aspx");
}

}
protected void ddl_SelectedIndexChanged(object sender, EventArgs
e)
{
if (ddl.Text == "Amul")
{
Response.Redirect("amul.aspx");
}
else if (ddl.Text == "Vadilal")
{
Response.Redirect("vadilal.aspx");
}
else if (ddl.Text == "Havmor")
{

Page 94
G-Fresh Ice- cream

Response.Redirect("havmor.aspx");
}
else if (ddl.Text == "Sheetal")
{
Response.Redirect("sheetal.aspx");
}
else if (ddl.Text == "Arun")
{
Response.Redirect("arun.aspx");
}

else if (ddl.Text == "Momai")


{
Response.Redirect("momai.aspx");
}

else if (ddl.Text == "Cornetto")


{
Response.Redirect("cornetto.aspx");
}
}
}
[2] Login Page :-

Login.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/client/client.master" AutoEventWireup="true"
CodeFile="login.aspx.cs" Inherits="client_login" %>

Page 95
G-Fresh Ice- cream

<asp:Content ID="Content1" ContentPlaceHolderID="head"


Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="Form1" runat="server" style="margin-left:200px;"
align="center">
<asp:Label ID="Label1" runat="server" Text="Login" Font-
Size="50px"
ForeColor="#3399FF" Width="600px"
Font-Bold="True"
style="margin-left:410px;margin-top:70px;font-
family:Lucida Calligraphy;" ></asp:Label>
<br /><br />
<table align="center" style="border-left:4px;
border-top-left-radius:15px;
border-bottom-right-radius:15px;">
<tr>
<td> <img src="images/uname1.jpg" alt="" title="" style="margin-
left:250px;" /></td>
<td> <asp:Label ID="Label2" runat="server" Text="Username" Font-
Size="XX-Large"
ForeColor="White" style="font-family:Monotype
Corsiva;"></asp:Label></td>
<td><asp:TextBox ID="txtusername" runat="server" Font-
Size="Large"
style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvunm"
runat="server" ControlToValidate ="txtusername"
ErrorMessage="Please Enter username" Font-Bold="True"
ForeColor="red">

</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td><img src="images/password.jpg" alt="" title=""
style="margin-left:250px;"/></td>
<td><asp:Label ID="Label3" runat="server" Text="Password" Font-
Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;"></asp:Label></td>
<td><asp:TextBox ID="txtpassword" runat="server" Font-
Size="Large"
TextMode="Password"
style="border-top-left-radius:15px;padding-left:10px;

Page 96
G-Fresh Ice- cream

border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator1"
runat="server" ControlToValidate ="txtpassword"
ErrorMessage="Please Enter password" Font-Bold="True"
ForeColor="red">

</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="valPassword" runat="server"
ControlToValidate="txtpassword"
ForeColor="red"
ErrorMessage="password must be within 6 to 15"
ValidationExpression="^([a-z,A-Z,0-9@#$%^&+=*]
{6,15})$"

ValidationGroup="RegisterCheck" />
</td>
</tr>
</table>
<asp:Button ID="btnok" runat="server" Text="Login"
BackColor="#99CCFF"
Font-Size="X-Large"
style="font-family:Algerian;
margin-top:20px;margin-left:360px;
border-top-left-radius:15px;border-bottom-right-
radius:15px;border-top-right-radius:15px;border-bottom-left-
radius:15px;" onclick="btnok_Click"
/>
&nbsp;&nbsp;<asp:Button ID="btncancel" runat="server"
Text="Cancel"
BackColor="#99CCFF" Font-Size="X-Large"
style="margin-top:20px;font-family:Algerian;border-top-
left-radius:15px;margin-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;border-bottom-left-radius:15px;"
onclick="btncancel_Click" />
<br /><br /><br /><br />
<a id="A4" href="registration.aspx"><img src="images/create2.jpg"
alt="" title="" style="margin-left:300px;" /></a>
</form>
</asp:Content>

Login.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

Page 97
G-Fresh Ice- cream

using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Web.Configuration;
using System.Data;

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


{
SqlConnection con = new SqlConnection();
SqlCommand cmd;

protected void Page_Load(object sender, EventArgs e)


{
con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
}
protected void btnok_Click(object sender, EventArgs e)
{
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter("select * from
registration where username='" + txtusername.Text + "' and
password='" + txtpassword.Text + "'", con);
da.Fill(dt);
if (dt.Rows.Count == 1)
{
if (dt.Rows[0][7].ToString() == txtusername.Text &&
dt.Rows[0][8].ToString() == txtpassword.Text)
{
Session["id"] = dt.Rows[0][0].ToString();
Session["uname"] = dt.Rows[0][1].ToString();
Response.Redirect("home.aspx");
}
}
else
{
Response.Write("<script>alert('your username or
password is wrong');window.location.href='login.aspx';</script>");

}
protected void btncancel_Click(object sender, EventArgs e)
{
txtusername.Text = "";
txtpassword.Text = "";
}
}

Page 98
G-Fresh Ice- cream

[3] Company Page :-

Amul.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/client/client.master" AutoEventWireup="true"
CodeFile="amul.aspx.cs" Inherits="client_amul" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="Form1" runat="server" style="margin-left:40px;margin-
top:100px;" align="center">
<br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br />
<asp:Label ID="Label1" runat="server" Text="Product of
Amul" Font-Size="50px"
ForeColor="#3399FF"
Font-Bold="True"
style="margin-left:160px;font-family:Lucida
Calligraphy;" ></asp:Label>

<table style="margin-top:60px;margin-left:-100px;">
<tr>
<th></th>
<th style="font-size:x-
large";>&nbsp;&nbsp;&nbsp;&nbsp;Name</th>
<th style="font-size:x-
large";>&nbsp;&nbsp;&nbsp;&nbsp;Price</th>
<th style="font-size:x-large";>&nbsp;&nbsp;&nbsp;Image</th>

Page 99
G-Fresh Ice- cream

<th style="font-size:x-large";>&nbsp;&nbsp;&nbsp;Company</th>
<th style="font-size:x-
large";>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flavour</th>
<th style="font-size:x-large";>Quantity</th>
<th style="font-size:x-
large";>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sugar</th>
<th style="font-size:x-large;"> Buy</th>
</tr>
<asp:DataList runat="server" ID="datalist1" ItemStyle-
BackColor="#999999"
BackColor="#BF4066" Font-Bold="True" Font-Italic="False"
Font-Size="X-Large" Width="1080" style="margin-left:-100px;
background-image:url('images/bk.jpg');color:Black;">
<ItemTemplate>
<tr><td>
<asp:Label ID="lblid" runat="server" Text='<%#Eval("id") %>'
Visible="false">
</asp:Label>
</td><td>
<asp:Label ID="lblname" runat="server" Text='<%#Eval("name")
%>'>
</asp:Label>
</td><td>

<asp:Label ID="lblprice" runat="server" Text='<
%#Eval("price") %>'>
</asp:Label>
</td><td></td><td></td><td>
<asp:image ID="lblimage" runat="server" imageUrl='<
%#Eval("image","~/images/{0}") %>'
height="100px" Width="100px">
</asp:image>
</td><td align="center">
<asp:Label ID="lblcompany" runat="server" Text='<
%#Eval("company") %>'>
</asp:Label>
</td><td align="center">
<asp:Label ID="lblflavour" runat="server" Text='<
%#Eval("flavour") %>'>
</asp:Label>
</td><td>
<asp:Label ID="lblquantity" runat="server" Text='<
%#Eval("quantity") %>'>
</asp:Label>
</td><td>
<asp:Label ID="lblsugar" runat="server" Text='<
%#Eval("sugar") %>'>
</asp:Label>
</td>

Page 100
G-Fresh Ice- cream

<td>
<asp:HyperLink ID="hl1" runat="server" NavigateUrl='<
%#Eval("id","addtocart.aspx?id={0}") %>'
style="border-style: groove; border-width: medium;
font-family: 'Lucida Calligraphy';border-top-left-
radius:25px;border-bottom-right
radius:25px; border-top-right-radius:25px; border-bottom-left-
radius:25px; font-size: xx-large;color:#060DF2;font-weight: 200;
font-style: italic; font-variant: normal; background-color:red;
visibility: visible; overflow: visible; text-decoration:
blink;">Purchase</asp:HyperLink>
</td></tr>
</ItemTemplate>
</asp:DataList> </table>
</form>
</asp:Content>

Amul.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;
using System.Web.Configuration;
public partial class client_amul : System.Web.UI.Page
{
SqlConnection con = new SqlConnection();
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
getdata();}
public void getdata(){
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter("select * from
product where company='Amul'", con);
da.Fill(dt);datalist1.DataSource = dt;
datalist1.DataBind();
dt.Clear();
}}

Page 101
G-Fresh Ice- cream

[4] Product Page :-

cone.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/client/client.master" AutoEventWireup="true"
CodeFile="cone.aspx.cs" Inherits="client_cone" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="Form1" runat="server" style="margin-left:40px;margin-
top:100px;" align="center">
<br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br />
<asp:Label ID="Label1" runat="server" Text="Creami Cone"
Font-Size="50px"
ForeColor="#3399FF"
Font-Bold="True"
style="margin-left:260px;font-family:Lucida
Calligraphy;margin-top:1000px">
</asp:Label>
<table style="margin-top:60px;margin-left:-100px;">
<tr>
<th></th>
<th style="font-size:x-large";>Name</th>
<th style="font-size:x-large";>&nbsp;Price</th>
<th style="font-size:x-large";>Company</th>
<th style="font-size:x-large";>Flavour</th>

Page 102
G-Fresh Ice- cream

<th style="font-size:x-large";>Quantity</th>
<th style="font-size:x-large";>Sugar</th>
<th style="font-size:x-large;"> Buy</th>
</tr>
<asp:DataList runat="server" ID="datalist1" ItemStyle-
BackColor="#999999" BackColor="#BF4066" Font-Bold="True" Font-
Italic="False"
Font-Size="X-Large" Width="1080" style="margin-left:-100px;
background-image:url('images/bk.jpg');color:Black;">
<ItemTemplate>
<tr><td>
<asp:Label ID="lblid" runat="server" Text='<%#Eval("id") %>'
Visible="false">
</asp:Label>
</td><td>
<asp:Label ID="lblname" runat="server" Text='<%#Eval("name")
%>'>
</asp:Label>
</td><td style="margin-left:190px;">

<asp:Label ID="lblprice" runat="server" Text='<
%#Eval("price") %>'>
</asp:Label>
</td><td>
<asp:image ID="lblimage" runat="server" imageUrl='<
%#Eval("image","~/images/{0}") %>'
height="100px" Width="100px">
</asp:image>
</td><td align="center">
<asp:Label ID="lblcompany" runat="server" Text='<
%#Eval("company") %>'>
</asp:Label>
</td><td align="center">
<asp:Label ID="lblflavour" runat="server" Text='<
%#Eval("flavour") %>'>
</asp:Label>
</td><td>
<asp:Label ID="lblquantity" runat="server" Text='<
%#Eval("quantity") %>'>
</asp:Label>
</td><td>
<asp:Label ID="lblsugar" runat="server" Text='<
%#Eval("sugar") %>'>
</asp:Label>
</td>
<td>
<asp:HyperLink ID="hl1" runat="server" NavigateUrl='<
%#Eval("id","addtocart.aspx?id={0}") %>'
style="border-style: groove; border-width: medium;

Page 103
G-Fresh Ice- cream

font-family: 'Lucida Calligraphy';border-top-left-


radius:25px;
border-bottom-right-radius:25px; border-top-right-
radius:25px; border-bottom-left-radius:25px;
font-size: xx-large;color:#060DF2;
font-weight: 200; font-style: italic; font-variant:
normal; background-color:red; visibility: visible;
overflow: visible; text-decoration:
blink;">Purchase</asp:HyperLink>
</td></tr>

</ItemTemplate>
</asp:DataList> </table>
</form>
</asp:Content>

cone.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;
using System.Web.Configuration;

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


{
SqlConnection con = new SqlConnection();
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
getdata();
}
public void getdata()
{
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter("select * from
product where name='Cone'", con);
da.Fill(dt);
datalist1.DataSource = dt;
datalist1.DataBind();
dt.Clear();
}
}

Page 104
G-Fresh Ice- cream

[5] AddToCart Page :-

AddToCart.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/client/client.master" AutoEventWireup="true"
CodeFile="addtocart.aspx.cs" Inherits="client_addtocart" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form align="center" runat="server" >
<br /><br /><br />
<table style="margin-left:180px;padding-left:-100px;border-top-
left-radius:35px;
border-bottom-right-radius:35px; border-bottom-left-
radius:35px;
border-top-right-radius:35px;margin-top:30px; background-
image:url('images/1.jpg');"
width="650px">
<tr>
<asp:Label ID="Label1" runat="server" Text="Add To Cart"
style="margin-left:100px;font-family:Lucida
Calligraphy;margin-top:1000px;"
Font-Size="40Px" ForeColor="#3399FF" Font-
Bold="True"></asp:Label>
</tr>
<tr><td>
<asp:image ID="img" runat="server" height="200px" Width="200px"
style="margin-left:180px;">
</asp:image>

Page 105
G-Fresh Ice- cream

</td></tr>

<tr><td><asp:Label ID="Label2" runat="server" Text="Name" Font-


Size="40Px" Bold="True"
ForeColor="black" style="font-family:Monotype
Corsiva;"></asp:Label>
</td><td>
<asp:TextBox ID="txtnm" runat="server" style="margin-left:-110px;
border-top-left-radius:35px;
border-bottom-right-radius:35px; border-bottom-left-
radius:35px;
border-top-right-radius:35px;padding-left:20px;" Font-
Size="20Px"></asp:TextBox>
</td>
</tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr><td>
<asp:Label ID="Label4" runat="server" Text="Price" Font-
Size="40Px" Bold="True"
ForeColor="black" style="font-family:Monotype
Corsiva;"></asp:Label>
</td><td>
<asp:TextBox ID="txtprice" runat="server" style="margin-left:-
110px;
border-top-left-radius:35px;
border-bottom-right-radius:35px; border-bottom-left-
radius:35px;
border-top-right-radius:35px;padding-left:20px;" Font-
Size="20Px"></asp:TextBox>
</td></tr>
<tr></tr><tr></tr><tr></tr>
<tr><td>
<asp:Label ID="Label8" runat="server" Text="Quantity"
Font-Size="40Px" Bold="True"
ForeColor="black" style="font-family:Monotype
Corsiva;"></asp:Label>
</td><td>
<asp:TextBox ID="txtq" runat="server" AutoPostBack="True"
ontextchanged="txtq_TextChanged" style="margin-
left:-110px;
border-top-left-radius:35px;
border-bottom-right-radius:35px; border-bottom-left-
radius:35px;
border-top-right-radius:35px;padding-left:20px;" Font-
Size="20Px"></asp:TextBox>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click"
Text="Calculate" style="border-top-left-
radius:25px;background-color:Black;

Page 106
G-Fresh Ice- cream

border-bottom-right-radius:25px;border-bottom-left-
radius:25px;border-top-right-radius:25px;" BackColor="#0066FF"
Height="40" ForeColor="White" Width="80" />
</td></tr><tr><td>
<asp:Label ID="Label9" runat="server" Text="Total" Font-
Size="40Px" Bold="True"
ForeColor="black" style="font-family:Monotype
Corsiva;"></asp:Label></td><td>
<asp:TextBox ID="txttotal" runat="server" style="margin-
left:-110px;
border-top-left-radius:35px;
border-bottom-right-radius:35px; border-bottom-left-
radius:35px;
border-top-right-radius:35px;padding-left:20px;" Font-
Size="20Px"></asp:TextBox>
</td></tr> <tr><td >
<asp:Button ID="btnok" runat="server" Text="Ok"
BackColor="#3355FF" Font-Size="X-Large"
style="margin-top:30px;margin-left:210px;border-top-
left-radius:25px;padding-right:25px;background-color:Black;
padding-left:25px;border-bottom-right-
radius:25px;border-bottom-left-radius:25px;border-top-right-
radius:25px;"
onclick="btnok_Click"
class="button1" Height="50" ForeColor="White"
Width="110" />
</td><td style="margin-left:-220px;">
&nbsp;</td></tr>
</table>
</form>
</asp:Content>

AddToCart.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.SqlClient;
using System.Web.Configuration;
using System.Data;

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


{
SqlConnection con = new SqlConnection();
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{

Page 107
G-Fresh Ice- cream

con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
if (Session["uname"] == null)
{
Response.Redirect("login.aspx");
}
if (!IsPostBack)
{
int id = Convert.ToInt32(Request.QueryString["id"]);
SqlDataAdapter da = new SqlDataAdapter("select * from
product where id=" + id, con);
DataTable dt = new DataTable();
da.Fill(dt);
txtnm.Text = dt.Rows[0][1].ToString();
txtprice.Text = dt.Rows[0][2].ToString();
img.ImageUrl="~/images/" + dt.Rows[0][3].ToString();
}
}
protected void btnok_Click(object sender, EventArgs e)
{
cmd = new SqlCommand("insert into addtocart
values(@name,@price,@image,@quantity,@total,@username)",
cmd.Parameters.AddWithValue("@name", txtnm.Text);
cmd.Parameters.AddWithValue("@price", txtprice.Text);
cmd.Parameters.AddWithValue("@image", img.ImageUrl);
cmd.Parameters.AddWithValue("@quantity", txtq.Text);
cmd.Parameters.AddWithValue("@total", txttotal.Text);
cmd.Parameters.AddWithValue("@username",Session["uname"].ToString(
));
cmd.ExecuteNonQuery();
con.Close();
Response.Redirect("viewcart.aspx");
}
protected void txtquantity_TextChanged(object sender, EventArgs
e)
{
}
protected void txtq_TextChanged(object sender, EventArgs e)
{
int x = Convert.ToInt32(txtprice.Text);
int y = Convert.ToInt32(txtq.Text);
int m = x * y;
txttotal.Text = m.ToString();
}
protected void Button1_Click(object sender, EventArgs e)
{
int x = Convert.ToInt32(txtprice.Text);
int y = Convert.ToInt32(txtq.Text);

Page 108
G-Fresh Ice- cream

int m = x * y;
txttotal.Text = m.ToString();
}
}

[6] ViewCart Page :-

ViewCart.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/client/client.master" AutoEventWireup="true"
CodeFile="viewcart.aspx.cs" Inherits="client_viewcart" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head"
Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form runat="server">
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False" Font-Size="XX-Large"
Width="950px" BorderColor="Black" ForeColor="Black"
style="margin-left:0px;margin-top:210px;
background-image:url('images/back7.jpg');"
BorderStyle="None">
<Columns>
<asp:TemplateField HeaderText="ID" Visible="false">
<ItemTemplate>
<asp:Label ID="lblid" runat="server" Text='<%#Eval("id")
%>'>
</asp:Label>
</ItemTemplate>

Page 109
G-Fresh Ice- cream

</asp:TemplateField>
<asp:TemplateField HeaderText="Name" HeaderStyle-
Height="100">
<ItemTemplate>
<asp:Label ID="lblname" runat="server" Text='<
%#Eval("name") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Price">
<ItemTemplate>
<asp:Label ID="lblprice" runat="server" Text='<
%#Eval("price") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Image">
<ItemTemplate>
<asp:image ID="lblimage" runat="server" imageUrl='<
%#Eval("image") %>' height="150px"
Width="150px"/>
</ItemTemplate>
</asp:TemplateField>

<asp:TemplateField HeaderText="Quantity">
<ItemTemplate>
<asp:Label ID="lblquantity" runat="server" Text='<
%#Eval("quantity") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Total">
<ItemTemplate>
<asp:Label ID="lbltotal" runat="server" Text='<
%#Eval("total") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Delete">
<ItemTemplate>
<asp:HyperLink ID="hl" runat="server" NavigateUrl='<
%#Eval("id","deletecart.aspx?id={0}") %>'
Text="Delete"
style="border-style: groove; border-width: medium;
font-family: 'Lucida Calligraphy';border-top-left-
radius:25px;
border-bottom-right-radius:25px; border-top-right-
radius:25px; border-bottom-left-radius:25px;
font-size: xx-large;color:#060DF2;

Page 110
G-Fresh Ice- cream

font-weight: 200; font-style: italic; font-variant:


normal; background-color:red; visibility: visible; overflow:
visible; text-decoration: blink;"></asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>

<asp:Label runat="server" Text="Total Amount" style="margin-


left:170px;" Font-Size="X-Large"></asp:Label>
<asp:TextBox runat="server" ID="txttotal" BackColor="#FF0066"
Font-Size="X-Large" style="margin-left:90px;">
</asp:TextBox>
<asp:Button runat="server" ID="btnpurchase" Text="Purchase"
onclick="btnpurchase_Click" BackColor="#99CCFF" Font-
Size="X-Large"
style="margin-top:20px;font-family:Algerian;border-top-
left-radius:15px;margin-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;border-bottom-left-radius:15px;" />
</form>
</asp:Content>

ViewCart.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.SqlClient;
using System.Web.Configuration;
using System.Data;

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


{
SqlConnection con = new SqlConnection();
SqlCommand cmd;
int total=0;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
if (Session["uname"] == null)
{

Page 111
G-Fresh Ice- cream

Response.Redirect("login.aspx");
}
getdata();
}
}
public void getdata()
{
String s = Session["uname"].ToString();
String s1="'"+s+"'"; //'admin'
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter("select * from
addtocart where username="+s1,con);
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();

int x = GridView1.Rows.Count;
for (int i = 0; i < x; i++)
{
String username = Session["uname"].ToString();
Label lbltotal =
(Label)GridView1.Rows[i].FindControl("lbltotal");
int tot = Convert.ToInt32(lbltotal.Text);
total = total + tot;
txttotal.Text = total.ToString();

}
}
protected void btnpurchase_Click(object sender, EventArgs e)
{
int x = GridView1.Rows.Count;
for (int i = 0; i < x; i++)
{
String username = Session["uname"].ToString();

Label lblname =
(Label)GridView1.Rows[i].FindControl("lblname");
string name = lblname.Text;

Label lblprice =
(Label)GridView1.Rows[i].FindControl("lblprice");
int price = Convert.ToInt32(lblprice.Text);
Label lblquantity =
(Label)GridView1.Rows[i].FindControl("lblquantity");
int quantity = Convert.ToInt32(lblquantity.Text);Label
lbltotal = (Label)GridView1.Rows[i].FindControl("lbltotal");
int total = Convert.ToInt32(lbltotal.Text);

int t = Convert.ToInt32(txttotal.Text)con.Close();

Page 112
G-Fresh Ice- cream

con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
cmd = new SqlCommand("insert into purchase values('" +
name + "','" + price + "','" + quantity + "','" + username + "','"
+ total + "','"+t+"')",con);
cmd.ExecuteNonQuery();
Response.Redirect("bill.aspx");
}
}
}

[7] Registration Page :-

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

<asp:Content ID="Content1" ContentPlaceHolderID="head"


Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<form id="Form1" runat="server" style="margin-left:200px;"


align="center">

Page 113
G-Fresh Ice- cream

<asp:Label ID="Label1" runat="server" Text="Registration Form"


Font-Size="50px"
ForeColor="#3399FF" Width="600px"
Font-Bold="True"
style="margin-left:250px;margin-top:70px;font-
family:Lucida Calligraphy;" ></asp:Label>
<br /><br />

<table align="center" style="border-left:4px;


border-top-left-radius:15px;
border-bottom-right-radius:15px;margin-top:20px;" >
<tr>

<td> <asp:Label ID="Label2" runat="server" Text="Name" Font-


Size="XX-Large"
ForeColor="White" style="font-family:Monotype
Corsiva;margin-left:280px;"></asp:Label></td>

<td><asp:TextBox ID="txtname" runat="server" Font-Size="Large"


style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvunm"
runat="server" ControlToValidate ="txtname"
ErrorMessage="Please Enter name" Font-Bold="True"
ForeColor="red">

</asp:RequiredFieldValidator></td>
</tr>
<tr>

<td><asp:Label ID="Label7" runat="server" Text="Address" Font-


Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;margin-left:280px;"></asp:Label></td>
<td><asp:TextBox ID="txtaddress" runat="server" Font-Size="Large"
style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-radius:15px;
border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator5"
runat="server" ControlToValidate ="txtaddress"
ErrorMessage="Please Enter Address" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator></tr> <tr>
<td><asp:Label ID="Label3" runat="server" Text="City" Font-
Bold="False"

Page 114
G-Fresh Ice- cream

Font-Size="XX-Large" ForeColor="white" style="font-


family:Monotype Corsiva;margin-left:280px;"></asp:Label></td>
<td><asp:TextBox ID="txtcity" runat="server" Font-Size="Large"
style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-radius:15px;
border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidatorID="RequiredFieldValidato
r1"
runat="server" ControlToValidate ="txtcity"
ErrorMessage="Please Enter city" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator>
</td>
</tr> <tr>
<td><asp:Label ID="Label8" runat="server" Text="Pincode" Font-
Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;margin-left:280px;"></asp:Label></td>
<td><asp:TextBox ID="txtpincode" runat="server" Font-Size="Large"
style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator6"
runat="server" ControlToValidate ="txtpincode"
ErrorMessage="Please Enter pincode" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator
ID="RegularExpressionValidatorpincode" runat="server"
ControlToValidate="txtpincode" ErrorMessage="please enter 6
digits"
ValidationExpression="[0-9]{6}"
ForeColor="red"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td><asp:Label ID="Label9" runat="server" Text="State" Font-
Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;margin-left:280px;"></asp:Label></td>
<td><asp:TextBox ID="txtstate" runat="server" Font-Size="Large"
style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator7"
runat="server" ControlToValidate ="txtstate"

Page 115
G-Fresh Ice- cream

ErrorMessage="Please Enter state" Font-Bold="True"


ForeColor="red">
</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td><asp:Label ID="Label10" runat="server" Text="Country" Font-
Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;margin-left:280px;"></asp:Label></td>
<td><asp:TextBox ID="txtcountry" runat="server" Font-Size="Large"
style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator8"
runat="server" ControlToValidate ="txtcountry"
ErrorMessage="Please Enter country" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td><asp:Label ID="Label11" runat="server" Text="Username" Font-
Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;margin-left:280px;"></asp:Label></td>
<td><asp:TextBox ID="txtusername" runat="server" Font-
Size="Large"
style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator9"
runat="server" ControlToValidate ="txtusername"
ErrorMessage="Please Enter username" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td><asp:Label ID="Label12" runat="server" Text="Password" Font-
Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;margin-left:280px;"></asp:Label></td>

Page 116
G-Fresh Ice- cream

<td><asp:TextBox ID="txtpassword" runat="server" Font-


Size="Large" style="border-top-left-radius:15px;padding-
left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator10"
runat="server" ControlToValidate ="txtpassword"
ErrorMessage="Please Enter password" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator>
</td>
</tr>
<tr><td><asp:Label ID="Label13" runat="server" Text="Gender"
Font-Size="X-Large"
ForeColor="White" style="margin-left:280px;font-
family:Lucida Calligraphy;"></asp:Label></td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td><asp:RadioButton runat="server" ID="rbtmale" Text="Male"
Font-Size="X-Large"
ForeColor="White" style="margin-left:30px;font-
family:Lucida Calligraphy;" GroupName="rb1" />
&nbsp;&nbsp;
<asp:RadioButton ID="rbtfemale" runat="server" Text="Female"
Font-Size="X-Large" ForeColor="White" GroupName="rb1"
style="font-family:Lucida Calligraphy;" /></td></tr>
<tr>

<td><asp:Label ID="Label4" runat="server" Text="Mobileno" Font-


Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;margin-left:280px;"></asp:Label></td>
<td><asp:TextBox ID="txtmobileno" runat="server" Font-
Size="Large"
style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator2"
runat="server" ControlToValidate ="txtmobileno"
ErrorMessage="Please Enter mobileno" Font-Bold="True"
ForeColor="red">

</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator
ID="RegularExpressionValidatormobile" runat="server"

Page 117
G-Fresh Ice- cream

ControlToValidate="txtmobileno" ErrorMessage="please enter 10


digits"
ValidationExpression="[0-9]{10}"
ForeColor="red"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td><asp:Label ID="Label5" runat="server" Text="Email" Font-
Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;
margin-left:280px;"></asp:Label></td>
<td><asp:TextBox ID="txtemail" runat="server" Font-Size="Large"
style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator3"
runat="server" ControlToValidate ="txtemail"
ErrorMessage="Please Enter email" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1"
runat="server"
ControlToValidate="txtemail"
ForeColor="red"
ValidationExpression="^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.
[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"
Display = "Dynamic" ErrorMessage = "Invalid email address"/>
</td>
</tr>
<tr><td><asp:Label ID="Label6" runat="server" Text="DOB" Font-
Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;
margin-left:280px;"></asp:Label></td>
<td><asp:TextBox ID="txtdob" runat="server" Font-Size="Large"

style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvdob"
runat="server" ControlToValidate ="txtdob"
ErrorMessage="Please Enter DOB" Font-Bold="True"
ForeColor="red">

</asp:RequiredFieldValidator>

Page 118
G-Fresh Ice- cream

<asp:RegularExpressionValidator ID="RegularExpressionValidatordob"
runat="server"
ControlToValidate="txtdob" ErrorMessage="Date of Birth should be
in MM-DD-YYYY format"
ValidationExpression="(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|
3[01])[- /.](19|20)\d\d"
Width="326px" ValidationGroup="First" ForeColor="red">
</asp:RegularExpressionValidator>
</td></tr>
</table>
<asp:Button ID="btnok" runat="server" Text="Registration"
BackColor="#99CCFF"
Font-Size="X-Large" Width="180"
style="font-family:Algerian;
margin-top:20px;margin-left:310px;
border-top-left-radius:15px;border-bottom-right-
radius:15px;border-top-right-radius:15px;
border-bottom-left-radius:15px;" onclick="btnok_Click"
/>
&nbsp;&nbsp;<asp:Button ID="btncancel" runat="server"
Text="Cancel"
BackColor="#99CCFF" Font-Size="X-Large" Width="120"

style="margin-top:20px;font-family:Algerian;border-top-left-
radius:15px;margin-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;border-bottom-left-radius:15px;"
/>
<br /><br /><br /><br />
</form>
</asp:Content>

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.SqlClient;
using System.Web.Configuration;

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


{
SqlConnection con = new SqlConnection();
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{

Page 119
G-Fresh Ice- cream

con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
}
protected void btnok_Click(object sender, EventArgs e)
{
cmd = new SqlCommand("insert into registration
values(@name,@address,@city,@pincode,@state,@country,@username,@pa
ssword,@gender,@mobileno,@email,@dob)", con);
cmd.Parameters.AddWithValue("@name", txtname.Text);
cmd.Parameters.AddWithValue("@address", txtaddress.Text);
cmd.Parameters.AddWithValue("@city", txtcity.Text);
cmd.Parameters.AddWithValue("@pincode", txtpincode.Text);
cmd.Parameters.AddWithValue("@state", txtstate.Text);
cmd.Parameters.AddWithValue("@country", txtcountry.Text);
cmd.Parameters.AddWithValue("@username",
txtusername.Text);
cmd.Parameters.AddWithValue("@password",
txtpassword.Text);
if (rbtmale.Checked == true)
{
cmd.Parameters.AddWithValue("@gender", rbtmale.Text);
}
else
{
cmd.Parameters.AddWithValue("@gender",
rbtfemale.Text);
}
cmd.Parameters.AddWithValue("@mobileno",
txtmobileno.Text);
cmd.Parameters.AddWithValue("@email", txtemail.Text);
cmd.Parameters.AddWithValue("@dob", txtdob.Text);
cmd.ExecuteNonQuery();
con.Close();
Response.Redirect("home.aspx");
}

Page 120
G-Fresh Ice- cream

[8] Feedback Page :-

Feedback.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/client/client.master" AutoEventWireup="true"
CodeFile="feedback.aspx.cs" Inherits="client_feed" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head"


Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<form id="Form1" runat="server" style="margin-left:200px;"


align="center">
<asp:Label ID="Label1" runat="server" Text="Feedback" Font-
Size="50px"
ForeColor="#3399FF" Width="600px"
Font-Bold="True"
style="margin-left:300px;margin-top:70px;font-
family:Lucida Calligraphy;" ></asp:Label>
<br /><br />

<table align="center" style="border-left:4px;


border-top-left-radius:15px;
border-bottom-right-radius:15px;margin-top:20px;" >
<tr>

<td> <asp:Label ID="Label2" runat="server" Text="Name" Font-


Size="XX-Large"

Page 121
G-Fresh Ice- cream

ForeColor="White" style="font-family:Monotype
Corsiva;margin-left:280px;"></asp:Label></td>

<td><asp:TextBox ID="txtname" runat="server" Font-Size="Large"


style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvunm"
runat="server" ControlToValidate ="txtname"
ErrorMessage="Please Enter name" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator></td>
</tr><tr>
<td><asp:Label ID="Label3" runat="server" Text="City" Font-
Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;margin-left:280px;"></asp:Label></td>
<td><asp:TextBox ID="txtcity" runat="server" Font-Size="Large"
style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator1"
runat="server" ControlToValidate ="txtcity"
ErrorMessage="Please Enter city" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator>
</td>
</tr>

<tr>

<td><asp:Label ID="Label4" runat="server" Text="Mobileno" Font-


Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;margin-left:280px;"></asp:Label></td>
<td><asp:TextBox ID="txtmobileno" runat="server" Font-
Size="Large"
style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator2"
runat="server" ControlToValidate ="txtmobileno"
ErrorMessage="Please Enter mobileno" Font-Bold="True"
ForeColor="red">

Page 122
G-Fresh Ice- cream

</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator
ID="RegularExpressionValidatormobile" runat="server"
ControlToValidate="txtmobileno" ErrorMessage="please enter 10
digits"
ValidationExpression="[0-9]{10}"
ForeColor="red"></asp:RegularExpressionValidator>
</td> </tr>
<tr> <td><asp:Label ID="Label5" runat="server" Text="Email" Font-
Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;margin-left:280px;"></asp:Label></td>
<td><asp:TextBox ID="txtemail" runat="server" Font-Size="Large"
style="border-top-left-radius:15px;padding-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator3"
runat="server" ControlToValidate ="txtemail"
ErrorMessage="Please Enter email" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1"
runat="server"
ControlToValidate="txtemail"
ForeColor="red"
ValidationExpression="^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.
[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"
Display = "Dynamic" ErrorMessage = "Invalid email address"/>
</td> </tr> <tr>
<td><asp:Label ID="Label6" runat="server" Text="Feedback" Font-
Bold="False"
Font-Size="XX-Large" ForeColor="white" style="font-
family:Monotype Corsiva;margin-left:280px;"></asp:Label></td>
<td><asp:TextBox ID="txtfeedback" runat="server" Font-
Size="Large" style="border-top-left-radius:15px;padding-
left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;
border-bottom-left-radius:15px;">
</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator4"
runat="server" ControlToValidate ="txtfeedback"
ErrorMessage="Please Enter password" Font-Bold="True"
ForeColor="red">
</asp:RequiredFieldValidator>
</td></tr> </table>

Page 123
G-Fresh Ice- cream

<asp:Button ID="btnok" runat="server" Text="Ok"


BackColor="#99CCFF"
Font-Size="X-Large" Width="120"
style="font-family:Algerian;
margin-top:20px;margin-left:310px;
border-top-left-radius:15px;border-bottom-right-
radius:15px;border-top-right-radius:15px;
border-bottom-left-radius:15px;"
onclick="btnok_Click1"
&nbsp;&nbsp;<asp:Button ID="btncancel" runat="server"
Text="Cancel"
BackColor="#99CCFF" Font-Size="X-Large" Width="120"
style="margin-top:20px;font-family:Algerian;border-top-
left-radius:15px;margin-left:10px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;border-bottom-left-radius:15px;"
/>
<br /><br /><br /><br />
</form>
</asp:Content>

Feedback.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.SqlClient;
using System.Web.Configuration;

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


{
SqlConnection con = new SqlConnection();
SqlCommand cmd;

protected void Page_Load(object sender, EventArgs e)


{
con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
}
protected void btnok_Click(object sender, EventArgs e)
{

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

Page 124
G-Fresh Ice- cream

cmd = new SqlCommand("insert into feedback


values(@name,@city,@mobileno,@email,@feedback)", con);
cmd.Parameters.AddWithValue("@name", txtname.Text);
cmd.Parameters.AddWithValue("@city", txtcity.Text);
cmd.Parameters.AddWithValue("@mobileno",
txtmobileno.Text);
cmd.Parameters.AddWithValue("@email", txtemail.Text);
cmd.Parameters.AddWithValue("@feedback",
txtfeedback.Text);
cmd.ExecuteNonQuery();
con.Close();
Response.Redirect("home.aspx");
}
}

[9] ContactUs Page :-

ContactUs.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/client/client.master" AutoEventWireup="true"
CodeFile="contactus.aspx.cs" Inherits="client_contactus" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head"


Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form method="post" name="feedback" style="margin-top:25px";>

Page 125
G-Fresh Ice- cream

<asp:Image ID="Image13" runat="server" ImageUrl="images/con2.gif"


style="margin-left:150px"/>
<table style="color:Black;font-family:Algerian;font-size:xx-
large;margin-left:70px;
background-image:url('images/p17.jpg');
border-top-left-radius:50px;border-top-right-
radius:50px;border-bottom-left-radius:50px;
border-bottom-right-radius:50px;margin-top:20px;">
<tr>
<td>
<asp:Image ID="Image2" runat="server" ImageUrl="images/ly1.jpg"
style="margin-left:20px;margin-top:20px;"/>vachhani dhruvi<br>
<asp:Image ID="Image1" runat="server" ImageUrl="images/hm1.jpg"
style="margin-left:20px;"/>At:junagadh<br>
<asp:Image ID="Image3" runat="server" ImageUrl="images/wp1.jpg"
style="margin-left:20px;"/>9824525664<br>
<asp:Image ID="Image4" runat="server" ImageUrl="images/gm1.png"
style="margin-left:20px;"/>vachhanidhruvi2002@gmail.com<br>
------------------------------------------------------------------
--------------<br>
<asp:Image ID="Image5" runat="server" ImageUrl="images/ly.jpg"
style="margin-left:20px;"/>bhalodiya shreya<br>
<asp:Image ID="Image6" runat="server" ImageUrl="images/hm.jpg"
style="margin-left:20px;"/>At:junagadh<br>
<asp:Image ID="Image7" runat="server" ImageUrl="images/wp.jpg"
style="margin-left:20px;" />9909131847<br>
<asp:Image ID="Image8" runat="server" ImageUrl="images/gm.png"
style="margin-left:20px;"/>bhalodiyashreya2001@gmail.com<br>
------------------------------------------------------------------
--------------<br>
<asp:Image ID="Image9" runat="server" ImageUrl="images/ly.jpg"
style="margin-left:20px;"/>kasondra ishani<br>
<asp:Image ID="Image10" runat="server" ImageUrl="images/hm.jpg"
style="margin-left:20px;"/>At:upleta<br>
<asp:Image ID="Image11" runat="server" ImageUrl="images/wp.jpg"
style="margin-left:20px;"/>8866328855<br>
<asp:Image ID="Image12" runat="server" ImageUrl="images/gm.png"
style="margin-left:20px;margin-bottom:20px;"/>kasondraishani2000@g
mail.com</td></tr>

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

ContactUs.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;

Page 126
G-Fresh Ice- cream

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

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


{
protected void Page_Load(object sender, EventArgs e)
{

}
}

[10] Bill Page :-

Bill.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/client/client.master" AutoEventWireup="true"
CodeFile="bill.aspx.cs" Inherits="client_bill" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head"


Runat="Server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form runat="server">
<asp:Label ID="Label1" runat="server" Text="Show Your
Bill" Font-Size="50px"
ForeColor="#3399FF"
Font-Bold="True"

Page 127
G-Fresh Ice- cream

style="margin-left:210px;font-family:Lucida
Calligraphy;" ></asp:Label>

<table style="margin-top:60px;margin-left:-100px;padding:0
15px;" cellspacing="0" cellpadding="30" >
<tr>
</tr><asp:DataList runat="server" ID="datalist1" ItemStyle-
BackColor="#999999"
BackColor="#BF4066" Font-Bold="True" Font-Italic="False"
Font-Size="X-Large" Width="500" style="margin-left:210px;
background-image:url('images/bk.jpg');color:Black;padding:5px
10px 30px 30px;" Height="500">
<ItemTemplate >
<tr><td align="center"> <asp:image ID="lblimage" runat="server"
imageUrl='<%#Eval("image") %>' height="150px"
Width="150px"/></td></tr>
<tr><td>
<asp:Label ID="lblid" runat="server" Text='<%#Eval("id")%>'
Visible="false">
</asp:Label>
</td></tr>
<tr><td>
<asp:Label ID="Label2" runat="server" Text="Username">
</asp:Label>
<asp:Label ID="lblname" runat="server" Text='<%#Eval("username")
%>'>
</asp:Label>
</td></tr>
<tr><td style="margin-top:120px;">
<asp:Label ID="Label3" runat="server" Text="Price">
</asp:Label>
<asp:Label ID="lblprice" runat="server" Text='<%#Eval("price")
%>'>
</asp:Label>
</td><td></td><td></td></tr>
<tr><td >
<asp:Label ID="Label5" runat="server" Text="Quantity">
</asp:Label>
<asp:Label ID="Label1" runat="server" Text='<%#Eval("quantity")
%>'></asp:Label>
</td></tr>
<tr><td >
<asp:Label ID="Label6" runat="server" Text="TotalAmount">
</asp:Label>
<asp:Label ID="lbltotal" runat="server" Text='<%#Eval("total")
%>'>
</asp:Label>
</td></tr>

Page 128
G-Fresh Ice- cream

</ItemTemplate>
</asp:DataList>
<asp:Label runat="server" ID="lblamount" Text="Total Payment"
style="margin-left:170px;" Font-Size="X-Large"></asp:Label>
<asp:TextBox runat="server" ID="txttotal" BackColor="#FF0066"
Font-Size="X-Large" style="margin-left:60px;margin-top:50px;">
</asp:TextBox>
<asp:Button runat="server" ID="btnprint" Text="Print"
BackColor="#99CCFF" Font-Size="X-Large" Width="90"
style="margin-top:20px;font-family:Algerian;border-top-
left-radius:15px;margin-left:370px;
border-bottom-right-radius:15px;border-top-right-
radius:15px;border-bottom-left-radius:15px;"
onclick="btnprint_Click" />
</table>
</form>
</asp:Content>

Bill.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.SqlClient;
using System.Web.Configuration;
using System.Data;

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


{
SqlConnection con = new SqlConnection();
SqlCommand cmd;
int total = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
con.ConnectionString =
WebConfigurationManager.ConnectionStrings["cn"].ConnectionString;
con.Open();
if (Session["uname"] == null)
{
Response.Redirect("login.aspx");
}
getdata();
}
}

Page 129
G-Fresh Ice- cream

public void getdata()


{
String s = Session["uname"].ToString();
String s1 = "'" + s + "'"; //'admin'
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter("select * from
addtocart where username=" + s1, con);
da.Fill(dt);
datalist1.DataSource = dt;
datalist1.DataBind();

int x = datalist1.Controls.Count;
for (int i = 0; i < x; i++)
{
String username = Session["uname"].ToString();
Label lbltotal =
(Label)datalist1.Controls[i].FindControl("lbltotal");
int tot = Convert.ToInt32(lbltotal.Text);
total = total + tot;
txttotal.Text = total.ToString();

}
}
protected void btnprint_Click(object sender, EventArgs e)
{
Response.Redirect("final.aspx");
}
}

TESTING

White-box Testing

White Box testing is used as an important primary testing approach. Code is tested using
code scripts, driver etc that are employed to directly interface with and drive the code.

White-box testing, sometimes called glass-box testing is a test case design method that
uses the control structure of the procedural design to derive test cases. White-box tests can
be designed only after a component-level design (or source code) exists.

● Condition Testing.

● Unit Testing.

Page 130
G-Fresh Ice- cream

Black-box Testing:

In Black-Box Testing or Functional Testing, the output of the module and software, is
taken into consideration, i.e. whether the software gives proper output as per the
requirements or not. This can be done in Input, Interface Processing and Output Interface.

Black-box testing, also called behavioral testing, focuses on the functional requirements of
the software. That is, black-box testing enables the software engineer to derive sets of input
conditions that will fully exercise all functional requirements for a program.

Test Case

Testcase of Registration form:

N Test Descripti Prerequisites Input Severity Priority Expect Actual Pass


o Case on data ed Result /fail
Result
1 fname To check Internet - Low- Low Cursor Cursor Fail
that f should have level should not able
name available display to display
field in the in the
have fname fname
cursor
2 lname To check Internet - Low- Low Cursor Cursor Fail
that should have level should should
lname available display display in
field in the the lname
have lname
cursor
3 Passwor To check Password mmm High- High Passwo Password pass
d that m level rd
Must Have not
field Password Entered mmm Can’t Space or
m
Can Have special
contain Space character
Space or or
special special
character charact
er

Page 131
G-Fresh Ice- cream

4 Mo_no To check Mo_No 12345 Low- High Mo_No Mo_No is Pass


67894 level must be 10 digit
Minimu
a 10
m
digit long
boundary
long.
Of
mo_no

5 DOB To check dd-mm-yy - Low- High DOB DOB is fail


level not valid
That dob must
have dd- entered format
mm-yy digit or
formate charact
er
6 Country To check Country must nnnrrr Low- High Countr Country fail
that be enter ji level y Display in
Country Shoule
have The text
have area
character display
text
area
format
7 User To check Internet - Low-level Low Usernam Username is Fail
user e can’t blank
name
be blank.
Name can
be left
blank.
8 Email To check Internet ssssss Low- Low Email Email is Fail
that should have level must not in
available valid
email is Be in
valid valid format
or not. format

Testcase of Login form:

N Test Descrip Prerequisites Input Severity Priority Expect Actual Pass


o Case tion data ed Result /fail
Result
1 User To Browser - Lowlev Low Should Should Pass
name check should have el not not blank
field that available blank the user
User the name
name user
field name
can’t

Page 132
G-Fresh Ice- cream

be
blank
2 Passwo To Browser Riya Lowlev Low User User pass
rd field check should have 9525 el enter enter
that available charac character
user ter and and digit.
enter digit .
minim
um 6
charact
er.
3 User To Browser 5855 Lowlev Low User User can Fail
name check should have el can’t enter
field that available enter digit
user digit.
can’t
enter
first
digit.
4 Passwo To Browser riddh Lowlev Low User User Fail
rd field check should have ikara el can’I enter
that available ngiya Enter space
user @ not
can’t 25 space
enter
any
special
charact
er.
Future Enhancements

✔ In our websites we provide cash on delivery because people will be hasisate for
online payment.
✔ We give facilities to people send feedback to our site.
✔ The whole items gives by us.
✔ The user can purchase any items from case on delivery.
✔ In future we can change our template & also we will also put a new flavoured and
companies ice cream in this web-site.
✔ Also we will provide other item in this web-site.
✔ We will also add some new category.
✔ In future our web-site is change also.

Conclusion
Page 133
G-Fresh Ice- cream

● It was great pleasure of working on this project, I had many experiences,which


were entirely new for me, and it really helped me to learn lot og things during the
development of this project.Also i learn to tackle the problems efficiently.

● My friends and my fellow mates really healped me and encouraged me for making
my system possible.Also a great moral support of teachers play a vital role during
implementation of my system.

● The developed system is highly user friendly has attractive user interface and
meaningful messages to give proper guidence to the user as and when required.

BIBLIOGRAPHY

❖ Books Referred:
● ASP.NET – Project BlackBook
● ASP.NET 2.0 – Wrox Publication

❖ Website:
● www.dotnetfunda.com
● www.stackoverflow.com
● www.aspalias.com

Page 134
G-Fresh Ice- cream

Page 135

You might also like