Babu Banarsi Das National Institute of Technology and Management
Babu Banarsi Das National Institute of Technology and Management
INSTITUTE OF TECHNOLOGY
AND MANAGEMENT
PROJECT REPORT ON
ONLINE MARKETING
TEAM MEMBERS :
SHUBHAM PRATAP SINGH
SATYENDRA KUMAR MADHESHIYA
SUBMITTED TO:
Mr. RAJAN PRASAD
DEPARTMENT OF INFORMATION
TECHNOLOGY
1
Certificate
Mr.Rajan Prasad
Acknowledgement
NATIONAL
INSTITUTE
OF
TECCNOLOGY
AND
strength,
help
and
for
everything
Place:
Lucknow
Date:05-06-2012
Contents
3
1.Abstract of project..710
2.List of table used in
project...5
3.List of figures
6
4.Chapters
4.1 Chapter1:Study of existing system
& system
requirement11-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...63
5. Web Project
Security.....64
6.Maintenance..6
5
7. Future scope of
project.66
8.Bibliography...6
7
List of Tables
1. Customer details
2. Dealer
3. Item
4. Computer
5. Printer
6. Accessories
7. Login
8. Purchase Book
9. Sales Book
10.Stock
11.Order
12.Feedback
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
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
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.
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
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
11
SQL Server:SQL server 2000 works on windows-based platform, including windowsXP, 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
Server
2000
has
introduced
SQL
Server
13
METHODOLOGY:
Web Server
Client
Server Engine
Container
ASP.NET
FOR SQLSERVER:
Web Server
Administrator
SQLServer
14
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
RAM
15
Hard Disk
Display
Mouse
16
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
17
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.
users(Employee).
2.
Managers(MID),Staff(LOW)
They Manage all the information like stock information
Customers.
18
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.
19
20
21
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:
22
3.Analysis
3.1Data Flow Diagram
ADMIN
ONLINE
MARKETING
CUSTOMER
23
DATA FOR
VERIFICATION
LOGIN TABLE
ID&PASSWORD
ADMIN
REJECTED IF
VERIFIED
DATA
VIEW
CUSTOMER
DETAILS
LOGIN
NOT MATCH
CUSTOMER
DETAIL
USER TABLE
ADD
PRODUCTS
CATEGORY
DETAILS
EDIT
PRODUCTS
CATEGORY
TABLE
PRODUCT
DETAILS
PRODUCT
DETAILS
DELETE
PRODUCTS
SELL DETAIL
SELL TABLE
PRODUCT
TABLE
VIEW
FEEDBACK
FEEDBACK
DETAILS
DELIVERY
DETAILS
STORE
TABLE
FEEDBACK
PRODUCT
DETAILS
24
DATA
VERIFICATION
ID&PASSWORD
REJECTED
IF NOT
MATCH
CUSTOMER
LOGIN TABLE
VERIFIED
DATA
VIEW
DELIVERY
REPORT
LOGIN
DELIVERY
DETAILS
SELECT
PRODUCT
REJECT IF
AMOUNT
NOT AVAILABLE
REJECTED IF
PRODUCT
BUY
PRODUCTS
PRODUCT
DETAILS
PRODUCT
TABLE
STORE
TABLE
NOT
AVAILABLE
MAKE
PAYMENT
IF AVAILABLE
STORE
DATA
SEE
SELECTED
ITEMS
ADD
FEEDBACK
PAYMENT DETAILS
SELECT
ITEMS
TOTAL
BILL
ACCOUNT
TABLE
FEEDBACK
DETAILS
FEEDBACK
TEMP TABLE
25
3.2ActivityDiagram
3.2.1Activity Diagram for administrator
26
27
28
3.3Sequence Diagram
4.Design
29
BUY
PRODUCT
PHONE NO.
USER_NAME
SEX
CUSTOMER
USER_ID
ADDRESS
DOB
EMAIL_ID
SEE
DELIVERY
MAKE
PAYMENT
ACCOUNT
WRITE
FEEDBACK
STORE
ACC_NO.
BANK NAME
REPORT
FEEDBACK
PIN NO.
ORDER NO.
FEEDBACK
TYPE
COMMENT
FEEDBACK
30
31
4.3ARCHITECTURE DESIGN
32
4.4Data Structure
In the project work, we will use the following tables:
Data Type
Discription
Varchar(5)
Varchar(35)
Varchar(150)
Varchar(35)
Varchar(30)
Varchar(6)
Table No 2.DEALER
Table Name : Dealer:-
33
Data Type
Discription
Varchar(5)
Varchar(35)
Varchar(150)
Varchar(10)
Varchar(15)
Varchar(25)
7
8
9
10
Varchar(30)
Varchar(35)
Varchar(35)
Varchar(25)
Phone_No
Company
Email_Id
Item_Type
Table No 3.ITEM **
Table Name : Item :SN0 Name of the field Data Type
1
Company
Varchar(35)
2
Item_Type
Varchar(15)
Discription
Name of the company
Item type of item like computer ,print
Table No 4.COMPUTER
Table Name : Computer:SN0
1
2
3
4
5
6
7
8
9
10
11
12
13
Data Type
Varchar(35)
Varchar(15)
Varchar(50)
Varchar(35)
Varchar(50)
Varchar(25)
Varchar(50)
Varchar(100)
Varchar(20)
Varchar(20)
Varchar(200)
Varchar(20)
numeric(50)
Discription
Name of the company
Model No of the computer
Processor name of the computer
Ram of the computer
Mother board name of the computer
Hard disk capicity of the computer
Drive of the computer
Monitor of the computer
Modem of the computer
Computer is desktop or laptop
Additional feature of the computer
Web camera of the computer
Price of the computer
34
Table No 5.PRINTER
Table Name : Printer:SN0
1
2
3
4
5
6
7
8
Data Type
Varchar(35)
Varchar(15)
Varchar(25)
Varchar(35)
Varchar(15)
Varchar(20)
Varchar(200)
numeric(50)
Discription
Name of the printer
Model No of the printer
Memory of the printer
Speed of the printer
DPI capicity of the printer
Printer is dotmatrix or laser
Additional feature of the printer
Price of the printer
Table No 6.ACCESSERIES
Table Name : Accesseries:SN0
1
2
3
4
5
Data Type
Varchar(35)
Varchar(15)
Varchar(25)
Varchar(200)
numeric(50)
Discription
Name of the company
Model No of the item
Name of the item like mouse,pen drive
Additional feature of the item
Price of the item
Table No 7.LOGIN
Table Name : Login :SN0
1
2
3
Data Type
Varchar(15)
Varchar(15)
Varchar(10)
Discription
Login id of the employee
Password of the employee
Profile of the employee like high,mid or low
Discription
Name of the company
Model No of the item
35
3
4
5
6
7
8
9
Item_Type
DOP
QTY
Price_Qty
Total_Ammount
Cancled
D_Code
Varchar(25)
Datetime(8)
Numeric(9)
Numeric 9(18,0)
Varchar(5)
Varchar(5)
Varchar(5)
36
Data Type
Numeric
9(18,0)
Company *
Varchar(35)
Model_No *
Varchar(15)
Item_Type
Varchar(25)
Customer_Id *
Varchar(5)
Customer_Name Varchar(35)
Price
Numeric
9(18,0)
Tax
Numeric
9(18,0)
Total_Ammount Numeric
9(18,0)
DOS
Datetime(8)
Payment
Varchar(15)
Cancled
Varchar(5)
CM
Char(5)
CY
Char(5)
Discription
Receipt No provided to customer if product
delivered
Name of the company
Model No of the item
Type of the item like computer,A.C
Its provided to customer for further contacts
Name of the customer
Price of selected items
Tax as per rule
Total paid Ammount
Date of sales
Payment mode as Checque no,credit card no
Is order calcled if payment not confirmed
Current Month
Current Year
Table No 10.STOCK
Table Name : Stock:SN0
1
2
3
4
Data Type
Varchar(35)
Varchar(15)
Varchar(25)
Numeric(9)
Discription
Name of the company
Model No of the A.C
Type of item like computer,Tv
Quantity of the item
37
Table No 11.ORDER
Table Name : Order:SN0
1
2
3
4
5
Data Type
Varchar(5)
Varchar(15)
Varchar(25)
Varchar(35)
Varchar(5)
Discription
Its provided to customer for further contacts
Model No of the A.C
Type of item like computer,Tv
Name of the company
Is payment done or not
Data Type
Varchar(5)
Varchar(5)
Varchar(300)
Discription
Serial no of feed back
Its provided to customer for further contacts
Taking feed back from the customer
# Primary Key
* Foreign Key (Reference Key )
**Concept of Specialization is used
38
5.Coding
Screenshots and source code
Screen : focus.aspx
39
40
41
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)
42
{
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");
43
}
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)
{
}
}
44
Screen : desktopinf.aspx
45
46
Screen : laptopinf.aspx
47
48
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();
}
49
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;
50
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 highperformance 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";
51
52
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
";
53
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")
54
{
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();
}
}
}
55
Screen : orderinf.aspx
56
Screen : userlogin.aspx
57
Screen : userregistration.aspx
58
59
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
60
{
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
61
{
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)
{
62
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 = "";
63
}
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,@hintque
stion,@Hint_ans)", con);
i = 1;
savedata();
validate();
clear();
}
64
}
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,P
hone_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,P
hone_No=@Phone_No,hint_question=@hintquestion,Hint_ans=@Hint_ans where
Customer_Id='" + uid.Text + "'", con);
}
if (i == 1)
{
savedata();
65
//Session.Clear();
Session.Add("tmsg", "2");
Response.Redirect("useraccount.aspx");
}
}
}
protected void changepass_Click(object sender, EventArgs e)
{
password.Enabled = true;
cpassword.Enabled = true;
}
}
66
Detection Techniques
Detection Techniques
Static Techniques
Dynamic Techniques
Anomaly-based
Signature-based
67
Maintenance
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
Software Maintenance
Existing software product
Maintenance need
Enhancement
Correction
Definitions and
Maintenance Process
Process models
Maintenance
terminology
Majority of
maintenance
costs
Techniques for
maintenance
maintenance
Technical
Management
comprehensio
activities
Software
The nature of
maintenance
maintenance
measurement
Program
Reengineering
Reverse
engineering
Evolution of
software
Impact
analysis
69
Bibliography:
Private Limited)
Material
70