Académique Documents
Professionnel Documents
Culture Documents
ONLINE SHOPPING
INTRODUCTION:
Online shopping is a website for an online shopping store which provide different
items to the people according to their needs. This web site will provide the user to
shop online whether they are anywhere in the world. The web site will have many
products, which help the user to choose the product of their own choice with
controlled prices excluding the shipment charges. There are the member and nonmember who buy the product under current scheme and discount rates. It provides
facility to the customers to give the order for the particular thing which user wants
to buy. The web site contains many products.
The main purpose of this website is to eliminate middlemen between the customer
and publisher and to provide all profits to the customers. As this system is online to
the customers, they home delivery of the required products at the effective prices
under one roof. The web site will have the facility to provide the membership by
signing in as a new user and will provide extra benefits such as giving discounts or
gifts to the users if they are member of the site by playing a little registration fee.
The project will have a login from, which will help the existing customer to log on
to the site and get benefits. This project is paid site project. With this website
efficiency is improved up tot large extent because it is easy for the user or the
buyer to purchase the product at reasonable cost without roaming here and there.
Further it will also contain the information that how many persons have visited the
site that will help to analyses the number of customer each day visiting our site.
Listing of the bank through which the payment can be made will also be given.
Jasleen Kaur
ONLINE SHOPPING
Payment mode will also be guided to the user so that shopping can be done easily.
On this web site customers can also send suggestions and complaints.
ONLINE SHOPPING
Today is the world of Information Technology. Neither any organization nor any
person can work efficiently without the use of Computers. We need computers in
almost all the fields today. Our Project Online Shopping is not only a project
which covers todays inventory related aspects but it can be used effectively in
future as well. Nowadays, no. of shopping malls and other inventory dealing firms
are coming up in India many other projects are also in the pipeline. So this project
can help these firms and organizations work better
Jasleen Kaur
ONLINE SHOPPING
ASP.NET Introduction
Jasleen Kaur
ONLINE SHOPPING
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Themes:-
developers to create a customized look for web applications. Design goals for
ASP.NET themes:
Make it simple to customize the appearance of a site.
Allow themes to be applied to controls, pages, and entire sites.
Allow all visual elements to be customized.
Web Parts:- ASP.NET Web Parts can provide a consistent look for a site, while
still allowing user customization of style and content. New controls:
Zone controls - areas on a page where the content is consistent
Web part controls - content areas for each zone
Navigation:-ASP.NET has built-in navigation controls like
Site Maps
Dynamic HTML menus
Tree Views
Security:-Security is very important for protecting confidential and personal
information. In ASP.NET the following controls has been added:
A Login control, which provides login functionality.
A Login Status control, to control the login status.
A Login Name control to display the current user name.
A Login View control, to provide different views depending on login status.
A Create User wizard, to allow creation of user accounts.
A Password Recovery control, to provide the "I forgot my password"
functionality.
Jasleen Kaur
ONLINE SHOPPING
Roles
and
Personalization:-
Internet
communities
are
growing
very
Jasleen Kaur
ONLINE SHOPPING
easy way to deploy (upload to a server) compiled applications, and because only
compiled files are deployed, the source code is protected.
Jasleen Kaur
ONLINE SHOPPING
Site Management:- ASP.NET has three new features for web site configuration
and management:
New local management console.
New programmable management functions (API).
New web-based management tool.
Jasleen Kaur
ONLINE SHOPPING
History
After the release of Internet Information Services 4.0 in 1997, Microsoft began
researching possibilities for a new web application model that would solve
common complaints about Active Server Pages, especially with regard to
separation of presentation and content and being able to write "clean" code. Mark
Anders, a manager on the IIS team, and Scott Guthrie, who had joined Microsoft in
1997 after graduating from Duke University, were tasked with determining what
that model would look like. The initial design was developed over the course of
two months by Anders and Guthrie, and Guthrie coded the initial prototypes during
the Christmas holidays in 1997.
The initial prototype was called "XSP"; Guthrie explained in a 2007 interview that,
"People would always ask what the X stood for. At the time it really didn't stand
for anything. XML started with that; XSLT started with that. Everything cool
seemed to start with an X, so that's what we originally named it." The initial
prototype of XSP was done using Java, but it was soon decided to build the new
platform on top of the Common Language Runtime (CLR), as it offered an objectoriented programming environment, garbage collection and other features that
were seen as desirable features that Microsoft's Component Object Model platform
didn't support. Guthrie described this decision as a "huge risk", as the success of
their new web development platform would be tied to the success of the CLR,
which, like XSP, was still in the early stages of development, so much so that the
XSP team was the first team at Microsoft to target the CLR.With the move to the
Common Language Runtime, XSP was re-implemented in C# (known internally as
"Project Cool" but kept secret from the public), and renamed to ASP+, as by this
point the new platform was seen as being the successor to Active Server Pages, and
Jasleen Kaur
ONLINE SHOPPING
the intention was to provide an easy migration path for ASP developers.Mark
Anders first demonstrated ASP+ at the ASP Connections conference in Phoenix,
Arizona on May 2, 2000. Demonstrations to the wide public and initial beta release
of ASP+ (and the rest of the .NET Framework) came at the 2000 Professional
Developers Conference on July 11, 2000 in Orlando, Florida. During Bill Gates's
keynote presentation, Fujitsu demonstrated ASP+ being used in conjunction with
COBOL and support for a variety of other languages was announced, including
Microsoft's new Visual Basic .NET and C# languages, as well as Python and Perl
support by way of interoperability tools created by ActiveState.
Once the ".NET" branding was decided on in the second half of 2000, it was
decided to rename ASP+ to ASP.NET. Mark Anders explained on an appearance on
The MSDN Show that year that, "The .NET initiative is really about a number of
factors, its about delivering software as a service, it's about XML and web services
and really enhancing the Internet in terms of what it can do .... we really wanted to
bring its name more in line with the rest of the platform pieces that make up the
.NET framework."
After four years of development, and a series of beta releases in 2000 and 2001,
ASP.NET 1.0 was released on January 5, 2002 as part of version 1.0 of the .NET
Framework. Even prior to the release, dozens of books had been written about
ASP.NET, and Microsoft promoted it heavily as part of their platform for web
services. Guthrie became the product unit manager for ASP.NET, and development
continued apace, with version 1.1 being released on April 24, 2003 as a part of
Windows Server 2003. This release focused on improving ASP.NET's support for
mobile devices.
Jasleen Kaur
ONLINE SHOPPING
Performance
ASP.NET aims for performance benefits over other script-based technologies
(including Classic ASP) by compiling the server-side code to one or more DLL
files on the web server. This compilation happens automatically the first time a
page is requested (which means the developer need not perform a separate
compilation step for pages). This feature provides the ease of development offered
by scripting languages with the performance benefits of a compiled binary.
However, the compilation might cause a noticeable delay to the web user when the
newly-edited page is first requested from the web server.
The ASPX and other resource files are placed in a virtual host on an Internet
Information Services server (or other compatible ASP.NET servers; see Other
Implementations, below). The first time a client requests a page, the .NET
framework parses and compiles the file(s) into a .NET assembly and sends the
response; subsequent requests are served from the DLL files. By default ASP.NET
will compile the entire site in batches of 1000 files upon first request. If the
compilation delay is causing problems, the batch size or the compilation strategy
may be tweaked.Developers can also choose to pre-compile their code before
deployment, eliminating the need for just-in-time compilation in a production
environment.
Jasleen Kaur
ONLINE SHOPPING
assign its properties and respond to its events. Controls know how to render
themselves: whereas Windows controls draw themselves to the screen, web
controls produce segments of HTML and JavaScript which form part of the
resulting page sent to the end-user's browser.ASP.NET encourages the programmer
to develop applications using an event-driven GUI model, rather than in
conventional web-scripting environments like ASP and PHP. The framework
attempts to combine existing technologies such as JavaScript with internal
components like "ViewState" to bring persistent (inter-request) state to the
inherently stateless web environment.
Other differences compared to ASP classic are:
1. Compiled code means applications run faster with more design-time errors
trapped at the development stage.
2. Significantly improved run-time error handling, making use of exception
handling using try-catch blocks.
3. Similar metaphors to Microsoft Windows applications such as controls and
events.
4. An extensive set of controls and class libraries allows the rapid building of
applications, plus user-defined controls allow commonly-used web
template, such as menus. Layout of these controls on a page is easier
because most of it can be done visually in most editors.
5. ASP.NET leverages the multi-language capabilities of the .NET Common
Language Runtime, allowing web pages to be coded in VB.NET, C#, J#,
Delphi.NET, Chrome etc.
6. Ability to cache the whole page or just parts of it to improve performance.
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
This makes it a good way to store information that needs the ability to
change over time, but also needs to be accessed over the net. Some examples
that can utilize SQL Server 2005 are a web message board or a customer's
shipping status.
SQL Server has some differences from Oracle 9i such as the Unique key
can have at most one null values here. It uses various stored procedures as a
compiled object.
SQL Server 2005 Express is the free version of the Microsoft SQL Server
2005 database.
It replaces MSDE (Microsoft SQL Server 2000 Desktop Engine), which was
based on Microsoft SQL Server 2000.
SQL Server 2005 Express includes the new SQL Server 2005 database
engine enhancements and a new graphical user interface (GUI) tool called
SQL Server 2005 Management Studio Express Edition.
Jasleen Kaur
ONLINE SHOPPING
SQL Server 2005 Express is integrated with Microsoft Visual Studio, which
facilitates the design and development of database applications.
Microsoft Visual Studio 2008 and SQL Server 2005 combine to be an easily
acceptable combination and are supported by all Operating Systems.
Microsoft Visual Studio 2008 is the Microsoft Software that can be easily
bounded with SQL Server 2005 as it is accompanied within the Visual
Studio2008 package.
ONLINE SHOPPING
Visual Studio 2008 works at the Front End and SQL Server 2005 at the
Back End .
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
SYSTEM STUDY
INVENTORY: all commercial organization such as factories, warehouses and
traders keep in a stock, either for their own serving machines. Material stocked for
future sale or consumption is called inventory.
The kind of inventory held by different organizations usually consist of:1. Raw materials and supplies inventory.
2. Production inventories.
3. Maintenance repair and operation inventories.
4. In process inventories.
5. Finished products inventories.
INVENTORY CONTROL:- the advent of modern industrialization has in its
wake highlighted a number of management problem an imported one of which is
cost reduction and cost control. Inventories are the assets of organizations and
represent investment. Since inventories are of indispensable use of the industry
there has to be some controls on them. Effective controlled inventories can
contribute sustention to a concerns profits.
Inventory control may be defined the planning, ordering and scheduling of
materialized in manufacturing process. It is possible to exercise control over three
types of inventories recognized by the accountant as the raw materials, work in
progress and finished goods.
It emerges from the definition given above that the inventory control is the system
devised and adopted for controlling investment in the inventory. It involves
inventory planning and decision making with regard to quantity time of purchase,
Jasleen Kaur
ONLINE SHOPPING
fixation of stock levels, maintenance of store records and controls exits neither the
material wait unduly long for men and machine and nor do they have to wait for
the material.
The game of inventory management aims to attain a healthy balance between cost
of inventory and cost of not having it. On one hand it might lead to our stocking as
is in the case of Govt. institution but on the other hand it could help to maintain
such least amount of stock level so that the demand is met just in time to meet
schedules.
IDENTIFICATION OF NEED:- the success of a largely depends upon hoe
accurately the problem is defined and investigated. Not until the problem is defined
and evaluated, should we think about the solutions.
LIMITATIONS:- though the existing system is working efficiently, still
introduction of computers will enhance the overall performance. before
computerization, the companies have to face many problems describe below: When the work is done manually, a number of registers need to be
maintained to keep records of the suppliers/customers, their reports etc. thus
a lot of paperwork is involved.
The data and information is redundant and scattered in various registers,
which results in non-synchronized procedure of collection, transmission and
processing of data.
Some accidental error in data entry may cost a lot of confusion and wastage
of time, since this data may be required later for computation and
assessment.
Inconsistency problems.
Security problems.
Jasleen Kaur
ONLINE SHOPPING
This project will rectify all such problems. The basic inventory control problem
therefore become of determine the following two:a) How much an order for material be placed?
b) How much should be produced at beginning of each time interval or what
quantity of item should be ordered at each time?
Jasleen Kaur
ONLINE SHOPPING
increase importance in order to determine the cost of sales and profitability of each
job and product, control the selling and distribution cost, to fix price and formulae
sales price policy, to fix optimum sale levels and to make decision regarding sales
i.e. sales under different conditions markets regions and by different methods.
The accounting of selling distribution overhead requires three stage analysis:
1) Accounting to nature of objects of expenditure.
2) By function or cost center.
3) By products of cost units.
The control selling and distribution overhead is comparatively difficult
because of certain special features of such cost which requires a more
detailed and exacting analysis cost of the expenses s most of the expense are
incurred after the production is completed. The incidence of such overhead is
dependent upon various such as distance of market terms of sales an extent of
competition due to which it is not possible to fix standards. The main
problems which are in control of selling and distribution overhead costs are
as under:1) No controls over customer of competition is possible.
2) Sales capacity of the organization cant be described properly.
3) There is no supervision of staff working outside and this requires
incentives schemes remunerating such as staff.
4) Original business may establish market price without reference to the cost
of production.
5) It is difficult to obtain market operation data.
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
PURCHASING
Purchasing is the most important function of the materials management. At the
moment an order is placed for the purchase of the material, a substantial part of the
companys finance is committed which cash flow position of the company. Thus if
size of the business concern permits there should be a separate purchasing all types
of materials should be entrusted to this department.
Purchasing is not an end in itself: materials and suppliers are brought because they
are needed to be used. It is some time regarded merely as a service function
because the activities of purchasing have the primary function of implementing the
work of other departments by producing these products.
With changing conditions, the purchasing policy of today could be disastrous for
tomorrow. Continuous attention and a maximum flexibility are essential. These
changes must be recognized they should be anticipated and purchasing methods to
be develop to cope with them successfully.
Purchasing has required a state of dynamic management activity which includes:1) able administration.
2) Accurate forecasting.
3) Effective planning.
4) Developed capacity to organized.
5) Effective co-ordination.
6) Better controlling machinery.
7) Judicious timely decision.
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
5) Right time.
6) Right place.
It is quite clear that purchasing is integral and essential part of business must mesh
into a unified whole if management is to fulfill its basic responsibility to optimize
enterprise profits. Each function of business must share in this responsibility.
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
SYSTEM ANALYSIS
Analysis is a detailed study of various operations performed by a system and their
relationships within and outside the system. One should know, what should be
done to solve the problem? During analysis data are collected on available files,
decision points and transactions handled by the present system. The analysis
conducted resulted in the formation of the database relations and the different
attributes to be used by the back end tools. Data flow diagrams, interviews, on site
observations, and questionnaires are examples. The interview is a commonly used
tool in analysis. It requires special skills and sensitivity to
interviewed.
the
subjects being
Training, experience, and common sense are required for collection of the
information needed to do the analysis.
Once analysis is complete, the analyst has a firm understanding of what
is to be done. The next step is to decide how the problem might be solved. Thus in
systems design, we move from the logical to the physical aspects of the life cycle.
Jasleen Kaur
ONLINE SHOPPING
REQUIREMENTS ANALYSIS
REQUIREMENTS TO THE PROJECT
Software requirements:
In the software requirement we discuss about software that are required to install
this system.
The minimum software requirements are as
Follows:
Front End: - ASP.NET
Back End: - SQL SERVER
Operating System: - Windows XP
Hardware Requirements:
In Hardware Requirements, we need lot of hardware components to install this
system. The minimum hardware requirements are as follows:
Memory: - Minimum 512 MB RAM, 10 GB hard disk
Storage Media: - DVD-ROM
Processor: - Pentium 4
VGA Color Monitor
Printer
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
ONLINE SHOPPING
STAGE
1.RECOGNITION OF
KEY QUESTION
RESULT
opportunity?
objective.
demonstrable needs?
NEED
Preliminary survey.
Initial investigation.
2.ANALYSIS
benefit analysis.
system and
procedure.
Analysis of alternative
candidate system.
Data collection.
objective.
redefined?
Cost estimation.
3.DESIGN
In general, how must the
problem be solved?
General design
specification
problem be solved?
Hardware specifications
Jasleen Kaur
ONLINE SHOPPING
Detailed design
specification
system?
Implementations specifications
Implementation schedule
Output
Input
Files
Procedures
Program construction
Testing
Jasleen Kaur
ONLINE SHOPPING
Unit testing
Combine module
Testing
User acceptance
4. IMPLEMENTATION
Users training
Training program
User-friendly
documentation.
Evaluation
modified?
specified user.
Maintenance
Enhancement
Jasleen Kaur
ONLINE SHOPPING
ONLINE SHOPPING
investigated, each of these ideas may lead to a problem definition as a first step in
the software development life cycle process.
Ideas for change may also come from within the organization-top management, the
user, and the analyst. As an organization changes its operations or faces advances
in computer technology, someone within the organization may feel to update
existing applications or improve procedures.
Here are some examples:
An organization acquires another organization.
A local bank branches into the suburbs,
A department spends 80 percent of its budget in one month.
Two departments are doing essentially the same work, and each department
head insists the other department should be eliminated.
A request for a new form discloses the use if bootleg (unauthorized) forms.
User- originated ideas also prompt initial investigations. For example, a bank's
head teller has been noticing long customer lines in the lobby. He wants to know
whether they are due to computer's slow response to inquiries, the new teller's
limited training, or just a sudden increase in bank business. To what extent and
how quickly a user - originated idea is converted to a feasibility study depend on
several factors.
The risks and potential returns.
Management's bias toward the user.
Financial costs and the funds available for system work.
Priorities of other projects in the firm.
The persuasive ability of the user.
Jasleen Kaur
ONLINE SHOPPING
All these factors are crucial for a prompt response to a user request for change. A
system analyst is in a unique position to detect and even recommend change.
Experience and previous involvement in the user's area of operations make him /
her convenient resource for ideas.
FEASIBILITY STUDY
The objective of Initial Investigation is to determine whether the request is valid
and feasible before a recommendation is reached to do nothing, improve, or
modify the existing system, or build a new one.
Depending on the results of the initial investigation, the survey is expanded to a
more detailed feasibility study. A feasibility study is a test of a system proposal
according to its workability, impact on the organization, ability to meet user needs,
and effective use of resources. It focuses on three major things:
1. What are the user's demonstrable needs and how does a candidate system
meet them?
2. What resources are available for given candidate systems?
3. What are the likely impacts of the candidate system on the organization?
THERE ARE MAJOR CHARACTERSTICS TO BE TAKEN INTO
ACCOUNT
Economic feasibility
Technical feasibility
Behavioral feasibility
Economic Feasibility
Jasleen Kaur
ONLINE SHOPPING
Economic analysis is the most frequently used method for evaluating the
effectiveness of a candidate system. A procedure of cost/benefit analysis is applied
to determine the savings and benefits that are expected from the candidate system
and then compare them with the costs. If benefits outweigh the costs, then the
decision is made to design and implement the system. Otherwise, further
justification or alterations in the propose system will have to be made if it is to
have a chance of being approved. This is an ongoing effort that improves in
accuracy at each phase of the system life cycle.
Social Feasibility
It is important to study the social implications when a new product or system is
introduced. People are inherently resistant to change and computers have been
known to facilitate change. An estimate should be made of how strong a reaction
user staff is likely to have towards the development of a computerized system. It is
common that computer installation results in turnover, transfers, retraining and
changes in the employees job status. Therefore, it is undesirable that the
introduction of the candidate system requires special effect to educate, sell, and
train the staff on new ways of conducting business. When we explained our system
to users, they gave a good response.
Behavioral Feasibility
People are inherently resistant to change, and computers have be known to
facilitate change .it is common knowledge that the computer installation has
something to with turnover, transfer, retraining and changes in the employee job
status therefore it is understandable that the introduction of the candidate system
Jasleen Kaur
ONLINE SHOPPING
requires special effort to educate and train the staff on new ways of conducting
business
Points that the user staff rose against the new system.
1)
2)
Change in job status, and may be demotion if found not qualified for the job.
3)
4)
5)
Difficult and time consuming requires if system failure occurs during the working
hours.
6)
Loss of time and working hours if the system is not repaired on the time.
The user staff that had to directly work on the new system gave all the limitation.
or the apprehensions that are listed above. They feared that the new system would
result in the demotions or they will be out of their jobs.
Technical Feasibility
It involves determining whether or not a system can actually be constructed to
solve the problem at hand. Technical feasibility centers on the existing computer
system (hardware, software) etc. and to what extent it can support the proposed
system. System developed by us is technically feasible because no system was
previously running on their system as he has purchased a new system. Our system
would be easy to use as it is user friendly to a person who knows simple English
can easily use it effectively and it is capable of fulfilling their requirements about
the production, sales, purchase, stock control of products and employee
information.
The various issues considered for the technical feasibility are:
Technical guaranties of accuracy, reliability, ease of access and data security.
Usefulness in panning purposes.
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Overview
It is common practice for a designer to draw a context-level DFD first which
shows the interaction between the system and outside entities. The DFD is
designed to show how a system is divided into smaller portions and to highlight the
flow of data between those parts. This context-level DFD is then "exploded" to
Jasleen Kaur
ONLINE SHOPPING
show more detail of the system being modeled. Data flow diagrams were invented
by Larry Constantine, the original developer of structured design, based on Martin
and Estrin's "data flow graph" model of computation.
Data flow diagrams (DFDs) are one of the three essential perspectives of
Structured Systems Analysis and Design Method SSADM. The sponsor of a
project and the end users will need to be briefed and consulted throughout all
stages of a system's evolution. With a dataflow diagram, users are able to visualize
how the system will operate, what the system will accomplish, and how the system
will be implemented. The old system's dataflow diagrams can be drawn up and
compared with the new system's dataflow diagrams to draw comparisons to
implement a more efficient system. Dataflow diagrams can be used to provide the
end user with a physical idea of where the data they input ultimately has an effect
upon the structure of the whole system from order to dispatch to restock. How any
system is developed can be determined through a dataflow diagram.
Developing a DFD helps in identifying the transaction data in the data model.
There are different notations to draw data flow diagrams, defining different visual
representations for processes, data stores, dataflow, and external entities.
Developing a DFD
Elements of a DFD
There are 4 key elements in a Data Flow diagram; Processes, Data Flows, Data
Stores & External entities and each element is drawn differently. Another important
element which is typically marked with dashed lines is Feedback and Control Data.
Process entity
The "Process entity" identifies a process taking place, it must have at least one
input and output. A process with no input is known as a "miracle process" and one
with no output is a "black hole process".
Jasleen Kaur
ONLINE SHOPPING
Both "miracle" and "black hole" processes are strong indicators that the DFD is
missing a connection between processes and should be re-evaluated. Each process
has the following :
1. A Number
2. A Name (verb phrase)
3. A Description
4. At least one input
5. At least one output
Data flow entity
The "Data Flow entity" identifies the flow of data between processes, data stores &
external entities. A data flow cannot connect an external entity to a data source; at
least one connection must be with a process. There are also "physical" flows, i.e.
those that use a physical medium, like a membership card. Each data flow has the
following:
1. A Name (Noun)
2. A Description
3. One or more connections to a process.
4. Data Store entity
The "Data Store entity" identifies stores of data, both manual and electronic.
Electronic or "digital" stores are identified by the letter D, and manual filing
systems by the letter M, e.g. D1 could be a MySQL database, and M4 could be a
filing cabinet. Each data store has the following:
1. A Number
2. A Name
Jasleen Kaur
ONLINE SHOPPING
3. A Description
4. One or more output data flows.
External entity
The "External Entity" identifies external entities which interacts with the system,
usually clients but can be within the same organization. Examples of an external
entity include customers, suppliers, management, certification agencies and
competitors. Multiple existences of the same entity, e.g. the same doctor shown
twice on the same diagram, can be identified by a horizontal line in the top left
corner of the symbol. Each external entity has the following:
1. A Name (Noun)
2. A Description
3. The Feedback and Control data
The "Feedback and Control data" identifies a special purpose. Only the first four
elements are needed to create a data flow diagram (DFD).
Jasleen Kaur
ONLINE SHOPPING
DFD
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
CATEGORY TABLE
Sr. no.
0
1
Fields
CATID
CAT_NAME
Primary Key
int
Varchar(250)
CITY TABLE
Sr. no.
0
1
2
Fields
CID
CNAME
CCODE
int
Varchar(50)
Varchar(50)
Primary Key
Jasleen Kaur
ONLINE SHOPPING
Fields
ID
ICODE
INAME
SUB_CAT_ID
MRP
OURPRICE
DISCOUNTRS
DISCOUNTP
GIFTS
WARRANTY
DELIVERYTIME
DETAIL
IMAGE
HOTDEALS
C_STOCK
Data type
Constraints
int
Primary Key
Varchar(50)
Varchar(MAX)
Varchar(50)
Numeric(18,0)
Numeric(18,0)
Numeric(18,0)
Numeric(18,0)
Varchar(MAX)
Varchar(MAX)
Varchar(MAX)
Varchar(MAX)
Varchar(MAX)
Varchar(50)
int
Jasleen Kaur
ONLINE SHOPPING
ORDER TABLE
Sr. no.
0
1
2
3
4
5
6
7
8
Fields
Primary Key
ORDER_NO
int
UID
Varchar(150)
AMT
Decimal(18,2)
CARD_TYPE Varchar(50)
EXP_MONTH Varchar(50)
EXP_YEAR
Varchar(50)
CARD_NO
Varchar(50)
CVV
Varchar(50)
ODATE
Date time
Jasleen Kaur
ONLINE SHOPPING
Fields
Primary Key
ID
int
TITLE
Varchar(50)
FIRST_NAME
Varchar(50)
LAST_NAME
Varchar(50)
EMAIL_ADDRESS
Varchar(50)
MOBILE_NUMBER NVarchar(50)
ADDRESS
Varchar(50)
CITY
Varchar(50)
PIN_CODE
int
STATE
Varchar(50)
PASSWORD
Varchar(50)
QUES
Varchar(100)
ANS
Varchar(100)
Jasleen Kaur
ONLINE SHOPPING
QUESTIONS TABLE
Sr. no.
0
1
Fields
Primary Key
ID
int
QUESTIONS Varchar(200)
SCART TABLE
Sr. no.
0
1
2
3
4
5
Fields
ID
USERID
ICODE
ADATE
QTY
STATUS
Data type
Constraints
Primary Key
int
Varchar(50)
Varchar(MAX)
datetime
int
Varchar(50)
Jasleen Kaur
ONLINE SHOPPING
STATE TABLE
Sr. no.
0
1
2
Fields
SID
SNAME
SCODE
int
Varchar(50)
Varchar(50)
Primary Key
SUB_CATEGORY TABLE
Sr. no.
0
1
2
Fields
Primary Key
SUB_CAT_ID
int
CAT_ID
Varchar(250)
SUB_CAT
Varchar(250)
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Home page
Jasleen Kaur
ONLINE SHOPPING
Electronic accessories
Jasleen Kaur
ONLINE SHOPPING
Computer Accessories
Jasleen Kaur
ONLINE SHOPPING
Footwears
Jasleen Kaur
ONLINE SHOPPING
Cookware Accessories
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Login form
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Shopping details
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Payment mode
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Message page
Jasleen Kaur
ONLINE SHOPPING
Administrator page
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Home Page
Imports System.Data.SqlClient
Partial Class home
Inherits System.Web.UI.Page
Dim con As New
SqlConnection(ConfigurationSettings.AppSettings("sqlconn"))
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
If Page.IsPostBack = False Then
datalist_fill()
End If
End Sub
Private Sub datalist_fill()
con.Open()
Dim cmd As New SqlCommand
cmd = New SqlCommand("select * from item_detail where
hotdeals='Yes'", con)
'cmd.Parameters.AddWithValue("@sub_cat_id",
Session("subcatid"))
Dim da As New SqlDataAdapter
Dim ds As New Data.DataSet
da.SelectCommand = cmd
da.Fill(ds, "item_detail")
DataList2.DataSource = ds.Tables("item_detail")
DataList2.DataBind()
cmd.ExecuteNonQuery()
End Sub
Protected Sub DataList2_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
DataList2.SelectedIndexChanged
Dim l3 As New Label
l3 = CType(DataList2.SelectedItem.FindControl("Label13"),
Label)
Session("item_id") = l3.Text
Response.Redirect("item_detail.aspx")
End Sub
End Class
Jasleen Kaur
ONLINE SHOPPING
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
If Page.IsPostBack = False Then
datalist_fill()
End If
Jasleen Kaur
ONLINE SHOPPING
End Sub
Protected Sub DataList1_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
DataList1.SelectedIndexChanged
End Sub
Protected Sub Button2_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles Button2.Click
If Session("uid") = "" Then
If Convert.ToInt32(Session("stock")) <= 0 Then
Label21.Text = "Current Item is Out of Stock"
Else
Response.Redirect("user_login.aspx")
End If
Else
If Convert.ToInt32(Session("stock")) <= 0 Then
Label21.Text = "Current Item is Out of Stock"
Else
Response.Redirect("shopping_cart.aspx")
End If
End If
End Sub
End Class
Jasleen Kaur
ONLINE SHOPPING
USER LOGIN
Imports System.Data.SqlClient
Imports System.Configuration
Partial Class user_login
Inherits System.Web.UI.Page
Dim con As New
SqlConnection(ConfigurationSettings.AppSettings("sqlconn"))
Protected Sub Button1_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles Btn_login.Click
If con.State = Data.ConnectionState.Closed Then
con.Open()
End If
Dim cmd As New SqlCommand
cmd = New SqlCommand("select * from personal_info where
email_address=@email and password=@password ", con)
cmd.Parameters.AddWithValue("@email", txt_email.Text)
cmd.Parameters.AddWithValue("@password", txt_pass.Text)
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
If dr.Read Then
dr.Close()
Session("uid") = txt_email.Text
Response.Redirect("shopping_cart.aspx")
Else
Label5.Text = "Invalid Email Id or Password "
End If
End Sub
ONLINE SHOPPING
Label8.Visible = True
link_click.Visible = True
Btn_login.Visible = True
txt_pass.Visible = True
End If
End Sub
Protected Sub rb_no_CheckedChanged(ByVal sender As Object,
ByVal e As System.EventArgs) Handles rb_no.CheckedChanged
If rb_no.Checked = True Then
Label6.Visible = True
Label7.Visible = True
txt_newpass.Visible = True
txt_repass.Visible = True
btn_signup.Visible = True
Label5.Visible = False
Label8.Visible = False
link_click.Visible = False
txt_pass.Visible = False
Btn_login.Visible = False
End If
End Sub
Protected Sub btn_signup_Click(ByVal sender As Object, ByVal
e As System.EventArgs) Handles btn_signup.Click
Session("email") = txt_email.Text
Session("password") = txt_newpass.Text
Response.Redirect("sign_up.aspx")
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
End Sub
Protected Sub link_click_Click(ByVal sender As Object, ByVal
e As System.EventArgs) Handles link_click.Click
Response.Redirect("forget_password.aspx")
End Sub
End Class
Jasleen Kaur
ONLINE SHOPPING
SIGN UP FORM
Imports System.Data.SqlClient
Imports System.Configuration
Partial Class sign_up
Inherits System.Web.UI.Page
Dim con As New
SqlConnection(ConfigurationSettings.AppSettings("sqlconn"))
Protected Sub btn_sc_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btn_sc.Click
con.Open()
Dim cmd As New SqlCommand
cmd = New SqlCommand(" insert into
personal_info(title,first_name,last_name,Email_address,mobile_num
ber,address,city,pin_code,state,password,ques,ans)values(@title,@
first_name,@last_name,@email_address,@mobile_number,@address,@cit
y,@pin_code,@state,@password,@ques,@ans)", con)
cmd.Parameters.AddWithValue("@title", ddl_title.Text)
cmd.Parameters.AddWithValue("@first_name",
txt_fname.Text)
cmd.Parameters.AddWithValue("@last_name", txt_lname.Text)
cmd.Parameters.AddWithValue("@email_address",
txt_email.Text)
cmd.Parameters.AddWithValue("@mobile_number",
txt_mble.Text)
cmd.Parameters.AddWithValue("@address", txt_address.Text)
cmd.Parameters.AddWithValue("@city",
ddl_city.SelectedValue)
cmd.Parameters.AddWithValue("@pin_code", txt_pin.Text)
cmd.Parameters.AddWithValue("@state", txt_state.Text)
cmd.Parameters.AddWithValue("@password",
Session("password"))
cmd.Parameters.AddWithValue("@ques",
ddl_ques.SelectedValue)
cmd.Parameters.AddWithValue("@ans", txt_ans.Text)
cmd.ExecuteNonQuery()
txt_fname.Text = ""
txt_lname.Text = ""
txt_mble.Text = ""
txt_address.Text = ""
txt_pin.Text = ""
txt_state.Text = ""
Session("uid") = txt_email.Text
Jasleen Kaur
ONLINE SHOPPING
Response.Redirect("shopping_cart.aspx")
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
If Page.IsPostBack = False Then
ddl_title.Items.Add("mr.")
ddl_title.Items.Add("mrs.")
ddl_title.Items.Add("miss")
ddl_city_fill()
ddl_ques_fill()
txt_email.Text = Session("email")
End If
End Sub
Private Sub ddl_city_fill()
If con.State = Data.ConnectionState.Closed Then
con.Open()
End If
Dim cmd As New SqlCommand
cmd = New SqlCommand("select cid,cname from city", con)
Dim da As New SqlDataAdapter
Dim ds As New Data.DataSet
da.SelectCommand = cmd
da.Fill(ds, "city")
ddl_city.DataSource = ds.Tables("city")
ddl_city.DataTextField = "cname"
ddl_city.DataValueField = "cid"
ddl_city.DataBind()
End Sub
Private Sub ddl_ques_fill()
If con.State = Data.ConnectionState.Closed Then
con.Open()
End If
Dim
cmd
questions",
Dim
Dim
Jasleen Kaur
ONLINE SHOPPING
da.SelectCommand = cmd
da.Fill(ds, "questions")
ddl_ques.DataSource = ds.Tables("questions")
ddl_ques.DataTextField = "questions"
ddl_ques.DataValueField = "questions"
ddl_ques.DataBind()
End Sub
Protected Sub ddl_city_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
ddl_city.SelectedIndexChanged
If con.State = Data.ConnectionState.Closed Then
con.Open()
End If
Dim cmd As New SqlCommand("select s.sname from states
s,city c where c.scode=s.scode and c.cid=@cid", con)
cmd.Parameters.AddWithValue("@cid",
ddl_city.SelectedValue)
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
If dr.Read Then
txt_state.Text = dr("sname")
End If
dr.Close()
End Sub
End Class
Jasleen Kaur
ONLINE SHOPPING
SHOPPING CART
Imports System.Data.SqlClient
Partial Class shopping_cart
Inherits System.Web.UI.Page
Dim con As New SqlConnection("Data
Source=.\SQLEXPRESS;AttachDbFilename=D:\online_shopping\database_
online.mdf;Integrated Security=True;Connect Timeout=30;User
Instance=True")
Dim cmd As New SqlCommand
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
If Page.IsPostBack = False Then
Dim d As Date
If con.State = Data.ConnectionState.Closed Then
con.Open()
End If
If Session("item_id") <> "" Then
d = Now.Date
cmd = New SqlCommand("insert into scart
(adate,userid,icode,qty,status)values(@d,@uid,@icodevar,1,-1)",
con)
cmd.Parameters.AddWithValue("@d", d.Date)
cmd.Parameters.AddWithValue("@uid",
Session("uid"))
cmd.Parameters.AddWithValue("@icodevar",
Session("item_id"))
cmd.Parameters.AddWithValue("@qty", 1)
cmd.ExecuteNonQuery()
End If
grid_fill()
gtotal()
End If
End Sub
Private Sub grid_fill()
If con.State = Data.ConnectionState.Closed Then
con.Open()
End If
Dim dt As New Data.DataTable
dt = New Data.DataTable
' MsgBox(Session("iidvar"))
Jasleen Kaur
ONLINE SHOPPING
Dim da As New SqlDataAdapter
cmd = New SqlCommand("select
i.iname,s.adate,s.qty,i.ourprice,s.id from item_detail i,scart s
where i.id=s.icode and s.userid=@uid and s.status=-1 order by
s.id", con)
cmd.Parameters.AddWithValue("@uid", Session("uid"))
da = New SqlDataAdapter(cmd)
da.Fill(dt)
If dt.Rows.Count > 0 Then
GridView2.DataSource = dt
GridView2.DataBind()
End If
End Sub
Private
Dim
Dim
Dim
Sub gtotal()
i As Integer
q As Integer
p, t As Double
t = 0
'MsgBox(GridView2.Rows.Count)
Dim r As Integer
r = GridView2.Rows.Count
i = 0
While i < r
' MsgBox("loop")
Dim t1 As New TextBox
Dim l1 As New Label
t1 = CType(GridView2.Rows(i).FindControl("textbox2"),
TextBox)
l1 = CType(GridView2.Rows(i).FindControl("Label13"),
Label)
q
p
t
i
=
=
=
=
Convert.ToInt32(t1.Text)
Convert.ToDouble(l1.Text)
t + (p * q)
i + 1
End While
'MsgBox(t)
GridView2.FooterRow.Cells(3).Text = t
Jasleen Kaur
ONLINE SHOPPING
Session("gtotal") = t
End Sub
Protected Sub ImageButton3_Click(ByVal sender As Object,
ByVal e As System.Web.UI.ImageClickEventArgs) Handles
ImageButton3.Click
Response.Redirect("payment_details.aspx")
End Sub
Protected Sub LinkButton3_Click(ByVal sender As Object, ByVal
e As System.EventArgs) Handles LinkButton3.Click
Dim i As Integer
If con.State = Data.ConnectionState.Closed Then
con.Open()
End If
'MsgBox(GridView2.Rows.Count)
Dim r As Integer
r = GridView2.Rows.Count
i = 0
While i < r
' MsgBox("loop")
Dim t1 As New TextBox
Dim l1 As New Label
t1 = CType(GridView2.Rows(i).FindControl("textbox2"),
TextBox)
l1 = CType(GridView2.Rows(i).FindControl("Label15"),
Label)
cmd = New SqlCommand("update scart set qty=@qty where
id=@id", con)
cmd.Parameters.AddWithValue("@qty", t1.Text)
cmd.Parameters.AddWithValue("@id", l1.Text)
cmd.ExecuteNonQuery()
i = i + 1
End While
grid_fill()
gtotal()
End Sub
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
PAYMENT DETAIL
Imports System.Data.SqlClient
Partial Class payment_details
Inherits System.Web.UI.Page
Dim con As New
SqlConnection(ConfigurationSettings.AppSettings("sqlconn"))
ONLINE SHOPPING
g = rd_visa.Text
End If
cmd.Parameters.AddWithValue("@card_type", g)
cmd.Parameters.AddWithValue("@exp_month",
ddl_month.SelectedItem.Text)
cmd.Parameters.AddWithValue("@exp_year",
ddl_year.SelectedItem.Text)
cmd.Parameters.AddWithValue("@card_no",
txt_card_number.Text)
cmd.Parameters.AddWithValue("@cvv", txt_cvv.Text)
cmd.Parameters.AddWithValue("@odate", Now.Date)
cmd.ExecuteNonQuery()
Dim ono As Integer
cmd = New SqlCommand("Select max(order_no) from orders",
con)
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
If dr.Read = True Then
ono = dr(0)
End If
dr.Close()
Session("order_no") = ono
cmd = New SqlCommand("update scart set status=@status
where userid=@uid and status=-1", con)
cmd.Parameters.AddWithValue("@status", ono)
cmd.Parameters.AddWithValue("@uid", Session("uid"))
cmd.ExecuteNonQuery()
Dim icode(100) As String
Dim qty(100) As String
Dim ii As Integer
cmd = New SqlCommand("select icode,qty from scart where
status=@status and userid=@uid", con)
cmd.Parameters.AddWithValue("@uid", Session("uid"))
cmd.Parameters.AddWithValue("@status", ono)
dr = cmd.ExecuteReader
While dr.Read
Jasleen Kaur
ONLINE SHOPPING
icode(ii) = dr(0)
qty(ii) = dr(1)
ii = ii + 1
End While
dr.Close()
Dim jj As Integer
For jj = 0 To ii - 1
cmd = New SqlCommand("update item_detail set
c_stock=c_stock-@c where id=@icode", con)
cmd.Parameters.AddWithValue("@c", qty(jj))
cmd.Parameters.AddWithValue("@icode", icode(jj))
cmd.ExecuteNonQuery()
' MsgBox(icode(jj))
'MsgBox(qty(jj))
Next
Dim mob As String
cmd = New SqlCommand("select mobile_number from
personal_info where email_address=@email", con)
cmd.Parameters.AddWithValue("@email", Session("uid"))
dr = cmd.ExecuteReader
mob = ""
If dr.Read Then
mob = dr(0)
End If
dr.Close()
Jasleen Kaur
ONLINE SHOPPING
'OptionsWindow', 'width=330, height=230, top=50, left=50,
resizable=yes, toolbar=no, scrollbars=yes')</script>")
Response.Redirect("order_confirm.aspx")
End Sub
End Class
Jasleen Kaur
ONLINE SHOPPING
ORDER CONFIRM
Imports System.Data.SqlClient
Partial Class order_confirm
Inherits System.Web.UI.Page
Dim con As New
SqlConnection(ConfigurationSettings.AppSettings("sqlconn"))
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
con.Open()
Dim cmd As New SqlCommand("select max(order_no) from
orders", con)
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
Dim ono As Integer
If dr.Read Then
ono = dr(0)
End If
dr.Close()
cmd = New SqlCommand("select * from orders where
order_no=@order_no", con)
cmd.Parameters.AddWithValue("@order_no", ono)
dr = cmd.ExecuteReader
If dr.Read Then
lbl_orderno.Text = ono
lbl_amt.Text = dr("amt")
End If
dr.Close()
Dim AMT, DISP, DISRS, NETBILL As Double
AMT = lbl_amt.Text
If AMT >= 20000 Then
DISP = 15
Label5.Text = "YOUR BILL AMOUNT IS ABOVE RS.20000, SO
YOU GOT 15% DISCOUNT"
DISRS = AMT * DISP / 100
NETBILL = AMT - DISRS
Jasleen Kaur
ONLINE SHOPPING
Label6.Text = "NET BILL = RS." & Math.Round(NETBILL,
0)
ElseIf AMT >= 15000 Then
DISP = 10
Label5.Text = "YOUR BILL AMOUNT IS ABOVE RS.15000, SO
YOU GOT 10% DISCOUNT"
DISRS = AMT * DISP / 100
NETBILL = AMT - DISRS
Label6.Text = "NET BILL = RS." & Math.Round(NETBILL,
0)
ElseIf AMT >= 10000 Then
DISP = 5
Label5.Text = "YOUR BILL AMOUNT IS ABOVE RS.10000, SO
YOU GOT 5% DISCOUNT"
DISRS = AMT * DISP / 100
NETBILL = AMT - DISRS
Label6.Text = "NET BILL = RS." & Math.Round(NETBILL,
0)
Else
DISP = 0
Label5.Text = ""
Label6.Text = ""
End If
End Sub
End Class
Jasleen Kaur
ONLINE SHOPPING
ADMINISTRATOR PAGE
Imports System.Data.SqlClient
Partial Class admin_login
Inherits System.Web.UI.Page
Dim con As New
SqlConnection(ConfigurationSettings.AppSettings("sqlconn"))
Protected Sub Button1_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles Button1.Click
con.Open()
Dim cmd As New SqlCommand
cmd = New SqlCommand("Select * from admin_login where
user_name =@user_name and password =@password", con)
cmd.Parameters.AddWithValue("@user_name", txt_uname.Text)
cmd.Parameters.AddWithValue("@password", Txt_pass.Text)
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
If dr.Read = True Then
dr.Close()
Session("adminlogin") = "logged in"
Response.Redirect("admin_home.aspx")
Else
Label4.Text = "Either UserNameID or Password is
incorrect"
End If
dr.Close()
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
End Sub
End Class
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
cmd.Parameters.AddWithValue("@cat_id",
ddl_mcategory.SelectedValue)
Dim da As New SqlDataAdapter
da.SelectCommand = cmd
Dim ds As New Data.DataSet
da.Fill(ds, "subcategory")
ddl_scategory.DataSource = ds.Tables("subcategory")
ddl_scategory.DataTextField = "sub_cat"
ddl_scategory.DataValueField = "sub_cat_id"
ddl_scategory.DataBind()
End Sub
Private Sub scategory_up_fill()
If con.State = Data.ConnectionState.Closed Then
con.Open()
End If
Dim cmd As New SqlCommand("select * from sub_category
where cat_id=@cat_id", con)
cmd.Parameters.AddWithValue("@cat_id",
ddl_mcategory_up.SelectedValue)
Dim da As New SqlDataAdapter
da.SelectCommand = cmd
Dim ds As New Data.DataSet
da.Fill(ds, "subcategory")
ddl_scategory_up.DataSource = ds.Tables("subcategory")
ddl_scategory_up.DataTextField = "sub_cat"
ddl_scategory_up.DataValueField = "sub_cat_id"
ddl_scategory_up.DataBind()
End Sub
Protected Sub ddl_mcategory_SelectedIndexChanged(ByVal sender
As Object, ByVal e As System.EventArgs) Handles
ddl_mcategory.SelectedIndexChanged
scategory_fill()
End Sub
Private Sub grid_fill()
Dim cmd As New SqlCommand("select * from item_detail",
con)
Dim da As New SqlDataAdapter
da.SelectCommand = cmd
Dim ds As New Data.DataSet
da.Fill(ds, "item_detail")
GridView1.DataSource = ds.Tables("item_detail")
GridView1.DataBind()
End Sub
Jasleen Kaur
ONLINE SHOPPING
Protected Sub Button1_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles Button1.Click
FileUpload1.SaveAs(Server.MapPath("~/images/" &
FileUpload1.FileName))
Image1.ImageUrl = "~/images/" & FileUpload1.FileName
End Sub
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
GridView1.SelectedIndexChanged
con.Open()
Dim l1 As New Label
l1 = CType(GridView1.SelectedRow.FindControl("Label15"),
Label)
Dim cmd As New SqlCommand("select
i.icode,i.iname,i.mrp,i.ourprice,i.gifts,i.detail,i.discountp,i.d
iscountrs,i.warranty,i.deliverytime,i.image,i.sub_cat_id,s.cat_id
from item_detail i,sub_category s where i.sub_cat_id=s.sub_cat_id
and i.icode=@icode", con)
cmd.Parameters.AddWithValue("@icode", l1.Text)
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
Dim s, m As String
s = ""
m = ""
If dr.Read = True Then
txt_icode_up.Text = dr("icode")
txt_iname_up.Text = dr("iname")
txt_mrp_up.Text = dr("mrp")
txt_oprice_up.Text = dr("ourprice")
txt_gifts_up.Text = dr("gifts")
Txt_pd_up.Text = dr("detail")
txt_dp_up.Text = dr("discountp")
txt_drs_up.Text = dr("discountrs")
txt_w_up.Text = dr("warranty")
txt_time_up.Text = dr("deliverytime")
s = dr("sub_cat_id")
m = dr("cat_id")
Image3.ImageUrl = dr("image")
End If
dr.Close()
Jasleen Kaur
ONLINE SHOPPING
cmd = New SqlCommand
ddl_mcategory_up.SelectedValue = m
scategory_up_fill()
ddl_scategory_up.SelectedValue = s
MultiView1.ActiveViewIndex = 1
End Sub
Protected Sub Button2_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles Button2.Click
If con.State = Data.ConnectionState.Closed Then
con.Open()
End If
Dim cmd As New SqlCommand("select*from item_detail where
iname=@iname Or icode=@icode", con)
cmd.Parameters.AddWithValue("@iname", txt_iname.Text)
cmd.Parameters.AddWithValue("@icode", txt_icode.Text)
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
If dr.Read = True Then
Label13.Text = "this item already exists"
dr.Close()
Exit Sub
End If
dr.Close()
Label13.Text = ""
cmd = New SqlCommand("insert into
item_detail(icode,iname,sub_cat_id,mrp,ourprice,discountrs,discou
ntp,gifts,warranty,deliverytime,detail,image)values(@icode,@iname
,@sub_cat_id,@mrp,@ourprice,@discountrs,@discountp,@gifts,@warran
ty,@deliverytime,@detail,@image)", con)
cmd.Parameters.AddWithValue("@icode", txt_icode.Text)
cmd.Parameters.AddWithValue("@iname", txt_iname.Text)
cmd.Parameters.AddWithValue("@sub_cat_id",
ddl_scategory.SelectedValue)
cmd.Parameters.AddWithValue("@mrp", txt_mrp.Text)
cmd.Parameters.AddWithValue("@ourprice", txt_oprice.Text)
cmd.Parameters.AddWithValue("@discountrs", txt_drs.Text)
cmd.Parameters.AddWithValue("@discountp", txt_dp.Text)
cmd.Parameters.AddWithValue("@gifts", txt_gifts.Text)
cmd.Parameters.AddWithValue("@warranty", txt_w.Text)
cmd.Parameters.AddWithValue("@deliverytime",
txt_time.Text)
cmd.Parameters.AddWithValue("@detail", Txt_pd.Text)
Jasleen Kaur
ONLINE SHOPPING
cmd.Parameters.AddWithValue("@image", Image1.ImageUrl)
cmd.ExecuteNonQuery()
grid_fill()
icode_fill()
End Sub
Protected Sub Button4_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles Button4.Click
If con.State = Data.ConnectionState.Closed Then
con.Open()
End If
Dim cmd As New SqlCommand("update item_detail set
iname=@iname,sub_cat_id=@sub_cat_id,mrp=@mrp,ourprice=@ourprice,d
iscountrs=@discountrs,discountp=@discountp,gifts=@gifts,warranty=
@warranty,deliverytime=@deliverytime,detail=@detail,image=@image
where icode=@icode", con)
cmd.Parameters.AddWithValue("@icode", txt_icode_up.Text)
cmd.Parameters.AddWithValue("@iname", txt_iname_up.Text)
cmd.Parameters.AddWithValue("@sub_cat_id",
ddl_scategory_up.SelectedValue)
cmd.Parameters.AddWithValue("@mrp", txt_mrp_up.Text)
cmd.Parameters.AddWithValue("@ourprice",
txt_oprice_up.Text)
cmd.Parameters.AddWithValue("@discountrs",
txt_drs_up.Text)
cmd.Parameters.AddWithValue("@discountp", txt_dp_up.Text)
cmd.Parameters.AddWithValue("@gifts", txt_gifts_up.Text)
cmd.Parameters.AddWithValue("@warranty", txt_w_up.Text)
cmd.Parameters.AddWithValue("@deliverytime",
txt_time_up.Text)
cmd.Parameters.AddWithValue("@detail", Txt_pd_up.Text)
cmd.Parameters.AddWithValue("@image", Image3.ImageUrl)
cmd.ExecuteNonQuery()
grid_fill()
icode_fill()
txt_dp_up.Text = ""
txt_drs_up.Text = ""
txt_gifts_up.Text = ""
txt_icode_up.Text = ""
txt_iname_up.Text = ""
txt_mrp_up.Text = ""
txt_oprice_up.Text = ""
Txt_pd_up.Text = ""
Jasleen Kaur
ONLINE SHOPPING
txt_time.Text = ""
txt_w_up.Text = ""
Image3.ImageUrl = ""
MultiView1.ActiveViewIndex = 1
End Sub
Private Sub icode_fill()
If con.State = Data.ConnectionState.Closed Then
con.Open()
End If
Dim cmd As New SqlCommand
cmd = New SqlCommand("select
max(convert(int,substring(icode,2,len(icode)-1))) from
item_detail", con)
Dim i As Integer
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
If dr.Read Then
If IsDBNull(dr(0)) Then
i = 1
Else
i = dr(0) + 1
End If
End If
txt_icode.Text = "I" & Format(i, "0000")
End Sub
Protected Sub Button3_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles Button3.Click
FileUpload2.SaveAs(Server.MapPath("~/images/" &
FileUpload2.FileName))
Image3.ImageUrl = "~/images/" & FileUpload2.FileName
End Sub
Jasleen Kaur
ONLINE SHOPPING
Protected Sub Menu2_MenuItemClick(ByVal sender As Object,
ByVal e As System.Web.UI.WebControls.MenuEventArgs) Handles
Menu2.MenuItemClick
MultiView1.ActiveViewIndex = Menu2.SelectedValue
End Sub
Protected Sub Button5_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles Button5.Click
If con.State = Data.ConnectionState.Closed Then
con.Open()
End If
Dim cmd As New SqlCommand("delete from
icode=@icode", con)
item_detail where
cmd.Parameters.AddWithValue("@icode", txt_icode_up.Text)
cmd.ExecuteNonQuery()
grid_fill()
icode_fill()
txt_dp_up.Text = ""
txt_drs_up.Text = ""
txt_gifts_up.Text = ""
txt_icode_up.Text = ""
txt_iname_up.Text = ""
txt_mrp_up.Text = ""
txt_oprice_up.Text = ""
Txt_pd_up.Text = ""
txt_time.Text = ""
txt_w_up.Text = ""
Image3.ImageUrl = ""
MultiView1.ActiveViewIndex = 2
End Sub
End Class
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
Protected Sub Btn_save2_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles Btn_save2.Click
con.Open()
Dim cmd As New SqlCommand("select * from city where
ccode=@ccode or cname=@cname", con)
cmd.Parameters.AddWithValue("@ccode", Txt_citycode.Text)
cmd.Parameters.AddWithValue("@cname", txt_cityname.Text)
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
If dr.Read = True Then
Label3.Text = "this city already exists"
dr.Close()
Exit Sub
End If
dr.Close()
Label3.Text = ""
cmd = New SqlCommand("insert into
city(ccode,cname,scode)values(@ccode,@cname,@scode)", con)
cmd.Parameters.AddWithValue("@cname", txt_cityname.Text)
cmd.Parameters.AddWithValue("@ccode", Txt_citycode.Text)
cmd.Parameters.AddWithValue("@scode",
ddl_statesnew.SelectedValue)
cmd.ExecuteNonQuery()
Label3.Text = "data saved"
Txt_citycode.Text = ""
txt_cityname.Text = ""
End Sub
Private Sub grid_fill()
Dim cmd As New SqlCommand("select * from city", con)
Dim da As New SqlDataAdapter
da.SelectCommand = cmd
Dim ds As New Data.DataSet
da.Fill(ds, "city")
GridView1.DataSource = ds.Tables("city")
GridView1.DataBind()
End Sub
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
GridView1.SelectedIndexChanged
Dim l1, l2, l3 As New Label
l1 = CType(GridView1.SelectedRow.FindControl("Label5"),
Label)
l2 = CType(GridView1.SelectedRow.FindControl("Label7"),
Label)
l3 = CType(GridView1.SelectedRow.FindControl("Label6"),
Label)
Session("ccode") = l2.Text
Jasleen Kaur
ONLINE SHOPPING
Txt_citycode_up.Text = l2.Text
txt_cityname_up.Text = l1.Text
ddl_states_up.SelectedValue = l3.Text
MultiView1.ActiveViewIndex = 1
End Sub
Protected Sub Button1_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles Button1.Click
con.Open()
Dim cmd As New SqlCommand("Update city set
cname=@cname,ccode=@ccode,scode=@scode where ccode=@ccode1", con)
cmd.Parameters.AddWithValue("@cname",
txt_cityname_up.Text)
cmd.Parameters.AddWithValue("@ccode1", Session("ccode"))
cmd.Parameters.AddWithValue("@ccode",
Txt_citycode_up.Text)
cmd.Parameters.AddWithValue("@scode", ddl_states_up.Text)
cmd.ExecuteNonQuery()
grid_fill()
MultiView1.ActiveViewIndex = 1
End Sub
Protected Sub Txt_citycode_up_TextChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Txt_citycode_up.TextChanged
End Sub
ONLINE SHOPPING
Imports System.Data.SqlClient
Imports System.Configuration
Partial Class add_category
Inherits System.Web.UI.Page
Dim con As New
SqlConnection(ConfigurationSettings.AppSettings("sqlconn"))
Protected Sub btn_save1_Click(ByVal sender As Object, ByVal e
As System.EventArgs) Handles btn_save1.Click
con.Open()
Dim cmd As New SqlCommand("select*from category where
cat_name=@cat_name", con)
cmd.Parameters.AddWithValue("@cat_name",
txt_category.Text)
Dim dr As SqlDataReader
dr = cmd.ExecuteReader
If dr.read = True Then
Label2.Text = "this name already exists"
dr.close()
Exit Sub
End If
dr.close()
Label2.Text = ""
cmd = New SqlCommand("insert into category (cat_name)
values(@cat_name)", con)
cmd.Parameters.AddWithValue("@cat_name",
txt_category.Text)
cmd.ExecuteNonQuery()
End Sub
Private Sub grid_fill()
Dim cmd As New SqlCommand("select * from category", con)
Dim da As New SqlDataAdapter
da.SelectCommand = cmd
Dim ds As New Data.DataSet
da.Fill(ds, "category")
GridView1.DataSource = ds.tables("category")
GridView1.DataBind()
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
grid_fill()
End Sub
Jasleen Kaur
ONLINE SHOPPING
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
GridView1.SelectedIndexChanged
Dim l1, l2 As New Label
l1 = CType(GridView1.SelectedRow.FindControl("Label4"),
Label)
l2 = CType(GridView1.SelectedRow.FindControl("Label5"),
Label)
Session("catid") = l1.Text
Txt_ucategory.Text = l2.Text
MultiView1.ActiveViewIndex = 1
End Sub
Protected Sub btn_update_Click(ByVal sender As Object, ByVal
e As System.EventArgs) Handles btn_update.Click
con.Open()
Dim cmd As New SqlCommand("Update category set
cat_name=@cat_name where cat_id=@cat_id", con)
cmd.Parameters.AddWithValue("@cat_name",
Txt_ucategory.Text)
cmd.Parameters.AddWithValue("@cat_id", Session("catid"))
cmd.ExecuteNonQuery()
End Sub
Protected Sub Menu2_MenuItemClick(ByVal sender As Object,
ByVal e As System.Web.UI.WebControls.MenuEventArgs) Handles
Menu2.MenuItemClick
MultiView1.ActiveViewIndex = Menu2.SelectedValue
End Sub
End Class
Jasleen Kaur
ONLINE SHOPPING
ONLINE SHOPPING
End Sub
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
GridView1.SelectedIndexChanged
Dim l1, l2 As New Label
l1 = CType(GridView1.SelectedRow.FindControl("Label4"),
Label)
l2 = CType(GridView1.SelectedRow.FindControl("Label5"),
Label)
Session("SID") = l1.Text
txt_sname.Text = l2.Text
MultiView1.ActiveViewIndex = 1
End Sub
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
TESTING
Testing is the major quality control measure used during software development. Its
basic function is to detect errors in the software. During requirements analysis and
design, the output is a document that is usually textual and no executable. After the
coding phase, computer programs are available that can be executed for testing
purposes. This implies that testing not only has to uncover errors introduced during
coding, but also errors introduced during previous phases. Thus, the goal of testing
is to uncover the requirement, design, and coding errors in the programs.
Testing is extremely critical and time-consuming activity. It requires proper
planning of the overall testing process. Frequently the testing process starts with a
test plan that identifies all the testing-related activities that must be performed and
specifies the schedule, allocates the resources and specifies guidelines for testing.
The test plan specifies conditions that should be tested different units to be tested
and the manner in which the modules will be integrated together.
Different types of Testing:
UNIT TESTING: The starting point of testing is Unit Testing. In this, a
module is tested separately and is often performed by the coder himself
simultaneously along with the coding of the module. The purpose of unit testing
is to exercise the different parts of the module code to detect errors.
INTEGRATION TESTING: After Unit testing, the modules are gradually
integrated into subsystems, which are then integrated to eventually from the
entire system. During integration of modules, integration testing is performed to
detect errors by focusing on testing the interconnection between modules.
Jasleen Kaur
ONLINE SHOPPING
demonstrate to the client, on real-file data of the client, the operation of the
system. Once the above testing is successful, the system group tests the
developed prototype of the project and their best suggestions are incorporated in
the prototype to form the overall system.
Following two strategies of software testing adopted for the new system that is
as follows:
1. CODE TESTING:- Code Testing has been carried out to see the correctness
of the logic involved and the correctness of the modules. Tests are conducted based
upon sample data and actual data. All the modules are checked separately for
assuring the correctness and accuracy in all calculation.
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
The project having passed through all phases and now is ready for implementation
phase. Information on personal, money, hardware facilities and their estimated
costs have been calculated. The user needs not to be given any special training
about the programming or the system internal work. Even if he wants any change
to the previous records, he has not to interact with an interactive mode with
complex syntax. A screen has been provided for this purpose, which offers all
facilities to deal with software with very simple way. Hence a rather complex
looking task has been simplified. System testing has been carried out to check the
readiness and accuracy of the system to access update and retrieve data from files.
But work is not finished here because when the installation phase is completed and
the user staff has been trained to the change created by the system, evaluation and
maintenance of hardware and software. The important of maintenance is to
continue to bring the new system to standards.
The users are also provided with a report to assist in using the system. As the users
goes through the report he is made aware of what the past system was what is new
system an dhow is going to work. Specifications and details of operation
performed are given in system manual, which is an overview of the whole system.
The detail of how the system is to be performed. View of screen and report helps
the users to understand the system more quickly
and interactively. The system overview helps the user to get acquainted with what
the system is, what is composed of, how it works, what are the program errors
occurrence, how can they be corrected and above all how the system can be
Jasleen Kaur
ONLINE SHOPPING
utilized. The system manual also provides the inner view of the steps, which were
undertaken to construct the system, or the approaches followed to solve the
existing problem and deals with error conditions.
One of the essentials of the system implementation is availability of the user
feedback. The user feedback also helps us to know the system functioning. The
user was also very helpful to me during this phase as he self explained he requires
details about what changes.
Jasleen Kaur
ONLINE SHOPPING
Jasleen Kaur
ONLINE SHOPPING
BIBLOGRAPHY
AUTHOR
Programming of ASP.NET
Black Book
Greg Buczek
E.M. Awad
Software Engineering
Pankaj Jalote
Fundamental
Application
of
file:///D:\onlineshopping\add_item.aspx
Jasleen Kaur