89
BABU BANARSI DAS NATIONAL INSTITUTE OF TECHNOLOGY AND MANAGEMENT PROJECT REPORT ON ONLINE MARKETING TEAM MEMBERS : SUBMITTED TO: SHUBHAM PRATAP SINGH Mr. RAJAN PRASAD 1

sps.doc

  • Upload
    shubham

  • View
    215

  • Download
    0

Embed Size (px)

Citation preview

Page 1: sps.doc

BABU BANARSI DAS NATIONAL INSTITUTE OF TECHNOLOGY AND MANAGEMENT

PROJECT REPORT ON

ONLINE MARKETING

TEAM MEMBERS : SUBMITTED TO:SHUBHAM PRATAP SINGH Mr. RAJAN PRASADSATYENDRA KUMAR MADHESHIYA

DEPARTMENT OF INFORMATION TECHNOLOGY

1

Page 2: sps.doc

Certificate

Certified that Shubham Pratap Singh and Satyendra Kumar

Madheshiya has carried out the Project work presented in this

report entitled “Online Marketing” for the B.Tech. Third Year from

Babu Banarasi Das National Institute of Technology & Management,

Lucknow under my supervision. The report embodies result of

original work and studies carried out by Student himself and the

contents of the Project do not form the basis for the award of any

other degree to the candidate or to anybody else.

Name of Project Guide

Mr.Rajan Prasad

2

Page 3: sps.doc

Acknowledgement

I wish to express my sincere gratitude to Mr. Rajan Prasad, Assistant

Professor of IT department and Mr. V.K. Singh, H.O.D of IT Department of

BBD NATIONAL INSTITUTE OF TECCNOLOGY AND

MANAGEMENT for providing me an opportunity to do my project work on

“ONLINE MARKETING” the project of IBM. This project bears on imprint

of many peoples. I sincerely thank to my team member for giving her proper

support and encouragement in carrying out this project work I also wish to

thank my colleague of “IT DEPARTMENT” whose suggestions were too

important. For their kind co-operation to the completion of my project work.

Last but not least I wish to avail myself of this opportunity, express a sense

of gratitude and love to my friends and my beloved parents for their manual

support, strength, help and for everything 

Place:

Lucknow

Date:05-06-2012

Contents

3

Page 4: sps.doc

1.Abstract of project………………..………………………7-102.List of table used in project…………………………………...53.List of figures…………………………………………………64.Chapters 4.1 Chapter1:Study of existing system & system requirement………………11-16 4.2 Chapter2.Project definition, Planning& scheduling…………………17-22 4.3 Chapter3:Analysis………………………………....23-28 4.4 Chapter4:Design……………………………….......29-36 4.5 Chapter5:Coding & screenshots………………........37-63 4.6 Chapter6:Testing and Analysis………………………...635. Web Project Security…………………………………….....646.Maintenance………………………………………………..657. Future scope of project…………………………………….668.Bibliography………………………………………………...67

4

Page 5: sps.doc

List of Tables

1. Customer details2. Dealer3. Item4. Computer5. Printer6. Accessories7. Login8. Purchase Book9. Sales Book

10.Stock 11.Order 12.Feedback

5

Page 6: sps.doc

List of figures

1. Data Flow Diagrams

2. E-R Diagram

3.Use case Model Survey

4.Architectural design

5.Activity diagram 5.1Activity diagram for administrator 5.2Activity diagram for customer 5.3Activity diagram for employee

6. Sequence diagram

6

Page 7: sps.doc

Abstract

Introduction:

In this fast changing world, every person is getting busy

day by day. He has less time remaining for doing other things besides his

work. We can make use of computerization to solve these problems and

provide a quick service to the customer. My website will facilitate the

customers to get all the details regarding the products (like Computer, A.C,

T.V) that he want to purchase. So we hope that customer will find this site

useful.

Things for sale on the Internet can be either tangible,

deliverable items or intangible ideas. They can be for sale by individuals or

by corporate entities. They can be new (like new automobiles or, more

commonly, new computers) or used (where computers are even more

common), or perhaps “pre-owned” like houses .Probably the distinguishing

characteristics of sales transactions is how formal or informal they are.

This project facilitates Online Shopping that is any

customer can purchase any item through this website. This website shows

the details of all major shops. It helps to know all details in a sequence. This

displays the latest price list of all computer parts. So customer will not have

to suffer for any information of any parts. Customer can get easily all the

7

Page 8: sps.doc

details from anywhere else. It also provides facility for quick search of any

item. In case, we want to know the detail about the current monitor, then it

will display all the companies with their item and price. It also provides the

advertisement of sponsored shop, if any shop wants to give the details. This

project also shows the detail about branded computers i.e. detail about

branded computers, for example –HCL, ZENITH, HP etc.

This website facilitates the facility to make subscribers

i.e. any customer which have been registered, can get any details. We will

send the details about latest price list via email monthly. Customer can also

send the request for solving any problem related to computer field. This

solves the entire problem that is Call – Servicing facility is also available.

Customer can purchase any product through our website. Only registered

user can order the product and he can see all the details about the product.

If any user wants to sell his product through this website,

then he has to be first registered himself. After this, he will fill the form, and

give the product details such as product name, category, minimum price, id,

details etc. That is he can participate in auctions but he should be registered.

If registered user wants to enquiry for the particular product, he will fill the

form and give his details such as Name, City, Email address and message to

the dealer. Website provides the facility to customer to send queries and

messages. It will maintain an enquiry database to further contact in the

future. Any types of feedback or suggestions are invited to improve the

website facilities.

8

Page 9: sps.doc

Objective:

The primary objective for this project is to provide all the

details related to the computer and other electrical appliances . This will

provide the facility for On Line Purchasing items. This will be time

consuming for every customer and vender also. Therefore there is no need to

go anywhere else for searching any details like price list or any other

information .This will provide quick detail for any product. So we can get

the product name, price and other details .It will also give ONLINE HELP

for customers. Any customer can get any help regarding Items .It narrows

the gap between Customer and company .This will facilitate service at your

doorstep. Therefore this will be save time for customer .So overall it will

work as a associate for company , customer and shopkeepers .It will also

help the shopkeepers to launch their offer-scheme in a more interesting way.

It will increase their customer base.

Branded companies can uses this website as a tool for

marketing of their latest models. Internet – based customer service can be a

highly visible, high technology, high advantage and relatively low –cost

activity when Internet delivery is used to supplement or replace the extant

services performed by multiple departments in a business. We mean that

customer service includes all the many activities involved in interacting with

your customer community. This usually means: Responding to requests for

information about your organization and/or your products and services.

Taking orders from your customers and responding to inquiries from your

9

Page 10: sps.doc

customers about the status of their orders. Addressing problems your

customers may be having with using your product or service.

Therefore our objective is to provide an automated

system to the customer. Following points describes our objective and

requirements of the company:

To decide the best platform, software and tools for the proposed system.

Provide security features in using the system like one administrator

password, creating users and assigning privileges to users of the system.

System should be capable to keep track of detailed inventory and job

services offered by the company. Various outputs (reports) should be

available online any time. The system should have daily backup and restore

facility to allow complete protection of data. The system should provide on-

line help at each and every point of time.

Project Category:

It is an ONLINE PROJECT. It is a web site that primarily deals in buying

and selling over the net. For the efficient working it needs web server and

database technologies. Client request for the product and company will

provide it to the customer.

The web is based on CLIENT – SERVER ARCHITECTURE. Here is

diagram that displays the normal working of a connection-oriented network:

10

Page 11: sps.doc

Fig : Client Server Architecture For Connection Oriented Network

11

Page 12: sps.doc

1.Tools/Plateform,Hardware and Software

Requirements Specification

Formal Definition:

.NET is a set of Microsoft software technologies that connect

information, people, System and devices, generally via the web.

.NET Framework

.NET frame is an integral windows component that supports building

and running application and XML web services developed within the .NET

environment.

ASP.NET:

It is latest Technology, which gives a platform develop web

application. It has separate business logic. It used full flash language (c#,

VB.net) but at a time only one language can be used.

SQL Server:-

SQL server 2000 works on window’s-based platform, including windows-

XP, NT, 2000 and windows CE. It is RDBMS. It stores interrelated data

with minimum redundancy. This data is manipulated and retrieved by SQL

language when necessary. The response time (the time taken by the system

to answer the query) of SQL Server is minimum. it has minimum

redundancy hence the data is not space expensive in SQL Server. Privacy

12

Page 13: sps.doc

and security are also highly concerned in SQL Server. it is Data

Management and Analysis Solution for the Enterprises.

Features of SQL Server:-

1) Provides Fast Recovery: - a new faster recovery option will be able

to reconnect to a recovering database after the transaction log has

been rolled forward.

2) Security Enhancement: -SQL Server includes security enhancement

such as database encryption; secure default settings, password policy

enforcement, fine-grained, permission control and an enhance security

model.

3) Data Partitioning: - data partitioning will be enhanced with native

table and index partitioning that enables efficient manageability of

large tables and indexes.

4) Replication Enhancement:

For distributed database, SQL Server

provides comprehensive schema change (DDL) replication, next

generation monitoring capabilities, build in replication from Oracle to

SQL Server, merge replication over https, and significant merge

replication scalability and performance improvements.

SQL Server 2000 has introduced SQL Server

Management Studio, a new integrated suit of management tools. This

13

Page 14: sps.doc

toolset will include new functionality to develop, deploy, and

troubleshoot SQL Server database, as well as enhancement of

previous functionality

METHODOLOGY:

FOR SQLSERVER:

14

Web Server

Server EngineContainer

ASP.NET

Client

Web Server

SQLServer

Administrator

Page 15: sps.doc

Requirement Specification

Software Requirements:

Windows-XP,

Microsoft Visual Studio 2008(ASP.net, C#),

Flash,

PhotoShop,

SQL Server (Personal Edition)

Front End:

ASP.NET with C#

Back End:

SQL Server 2008

Hardware Requirement:

Processor Minimum 600 megahertz(MHz) Pentium processor.

Recommended:1 gigahertz(GHZ) Pentium processor.

RAM 512 megabytes (MB).

Recommended: 1 GB .

15

Page 16: sps.doc

Hard Disk 1 GB free space is required.

Display Minimum: 800 x 600 (16-Bit-colour)

Recommended: 1024 x 768 (True Color 32-bit)

Mouse Microsoft mouse or compatible pointing device .

16

Page 17: sps.doc

2.Problem Definition, Requirement Specification,

Project Planning And Scheduling

Problem Definition

The project work is based upon online shopping of various products

since it is very difficult to get all the information on various product at a key

step so we provide a facility for users to get all information like product

features and price and their provider details at a key stoke

Requirement Specification

Introduction

A:- Purpose: To provide a users all information about electrical

product and to provide facility to purchase them online.

B:- Scope: This software will used for purchasing electrical

product online .This software will be used for handling large database

of employee information within a fraction of time with absolute

accuracy .Through this software we will also share information of

equipment of next generation among the users

C:- Benefits and Goals: The main Goal of this project will be to

provide facility to user to purchase various electrical products

online .and maintain employee database.

Overall Description

A:- Project Description: This software is developed for users

provide facility to purchase various electrical products online .This

software provide all the information about all electrical appliances

17

Page 18: sps.doc

like computer ,printer .and their accessories also available They have

option to get delivery of the product at their home or they can

purchase from our outlets .Users also gets newly launched product

information just login to our web.

B:-Users of Project:

The users of the system are as follows:-

Administrator(HIGH), Managers(MID),Staff

(LOW).,Customers

Administrator

1. He has the privilege of creating and removing

users(Employee).

2. He only can make amendments in the member’s details

(adding new members, change the address, phone number etc.)

3. He can also make amendments in the new product

(Item ,Price ,etc)

Managers(MID),Staff(LOW)

They Manage all the information like stock information

and payment details of the customers and provide response to

customers by receiving their feedback and answered their queries,

Customers.

They can use software to getting information about various

electrical product they can use this web to purchase desired electric

product .They can also gets service provider details from our web.

.

18

Page 19: sps.doc

Specific Requirement

A. Interface Requirement: The above system can be designed

for Windows.

B. User Requirement: The users need training for the basic of

Computer.

C. Hardware Requirement: As Already Given.

D. Software Requirement: As Already Given.

E. Logical Database Requirement: Primary and Secondary

keys are defined to handle the database table.

F. Instruction for Security: Password security will be used in

the project.

.

Interface Design

A. User Interface: We will develop a software user friendly.

B. Hardware Interface: The system will run on Hp-Compaq

Machine and IBM system.

C. Software Interface: We will design the software interface

by the use of ASP.NET.

19

Page 20: sps.doc

Modules of the project

New User Registration Process(For Customer)

Form Submission:

In this process, new user first of all registered himself by

the submission of form and the user details (i.e. Name, Address,

Phone no. etc) are sent. We also generate customer_id for the

customer

Form Validation Process:

After submitting the form, the validation of the form is

checked. In this, it will check that the user has been entered all

the mandatory details or not. If all the mandatory details are not

entered by the user, then it will send the message to the user

that all the details are not entered by the user otherwise it will

registered the user.

Feed Back :

If registered user has any problem in his purchased item or

any other query, then he can take help by filling feedback form.

20

Page 21: sps.doc

New Employee User Registration Process (For Administrative

Only)

Form Submission:

In this process, all the details of new employee is

submitted by any administrative authority like (i.e. Name, Address,

Phone no.,password Etc) are sent. We also generate Employee id for

the Employee.

Form Validation Process:

After submitting the form, the validation of the form is

checked. In this, it will check that the user has been entered all the

mandatory details or not. If all the mandatory details are not entered

by the user, then it will send the message to the user that all the details

are not entered by the user otherwise it will registered .

Login:-

Only Employee and administrator can login with

valid login id and password to access confidential file .Validation of

the login is checked by the login Database. Confirmation or rejection

of the login is sent to the user. Only administrator can create new user

and delete existing.

21

Page 22: sps.doc

Order Product :

Only registered customers can ordered the

product . Customer can search all the details about the product and

after that, user can order for the product. At time of order customer

have to give customer id and password

Dealer Information

This module possess with the dealer as follows:-

Add new dealers

Delete existing dealer

Modification of existing dealer information

**only administrator or high authority employee can access

it.

Stock Monitoring

This module possess to monitor the stock updating

of sales and purchase will also update the stock and if any item

become short then message is sent to the administrator at a time of

login.

Feed Back Response:

If registered user has any problem and user filled

up feedback form then all the possible solution and service provider

detail send to him.

22

Page 23: sps.doc

3.Analysis

3.1Data Flow Diagram

ADMIN CUSTOMERONLINE

MARKETING

1 LEVEL DFD FOR ADMIN

LOGIN

LOGIN TABLE

VIEW CUSTOMER

DETAILS

USER TABLE

ADD & VIEWDELIVERYREPORT

STORE TABLE

VIEW FEEDBACK

FEEDBACKSELL TABLE

ADMIN

VIEW DAILY SELL

DELETE PRODUCTS

EDIT PRODUCTS

ADD PRODUCTS

CATEGORY TABLE

PRODUCT TABLE

ID&PASSWORD VERIFIEDDATA

DATA FORVERIFICATION

CUSTOMERDETAIL

DELIVERYDETAILS

SELL DETAILFEEDBACKDETAILS

REJECTED IF

NOT MATCH

CATEGORYDETAILS

PRODUCTDETAILS

PRODUCTDETAILS

PRODUCT

DETAILS

23

Page 24: sps.doc

1 LEVEL DFD FOR CUSTOMER

LOGINCUSTOMER

LOGIN TABLE

VIEW DELIVERYREPORT

STORE TABLE

MAKE PAYMENT ADD

FEEDBACK

FEEDBACKACCOUNT

TABLE

BUY PRODUCTS

SEE SELECTED

ITEMSPRODUCT

TABLE

TEMP TABLE

ID&PASSWORD

DATAVERIFICATION

VERIFIEDDATA

DELIVERYDETAILS

FEEDBACKDETAILSPAYMENT DETAILS

PRODUCT DETAILS

REJECTED

IF NOT

MATCH

SELECTPRODUCT

REJECTED IFPRODUCT

NOTAVAILABLE

IF AVAILABLESTOREDATA

SELECT ITEMS

TOTALBILL

REJECT IFAMOUNT NOT AVAILABLE

24

Page 25: sps.doc

3.2ActivityDiagram3.2.1Activity Diagram for administrator

25

Page 26: sps.doc

3.2.2 Activity Diagram For Customer

26

Page 27: sps.doc

3.2.3 Activity Diagram For Employee

27

Page 28: sps.doc

3.3Sequence Diagram

28

Page 29: sps.doc

4.Design

4.1 E-R Diagram

PROD_NAME

PRICE

QUANTITYPRODUCT

PROD_ID

BUYPRODUCT

CUSTOMER

PHONE NO.

SEX

ADDRESS

EMAIL_ID

USER_NAME

USER_ID

DOB

MAKEPAYMENT

WRITEFEEDBACK

SEEDELIVERY

ACCOUNT

FEEDBACK

STORE

ACC_NO.

PIN NO.

BANK NAME

FEEDBACKTYPE

FEEDBACK

COMMENT

ORDER NO.

REPORT

29

Page 30: sps.doc

4.2 USES-CASE MODEL SURVEY

30

Page 31: sps.doc

4.3ARCHITECTURE DESIGN

31

Page 32: sps.doc

4.4Data Structure

In the project work, we will use the following tables:

Table No 1.CUSTOMER DETALS

Table Name : Customer_Details:-

SN0 Name of the field

Data Type Discription

1 Customer_Id # Varchar(5) Its provided to customer for further contacts2 Name Varchar(35) Name of the customer3 Address Varchar(150) Address detail of the customer4 Email_Id Varchar(35) Email address of customer 5 Phone_No Varchar(30) Phone No of the customer6 Password Varchar(6) Provided to customer for updation of their

address details

Table No 2.DEALER

Table Name : Dealer:-SN0 Name of the

fieldData Type Discription

1 D_Code # Varchar(5) Its provided to dealer for further contacts2 Name Varchar(35) Name of the dealer3 Address Varchar(150) Address detail of the dealer4 Country Varchar(10) Country of the dealer5 State Varchar(15) State of the dealer6 Contact_Person Varchar(25) Name of the person through which purchase

goods from dealer7 Phone_No Varchar(30) Phone No of the dealer8 Company Varchar(35) Name of the company9 Email_Id Varchar(35) Email address of dealer 10 Item_Type Varchar(25) Type of Item like Computer, A.C,etc.

32

Page 33: sps.doc

Table No 3.ITEM **

Table Name : Item :-

SN0 Name of the field

Data Type Discription

1 Company Varchar(35) Name of the company2 Item_Type Varchar(15) Item type of item like computer ,print

Table No 4.COMPUTER

Table Name : Computer:-

Table No 5.PRINTER

Table Name : Printer:-

SN0 Name of the field

Data Type Discription

1 Company # Varchar(35) Name of the printer2 Model_No # Varchar(15) Model No of the printer3 Memory Varchar(25) Memory of the printer4 Speed Varchar(35) Speed of the printer5 DPI Varchar(15) DPI capicity of the printer6 Categry Varchar(20) Printer is dotmatrix or laser7 Add_Feature Varchar(200) Additional feature of the printer8 Price numeric(50) Price of the printer

SN0 Name of the field

Data Type Discription

1 Company # Varchar(35) Name of the company2 Model_No # Varchar(15) Model No of the computer3 Processor Varchar(50) Processor name of the computer4 Ram Varchar(35) Ram of the computer5 Mother_Board Varchar(50) Mother board name of the computer6 HDD Varchar(25) Hard disk capicity of the computer7 Drive Varchar(50) Drive of the computer8 Monitor Varchar(100) Monitor of the computer9 Modem Varchar(20) Modem of the computer10 Categry Varchar(20) Computer is desktop or laptop11 Add_Feature Varchar(200) Additional feature of the computer12 Web_Cam Varchar(20) Web camera of the computer13 Price numeric(50) Price of the computer

33

Page 34: sps.doc

Table No 6.ACCESSERIES

Table Name : Accesseries:-

SN0 Name of the field

Data Type Discription

1 Company # Varchar(35) Name of the company2 Model_No # Varchar(15) Model No of the item3 Item_Name Varchar(25) Name of the item like mouse,pen drive4 Add_Feature Varchar(200) Additional feature of the item5 Price numeric(50) Price of the item

Table No 7.LOGIN

Table Name : Login :-

SN0 Name of the field

Data Type Discription

1 Login_Id # Varchar(15) Login id of the employee2 Password Varchar(15) Password of the employee3 Profile Varchar(10) Profile of the employee like high,mid or low

Table No 8.PURCHASE BOOK

Table Name : Purchase_Book:-

SN0 Name of the field

Data Type Discription

1 Company * Varchar(35) Name of the company2 Model_No * Varchar(15) Model No of the item3 Item_Type Varchar(25) Type of the item like computer,A.C4 DOP Datetime(8) Date of purchasing5 QTY Numeric(9) Quantity of the item6 Price_Qty Numeric 9(18,0) Price as per item7 Total_Ammount Varchar(5) Total price of selected items8 Cancled Varchar(5) Is order canceled or not9 D_Code Varchar(5) Its provided to dealer for further contacts

34

Page 35: sps.doc

Table No 9 .SALES BOOK

Table Name : Sales_Book:-

SN0 Name of the field

Data Type Discription

1 Receipt_No Numeric 9(18,0)

Receipt No provided to customer if product delivered

2 Company * Varchar(35) Name of the company3 Model_No * Varchar(15) Model No of the item4 Item_Type Varchar(25) Type of the item like computer,A.C5 Customer_Id * Varchar(5) Its provided to customer for further contacts6 Customer_Name Varchar(35) Name of the customer7 Price Numeric

9(18,0)Price of selected items

8 Tax Numeric 9(18,0)

Tax as per rule

9 Total_Ammount Numeric 9(18,0)

Total paid Ammount

10 DOS Datetime(8) Date of sales11 Payment Varchar(15) Payment mode as Checque no,credit card no12 Cancled Varchar(5) Is order calcled if payment not confirmed13 CM Char(5) Current Month14 CY Char(5) Current Year

Table No 10.STOCK

Table Name : Stock:-

SN0 Name of the field

Data Type Discription

1 Company * Varchar(35) Name of the company2 Model_No * Varchar(15) Model No of the A.C3 Item_Type Varchar(25) Type of item like computer,Tv4 QTY Numeric(9) Quantity of the item

35

Page 36: sps.doc

Table No 11.ORDER

Table Name : Order:-

SN0 Name of the field

Data Type Discription

1 Customer_Id * Varchar(5) Its provided to customer for further contacts2 Model_No * Varchar(15) Model No of the A.C3 Item_Type Varchar(25) Type of item like computer,Tv4 Company Varchar(35) Name of the company5 Verified Varchar(5) Is payment done or not

Table No 12.FEED BACK

Table Name : Feed_Back:-

SN0 Name of the field

Data Type Discription

1 Sno Varchar(5) Serial no of feed back 2 Customer_Id * Varchar(5) Its provided to customer for further contacts3 F_Back Varchar(300) Taking feed back from the customer

# Primary Key

* Foreign Key (Reference Key )

**Concept of Specialization is used

36

Page 37: sps.doc

5.Coding

Screenshots and source code

Screen : focus.aspx

37

Page 38: sps.doc

38

Page 39: sps.doc

39

Page 40: sps.doc

Code Page : focus.aspx

using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;

public partial class FOCUS : System.Web.UI.UserControl{ protected void Page_Load(object sender, EventArgs e) {

} protected void LinkButton3_Click(object sender, EventArgs e) { Session.Clear(); Session.Add("ch", "3"); Response.Redirect("laptopinf.aspx"); } protected void LinkButton2_Click(object sender, EventArgs e) { Session.Clear(); Session.Add("ch", "2"); Response.Redirect("laptopinf.aspx"); } protected void LinkButton1_Click(object sender, EventArgs e) { Session.Clear(); Session.Add("ch", "1"); Response.Redirect("laptopinf.aspx"); } protected void LinkButton4_Click(object sender, EventArgs e) { Session.Clear(); Session.Add("ch", "1"); Response.Redirect("desktopinf.aspx"); } protected void LinkButton5_Click(object sender, EventArgs e)

40

Page 41: sps.doc

{ Session.Clear(); Session.Add("ch", "2"); Response.Redirect("desktopinf.aspx"); } protected void LinkButton6_Click(object sender, EventArgs e) { Session.Clear(); Session.Add("ch", "3"); Response.Redirect("desktopinf.aspx"); }

protected void Userlogin1_Load(object sender, EventArgs e) {

} protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { Session.Clear(); Session.Add("ch", "1"); Response.Redirect("laptopinf.aspx"); } protected void ImageButton3_Click(object sender, ImageClickEventArgs e) { Session.Clear(); Session.Add("ch", "2"); Response.Redirect("laptopinf.aspx"); } protected void ImageButton5_Click(object sender, ImageClickEventArgs e) { Session.Clear(); Session.Add("ch", "3"); Response.Redirect("laptopinf.aspx"); } protected void ImageButton2_Click(object sender, ImageClickEventArgs e) { Session.Clear(); Session.Add("ch", "1"); Response.Redirect("desktopinf.aspx"); } protected void ImageButton4_Click(object sender, ImageClickEventArgs e) {

Session.Clear(); Session.Add("ch", "2"); Response.Redirect("desktopinf.aspx");

41

Page 42: sps.doc

} protected void ImageButton6_Click(object sender, ImageClickEventArgs e) { Session.Clear(); Session.Add("ch", "3"); Response.Redirect("desktopinf.aspx"); } protected void LinkButton7_Click(object sender, EventArgs e) { Response.Redirect("userlogininf.aspx"); } protected void ImageButton9_Click(object sender, ImageClickEventArgs e) {

} protected void ImageButton9_Click1(object sender, ImageClickEventArgs e) {

}}

42

Page 43: sps.doc

Screen : desktopinf.aspx

43

Page 44: sps.doc

44

Page 45: sps.doc

Screen : laptopinf.aspx

45

Page 46: sps.doc

46

Page 47: sps.doc

Code Page : desktopinf.aspx

//All the information related to Desktop is handeled by this web page

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

public partial class desktopinf : System.Web.UI.Page{ int ch; SqlConnection con = new SqlConnection("Data source=.;database=EMS;user id=sa"); SqlCommand CMD = new SqlCommand(); SqlDataAdapter da = new SqlDataAdapter(); DataSet ds = new DataSet(); DataRow dr; protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { ch = Convert.ToInt32(Session.Contents["ch"]); Session.Clear(); if (con.State == 0) con.Open(); if (ch >= 1 && ch <= 3) { if (ch == 1) { hpcdesktop(); }

47

Page 48: sps.doc

else if (ch == 2) { hcldesktop(); } else if (ch == 3) { lenovodesktop(); } datatomodel(); } else { hpcdesktop(); CNAME.Visible = true; CMD = new SqlCommand("select DISTINCT COMPANY FROM COMPUTER", con); da.SelectCommand = CMD; ds = new DataSet(); da.Fill(ds, "computer"); int tr; tr = ds.Tables[0].Rows.Count; int a; CNAME.Items.Clear(); CNAME.Items.Add("Select Company Name"); for (a = 0; a < tr; a++) { dr = ds.Tables[0].Rows[a]; CNAME.Items.Add(Convert.ToString(dr[0])); } }

} }

//This function is used to display inoformatoin According to selected company of Desktop

private void datatomodel() { MNO.Items.Clear(); da.SelectCommand = CMD; ds = new DataSet(); da.Fill(ds, "computer"); int tr;

48

Page 49: sps.doc

tr = ds.Tables[0].Rows.Count; int a; MNO.Items.Add("Select Model No"); for (a = 0; a < tr; a++) { dr = ds.Tables[0].Rows[a]; MNO.Items.Add(Convert.ToString(dr[0])); } CPU.Text = ""; RAM.Text = ""; HDD.Text = ""; MONITOR.Text = ""; AF.Text = ""; PRICE.Text = ""; COLORS.Text = ""; MOTHERBOARD.Text = ""; DRIVE.Text = ""; MODEM.Text = ""; WEBCAM.Text = ""; }

//This function is used to display inoformatoin related to Hcl Desktop private void hcldesktop() { CMD = new SqlCommand("select Model_No from COMPUTER where COMPANY='hcl' AND CATEGORY='DESKTOP'", con); Image6.ImageUrl = "c:/dotnet/focus/IMAGES/logo/sony.jpg"; Label1.Text = "HCL recommends Windows Vista® Business. "; Label2.Text = "HCL Desktop Products"; Label12.Text = "Most manufacturers let your build your own Desktop. What sets HCL VAIO apart is the freedom you're given to create something truly unique. Of course you can still hand-pick memory, storage and processors speeds. But that's just the beginning "; Label11.Text = "The next generation of processing technology has arrived. Built into the newest VAIO Desktops lies Intel's latest, most powerful innovation yet: Intel® Centrino® 2 processor technology. Boasting incredible speed, expanded wireless connectivity, enhanced multimedia support and greater energy efficiency, all the high-performance essentials are seamlessly combined into a single chip."; Image1.ImageUrl = "c:/dotnet/focus/IMAGES/desktop/hcl.jpg"; Image2.ImageUrl = "c:/dotnet/focus/IMAGES/desktop/hcld2.jpg"; Image3.ImageUrl = "c:/dotnet/focus/IMAGES/desktop/hcld4.jpg"; Image4.ImageUrl = "c:/dotnet/focus/IMAGES/desktop/hcld7.jpg"; Image6.ImageUrl = "c:/dotnet/focus/IMAGES/sonylogo1.jpg";

49

Page 50: sps.doc

Label13.Text = "VAIO® SR Series Desktop PC VGN-SR190EBQ Intel® Core™ 2 Duo Processor P8600 (2.40 GHz, 3MB L2 Cache) Genuine Windows Vista® Home Premium Features: 13.3"; Label13.Text = Label13.Text + " widescreen display, 4GB RAM, 320GB hard drive, Fingerprint "; Label14.Text = "VAIO® TZ Series Desktop PC VGN-TZ290EAB Intel® Core™ 2 Duo Processor U7600 (1.20 GHz, 2MB L2 Cache) Genuine Windows Vista® Home Premium Features: 11.1"; Label14.Text = Label14.Text + "LCD XBRITE-HiColor™ display, 2GB RAM, 100GB hard drive"; Label15.Text = "VAIO® Z Series Desktop PC VGN-Z540EBB Intel® Core™ 2 Duo Processor P8600 (2.40 GHz, 3MB L2 Cache) Genuine Windows Vista® Home Premium Features: 13.1"; Label15.Text = Label15.Text + "widescreen display, 3GB RAM, 320GB hard drive, Hybrid Graphics"; }

//This function is used to display inoformatoin related to HP and COMPAQ Desktop private void hpcdesktop() { CNAME.Visible = true; Label16.Visible = true; Image5.Visible = true; //Image6.Visible = false; CMD = new SqlCommand("select Model_No from COMPUTER where COMPANY='" + CNAME.Text + "' AND CATEGORY='DESKTOP'", con); Label1.Text = " HP and Compaq recommends Windows Vista® Business. "; Label2.Text = "HP and Compaq Desktop Products"; Label11.Text = "On your HP Home & Home Office Store credit card, subject to credit approval. Based only on the purchase price of this item. Taxes, shipping costs, additional purchases and other fees are not included in the monthly payment amount. A higher revised monthly payment amount will be calculated at checkout based on shipping preferences and zip code information. "; Image1.ImageUrl = "c:/dotnet/focus/IMAGES/desktop/hcl1.jpg"; Image2.ImageUrl = "c:/dotnet/focus/IMAGES/desktop/hpc2.jpg"; Image3.ImageUrl = "c:/dotnet/focus/IMAGES/desktop/hcld8.jpg"; Image4.ImageUrl = "c:/dotnet/focus/IMAGES/desktop/hcld3.jpg"; Image5.ImageUrl = "c:/dotnet/focus/IMAGES/logo/hp.jpg"; Image6.ImageUrl = "c:/dotnet/focus/IMAGES/hplogo.jpg"; Image5.ImageUrl = "c:/dotnet/focus/IMAGES/clogo.gif"; Label12.Text = "Focus.com for a complete selection of HP Compaq business Desktop computers, Desktop pc, tablet PCs, and portable computing options and accessories"; Label13.Text = "15.4 (diagonal) high-definition widescreen ";

50

Page 51: sps.doc

Label13.Text = Label13.Text + " Best for movies, music, photos, multitasking "; Label13.Text = Label13.Text + " Available with optional flush glass, discrete graphics, Blu-Ray, TV tuner and a range of connectivity solutions (Wi-Fi, Bluetooth, Mobile Broadband) "; Label14.Text = "12.1 or 14.1 (diagonal) high-definition widescreen "; Label14.Text = Label14.Text + " Tablet or Desktop PC for on-the-go productivity, advanced connectivity "; Label14.Text = Label14.Text + " Available with optional flush glass, discrete graphics, Blu-Ray, TV tuner and a range of connectivity solutions (Wi-Fi, Bluetooth, Mobile Broadband) "; Label15.Text = "17 or 20.1 (diagonal) high-definition widescreen "; Label15.Text = Label15.Text + " Cutting-edge entertainment and gaming "; Label15.Text = Label15.Text + " Available with optional flush glass, discrete graphics, Blu-Ray, TV tuner and a range of connectivity solutions (Wi-Fi, Bluetooth, Mobile Broadband) "; }

//This function is used to display inoformatoin related to Lenovo Desktop private void lenovodesktop() { CMD = new SqlCommand("select Model_No from COMPUTER where COMPANY='lenovo' AND CATEGORY='DESKTOP'", con); Label1.Text = " lenovo recommends Windows Vista® Business. "; Label2.Text = "lenovo Desktop Products"; Image1.ImageUrl = "c:/dotnet/focus/IMAGES/desktop/lenovo1.jpg"; Image2.ImageUrl = "c:/dotnet/focus/IMAGES/desktop/hcl2.jpg"; Image3.ImageUrl = "c:/dotnet/focus/IMAGES/desktop/lenovod1.jpg"; Image4.ImageUrl = "c:/dotnet/focus/IMAGES/desktop/lenovod3.jpg"; Image6.ImageUrl = "c:/dotnet/focus/IMAGES/dell.gif"; Label11.Text = "Inspired by your needs, the new Dell Latitude family of commercial Desktops have been completely re-engineered and redesigned with groundbreaking advancements in durability, security, battery life, connectivity and remote administration. All new Dell Latitude Desktops feature exclusive innovations such as: "; Label12.Text = "Introducing Latitude Desktops. Completely redesigned with groundbreaking advancements in durability, security, battery life, and connectivity."; Label13.Text = "Inspiron Desktops available in up to 8 colors & 4 patterns"; Label13.Text = Label13.Text + "Go Anywhere Wireless options for advanced Desktop mobility "; Label13.Text = Label13.Text + "Experience Life in Hi-Def with multiple Desktop entertainment features";

Label14.Text = "Available in 7 colors & a unique pattern with 4 trim color options ";

51

Page 52: sps.doc

Label14.Text = Label14.Text + " Stylish design with slot loading DVD, biometric fingerprint reader and illuminated keyboard "; Label14.Text = Label14.Text + " Personalize to the extreme with Designed for Dell accessories ";

Label15.Text = "Designed for performance with the latest Desktop technologies for entertainment, mobility and security "; Label15.Text = Label15.Text + " Sleek, head-turning designs with premium Desktop materials and finishes "; }

protected void MNO_SelectedIndexChanged(object sender, EventArgs e) {

if (MNO.Text != "Select Model No") {

CMD = new SqlCommand("select * from COMPUTER where Model_No='" + MNO.Text + "' and CATEGORY='DESKTOP'", con); da.SelectCommand = CMD; ds = new DataSet(); da.Fill(ds, "computer"); dr = ds.Tables[0].Rows[0]; CPU.Text = Convert.ToString(dr[2]); RAM.Text = Convert.ToString(dr[3]); MOTHERBOARD.Text = Convert.ToString(dr[4]); HDD.Text = Convert.ToString(dr[5]); DRIVE.Text=Convert.ToString(dr[6]); MONITOR.Text = Convert.ToString(dr[7]); MODEM.Text = Convert.ToString(dr[8]); AF.Text = Convert.ToString(dr[10]); WEBCAM.Text = Convert.ToString(dr[11]); PRICE.Text = Convert.ToString(dr[12]); COLORS.Text = Convert.ToString(dr[13]); } }

protected void CNAME_SelectedIndexChanged(object sender, EventArgs e) { if (CNAME.Text != "Select Company Name") { CMD = new SqlCommand("select Model_No from COMPUTER where COMPANY='" + CNAME.Text + "' AND Category='LAPTOP'", con); if (CNAME.Text == "COMPAQ")

52

Page 53: sps.doc

{ hpcdesktop(); Image2.ImageUrl = "c:/dotnet/focus/IMAGES/clt1.jpg"; Image3.ImageUrl = "c:/dotnet/focus/IMAGES/clt2.jpg"; Image4.ImageUrl = "c:/dotnet/focus/IMAGES/clt3.jpg"; } else if (CNAME.Text == "HP") { hpcdesktop(); } else if (CNAME.Text == "HCL") { hcldesktop(); Image5.Visible = false; } else if (CNAME.Text == "LENOVO") { lenovodesktop(); Image5.Visible = false; } datatomodel(); } }

}

53

Page 54: sps.doc

Screen : orderinf.aspx

54

Page 55: sps.doc

Screen : userlogin.aspx

55

Page 56: sps.doc

Screen : userregistration.aspx

56

Page 57: sps.doc

Code Page : userregistration.aspx

// This Page is used to Registered User and take user information from user for further interection.using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.SqlClient;

public partial class userregistration : System.Web.UI.Page{ SqlConnection con = new SqlConnection("Data source=.;database=ems;user id=sa"); SqlCommand CMD = new SqlCommand(); SqlDataAdapter da = new SqlDataAdapter(); DataSet ds = new DataSet(); DataRow dr; Boolean flag; int n1; String u_id; protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { n1 = Convert.ToInt32(Session.Contents["ch"]); u_id = Convert.ToString (Session.Contents["user_id"]); if (n1 == 1) { password.Enabled = false; cpassword.Enabled = false; changepass.Visible = true; uid.ReadOnly = true; check.Enabled = false; CMD = new SqlCommand("select * from customer_details where Customer_Id='" + u_id + "'", con); da.SelectCommand = CMD; ds = new DataSet();

57

Page 58: sps.doc

da.Fill(ds, "c_d"); if (ds.Tables[0].Rows.Count > 0) { dr = ds.Tables[0].Rows[0]; calldata(); Button1.Text = "Update"; } } }

} private void calldata() { uid.Text = Convert.ToString(dr[0]); name.Text = Convert.ToString(dr[1]); address.Text = Convert.ToString(dr[2]); email.Text = Convert.ToString(dr[3]); pno2.Text = Convert.ToString(dr[4]); password.Text = Convert.ToString(dr[5]); hintquestion.Text = Convert.ToString(dr[6]); hintanswer.Text = Convert.ToString(dr[7]); }//This function is used to validate user information //it check that all compulsary field should filled //and restrict user to made error //give warining regarded to error //and responed

protected void validate() { if (uid.Text.Trim() != "" && name.Text.Trim() != "" && password.Text.Trim() != "" && cpassword.Text.Trim() != "" && password.Text.Trim() == cpassword.Text.Trim() && address.Text.Trim() != "" && pno2.Text.Trim() != "" && hintanswer.Text.Trim() != "") { flag = true;

} else { if (uid.Text.Trim() == "") { Label1.ForeColor = System.Drawing.Color.Red; Label8.ForeColor = System.Drawing.Color.Red; } else

58

Page 59: sps.doc

{ Label1.ForeColor = System.Drawing.Color.Black; Label8.ForeColor = System.Drawing.Color.Black; } if (name.Text.Trim() == "") { Label2.ForeColor = System.Drawing.Color.Red; Label9.ForeColor = System.Drawing.Color.Red; } else { Label2.ForeColor = System.Drawing.Color.Black; Label9.ForeColor = System.Drawing.Color.Black; } if (password.Text.Trim() == ""||cpassword.Text.Trim() == ""||password.Text.Trim() != cpassword.Text.Trim()) { Label3.ForeColor = System.Drawing.Color.Red; Label10.ForeColor = System.Drawing.Color.Red; Label4.ForeColor = System.Drawing.Color.Red; Label11.ForeColor = System.Drawing.Color.Red; } else { Label3.ForeColor = System.Drawing.Color.Black; Label10.ForeColor = System.Drawing.Color.Black; Label4.ForeColor = System.Drawing.Color.Black; Label11.ForeColor = System.Drawing.Color.Black; } if (hintanswer.Text.Trim() == "") { Label15.ForeColor = System.Drawing.Color.Red; Label12.ForeColor = System.Drawing.Color.Red; } else { Label15.ForeColor = System.Drawing.Color.Black; Label12.ForeColor = System.Drawing.Color.Black; } if (address.Text.Trim() == "") { Label5.ForeColor = System.Drawing.Color.Red; Label16.ForeColor = System.Drawing.Color.Red; } else

59

Page 60: sps.doc

{ Label5.ForeColor = System.Drawing.Color.Black; Label16.ForeColor = System.Drawing.Color.Black; } if (pno2.Text.Trim() == "") { Label13.ForeColor = System.Drawing.Color.Red; Label17.ForeColor = System.Drawing.Color.Red; } else { Label13.ForeColor = System.Drawing.Color.Black; Label17.ForeColor = System.Drawing.Color.Black; } checkmid(); flag = false;

} } //This function clear filled information protected void clear() { uid.Text = ""; name.Text = ""; password.Text = ""; cpassword.Text = ""; hintanswer.Text = ""; address.Text = ""; pno2.Text = ""; email.Text = ""; msg.Text = ""; } //This function is used to check email id //Email id is not compalsary field //if email is filled then function check //for valid email id private void checkmid() { if (email.Text.Trim() != "") { int a, l; a = email.Text.IndexOf("@"); l = email.Text.Length; flag = false; if (a > 0 && l - a > 6) {

60

Page 61: sps.doc

flag = true; mmsg.Text = ""; } else mmsg.Text = "Invalid Email-Id"; } else { flag = true; mmsg.Text = ""; }

} //This function is used to check for avaliability for requested user id

private void checkid() {

flag = false; if (con.State == 0) con.Open(); CMD = new SqlCommand("select Customer_id from customer_details where customer_id='" + uid.Text + "'", con); da.SelectCommand = CMD; ds = new DataSet(); da.Fill(ds, "cust_id"); int tr; tr = ds.Tables[0].Rows.Count; if (tr == 0) { flag = true; msg.Text = "ID Avaliable"; } else msg.Text = "ID not Avaliable"; }

//This function will clear message if user id field is blank protected void check_Click(object sender, EventArgs e) {

checkid(); if (uid.Text.Trim() == "") { msg.Text = "";

61

Page 62: sps.doc

} else {

} } private void savedata() { CMD.Parameters.Add("@Customer_Id", SqlDbType.VarChar).Value = uid.Text; CMD.Parameters.Add("@Name", SqlDbType.VarChar).Value = name.Text; CMD.Parameters.Add("@Address", SqlDbType.VarChar).Value = address.Text; CMD.Parameters.Add("@Email_Id", SqlDbType.VarChar).Value = email.Text; CMD.Parameters.Add("@Phone_No", SqlDbType.VarChar).Value = pno2.Text; CMD.Parameters.Add("@Password", SqlDbType.VarChar).Value = password.Text; CMD.Parameters.Add("@HintQuestion", SqlDbType.VarChar).Value = hintquestion.Text; CMD.Parameters.Add("@Hint_Ans", SqlDbType.VarChar).Value = hintanswer.Text; CMD.ExecuteNonQuery(); } protected void Button1_Click(object sender, EventArgs e) { int i = 0; if (Button1.Text == "Submit") { validate(); if (flag == true) { checkmid(); if (flag == true) { checkid(); if (flag == true) { if (con.State == 0) con.Open(); CMD = new SqlCommand("insert into customer_details values(@Customer_Id,@name,@address,@Email_Id,@Phone_No,@Password,@hintquestion,@Hint_ans)", con); i = 1; savedata(); validate(); clear(); }

62

Page 63: sps.doc

} else { } }

} if (Button1.Text == "Update") { if (con.State == 0) con.Open(); if (password.Enabled == true) { if (password.Text.Trim() != "" && cpassword.Text.Trim() != "") { if (password.Text == cpassword.Text) { CMD = new SqlCommand("update customer_details set Customer_Id=@Customer_Id,name=@name,address=@address,Email_Id=@Email_Id,Phone_No=@Phone_No,Password=@Password,hint_question=@hintquestion,Hint_ans=@Hint_ans where Customer_Id='" + uid.Text + "'", con); i = 1; } else { //change color bcos both password are not same }

} else { //change the color } } else { i = 1; CMD = new SqlCommand("update customer_details set Customer_Id=@Customer_Id,name=@name,address=@address,Email_Id=@Email_Id,Phone_No=@Phone_No,hint_question=@hintquestion,Hint_ans=@Hint_ans where Customer_Id='" + uid.Text + "'", con); } if (i == 1) { savedata();

63

Page 64: sps.doc

//Session.Clear(); Session.Add("tmsg", "2"); Response.Redirect("useraccount.aspx"); } } }

protected void changepass_Click(object sender, EventArgs e) { password.Enabled = true; cpassword.Enabled = true;

}}

64

Page 65: sps.doc

6 Web Project Security

Current state

Web applications represent highly vulnerable attack avenues

Most discussions on web application security, center on attacking it and

secure coding to protect it

Methods for detecting such attacks are coming into their own

Existing detection methods are being tested before customers accept

these solutions as standard

Detection Techniques

Using static techniques

– Happens post-occurrence of event

– Parse log files using standard tools/techniques

– Aim is forensics investigation

Using dynamic techniques

– Detect the attack as it happens

– Trigger alarms when attack is happening

– Aim is detect/prevent in real-time

Detection Techniques

Static Techniques Dynamic Techniques

Anomaly-based Signature-based

65

Page 66: sps.doc

MaintenanceMaintenance

Software maintenance is the modification of a software product after delivery

to correct faults, to improve performance or other attributes, or to adapt the product to a

modified environment.

The Software Maintenance Context

Existing software productSoftware Maintenance

Modified software product

Maintenance need

Enhancement

Correction

Software engineering process Installation, operation, maintenance

Software Maintenance Covers

Basic concepts Maintenance Process Key issues in software

maintenance

Techniques for

maintenance

Definitions and

terminology

Majority of

maintenance

costs

The nature of

maintenance

Evolution of

software

Process models

Maintenance

activities

Technical

Management

Cost and estimation

Software

maintenance

measurement

Program

comprehensio

n

Re-

engineering

Reverse

engineering

Impact

analysis

66

Page 67: sps.doc

Future scope and further enhancement of the project :

This website is currently providing help for purchases of electronic

appliances. The use of electronic media is increasing day by day. Plastic

money is replacing the cash movement in business applications and other

transactions. There are various financial cards that are used like Debit card,

Visa card etc. The person gives his debit or credit card number that can be

used by the shopkeeper or hotel management to withdraw the money from

his/her account. That’s why we are also planning to give credit card facility

to our consumers for purchasing any type of electronic item. In future, we

can expand it to cover more areas. This website can be a portal for Online

Trading. It can be extended to receive credit card for money transactions.

Credit card facilities are not very popular. In India because of lack of

security .In future, we can apply a powerful security mechanism that can

make it possible for Online Transaction using Credit Card and internet

banking.

In future, we will enhance a demanding facility of home

delivery of any product that the user orders. Payment will be made by cash

at the time of delivery. There can be a facility of online problem solving

system in our web site that will answer frequently asked questions by the

user.

67

Page 68: sps.doc

Bibliography:

Fundamentals of Software Engineering by Rajib Mall (PHI

Private Limited)

Software Engineering by A Roger’s Pressman

Elements of System Analysis and Designing (IGNOU Study

Material

Black book ASP.NET 2.0 by BPB Publication

ASP.NET 2.0 by Wrox Publication

SQL Server by Korth

Magic with C# by Shibi Panikar

68