advance object oriented programming

Upload: dija0003

Post on 05-Apr-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Advance Object Oriented Programming

    1/35

    ADVANCE OBJECT ORIENTED PROGRAMMING

    PROJECT REPORT

    B.S (CS/ IT)

    Submitted by:

    Rudaba Naz 2009/comp/BS (CS)/9989 2910091

    Urooba Iqbal 2009/comp/BS (CS)/10005 2910107

    Saima Ehsan 2009/comp/BS (IT)/10018 2910120

    Submitted To:

    Ms Saira Begum

    May , 2012

    D EPARTMENT OF COMPUTER S CIENCE AND I NFORMATION TECHNOLOGY

    JINNAH UNIVERSITY FORWOMEN

    5-C NAZIMABAD, KARACHI74600

  • 7/31/2019 Advance Object Oriented Programming

    2/35

    ii

    ABSTRACT

    This project is designed for people comfort. Essentially this project illustrates all the information

    of top Brands. The website owner has easily added all the information in this software for the

    easiness of customer. Customers has search product is effortlessly.

  • 7/31/2019 Advance Object Oriented Programming

    3/35

    iii

    Acknowledgement

    First of all we would like to Thanks to ALLAH. Then we would like to thank to our parents whopushed us in an Educational life.

    We would like to thanks to Ms.Saira Begum, Lecturer in Jinnah University for Women

    (Department of Computer Science & I.T). We are very grateful for her teaching us so well that

    today we are able to accomplish this task.

    We would not be successful in completing this project if we dont acknowledge the support,

    suggestions and encouragement by our friends. So we are thankful to all those friends who helped

    us in fulfilling this project.

    Rudaba Naz , Urooba Iqbal and

    Saima Ehsan

  • 7/31/2019 Advance Object Oriented Programming

    4/35

    iv

    TABLE OF CONTENTS

    ContentsAbstract ..ii

    Acknowledgement ............................................................................................................................. iii LIST OF FIGURES ........................................................................................................................... vi

    Chapter 1 ............................................................................................................................................ 1

    INTRODUCTION .............................................................................................................................. 1

    1.1 Background ........................................................................................................................................... 1

    1.2 Project overview ................................................................................................................................... 1

    1.3 objective ............................................................................................................................................... 1

    1.4 purpose ................................................................................................................................................ 1

    1.5 goal ...................................................................................................................................................... 2

    1.6 Advantages ............................................................................................................................................ 2

    Chapter 2 ............................................................................................................................................ 3

    FEASIBILITY STUDY ..................................................................................................................... 3

    2.1 INTRODUCTION ................................................................................................................................... 3

    2.2 STEPS IN FEASIBILITY ANALYSIS ........................................................................................................ 3

    2.2.1 Technical Feasibility ...................................................................................................................... 4Front-End Selection: ..................................................................................................................................... 4

    Back-End Selection: ...................................................................................................................................... 4

    2.2.2 Economical Feasibility .................................................................................................................. 5

    2.2.3 Operational Feasibility ................................................................................................................ 5

    2.2.4 Schedule feasibility ........................................................................................................................ 6

    Chapter 3 ............................................................................................................................................ 7

    UML DIAGRAM ............................................................................................................................... 7

    3.1 Class Diagram ...................................................................................................................................... 7

    3.2 ER DIAGRAM : ........................................................................................................................................ 8

    Chapter 4 ............................................................................................................................................ 9

    TOOL AND TECHNOLOGY ........................................................................................................... 9

    4.1 TOOLS ................................................................................................................................................... 9

    4.1.1 Microsoft SQLServer2008 .......................................................................................................... 9

  • 7/31/2019 Advance Object Oriented Programming

    5/35

    v

    4.1.2 ASP.NET Web Developer ............................................................................................................ 10

    4.2 REQUIREMENT .................................................................................................................................. 10

    4.2.1 SOFTWARE REQUIREMENT .......................................................................................................... 10

    4.2.2 HARDWARE REQUIREMENT ..................................................................................................... 10

    Chapter 5 .......................................................................................................................................... 11 SNAPSHOTS ................................................................................................................................... 11

    5.1 HOME ................................................................................................................................................ 11

    5.2 ABOUT : .............................................................................................................................................. 12

    5.3 CONTACT US : ..................................................................................................................................... 12

    5.4 LOGIN : .......................................................................................................................................... 13

    5.5 PRODUCT PAGE : ............................................................................................................................... 13

    5.6 VIEW IMAGE: ..................................................................................................................................... 14

    5.7 GALLERY: ............................................................................................................................................ 14

    Chapter 6 .......................................................................................................................................... 15

    CODING .......................................................................................................................................... 15

    6.1 LOGIN BACKEND CODING: ................................................................................................................... 15

    6.2 LOGIN FRONT END CODING: .............................................................................................................. 16

    6.3 HOME PAGE FRONT END CODING: ..................................................................................................... 21

    Chapter 7 .......................................................................................................................................... 25

    DATA DICTIONARY ..................................................................................................................... 25

    7.1 CUSTOMER: ....................................................................................................................................... 25

    7.2 REGISTER : .......................................................................................................................................... 25

    7.3 PRODUCT : ......................................................................................................................................... 26

    7.4 SHIPPING : .......................................................................................................................................... 27

    CONCLUSION ................................................................................................................................ 28

    REFERENCES ................................................................................................................................. 29

  • 7/31/2019 Advance Object Oriented Programming

    6/35

    vi

    LIST OF FIGURES

    FIGURE 5.1 HOME......................................................................................................................................................... 11 FIGURE 5.2 HOME 2 ...................................................................................................................................................... 11 FIGURE 5.3 ABOUT PAGE.............................................................................................................................................. 12 FIGURE 5.4 CONTACT PAGE ......................................................................................................................................... 12 FIGURE 5.5 LOGIN PAGE ............................................................................................................................................... 13 FIGURE5. 6 PRODUCTPAGE............................................................................................................................................... 13FIGURE5.7 VIEW IMAGE ...14 FIGURE5.8 GALLERY ...14 FIGURE7.1 CUSTOMER .. 25FIGURE7.2 REGISTER ..... 25

    FIGURE7.3 PRODUCT1... 26FIGURE7.4 PRODUCT2... 27FIGURE7.5 SHIPPING.. 27

  • 7/31/2019 Advance Object Oriented Programming

    7/35

    Chapter 1: Introduction

    1

    Chapter 1

    INTRODUCTION

    1.1 BackgroundThe objective of this project is to develop a general purpose e-commerce website where any product canbe bought from the comfort of home through the Internet. However, for implementation purposes, thispaper will deal with an online products store. An online store is a virtual store on the Internet wherecustomers can browse the catalog and select products of interest. The selected items may be collected in ashopping cart. At checkout time, the items in the shopping cart will be presented as an order. Atthat time, more information will be needed to complete the transaction. Usually, the customer will beasked to fill or select a billing address, a shipping address, a shipping option, and payment informationsuch as credit card number.

    1.2 Project overview.Shop Style brings together the most fashionable stores and the best brands allowing users tocross-shop hundreds of thousands of apparel, hom e decorating and kids products, all in oneplace. Featuring products from the most popular designer brands and big name fashions, to theup and coming boutiques.

    The purpose of this website is perhaps the closest experience you can get of going to a

    shopping mall without actually leaving the comfort of your lounge

    1.3 objectiveThe main objectives of our project are:

    to increase ASP.NET skills. to provide ease to customers.

    to guarantee document integrity and confidentiality to ensure long-term document preservation and retrieval

    1.4 purposeThe purpose of this project is to develop a general purpose e-commerce website where any productcan be bought from the comfort of home through the Internet. However, for implementationpurposes, this paper will deal with an online products store. An online store is a virtual store on theInternet where customers can browse the catalog and select products of interest. The selected itemsmay be collected in a shopping cart. At checkout time, the items in the shopping cart will bepresented as an order. At that time, more information will be needed to complete the transaction.

  • 7/31/2019 Advance Object Oriented Programming

    8/35

    Chapter 1: Introduction

    2

    Usually, the customer will be asked to fill or select a billing address, a shipping address, a shippingoption, and payment information such as credit card number.

    1.5 goalThe system will allow more than one brands to set up different shops, to sell various products

    under one roof.

    Create necessary records of products for efficient and successful operation. Produce the record when needed Retain/preserve only records needed for continued operation of the institute and dispose what

    is not.

    1.6 AdvantagesOnline shop style website provides a lot of benefits to the retail outlets on the site such asadministrative, management of the site as well as invoicing of the business. Customer isbenefited too. He has not only the variety but also ease to find whatever he is looking for atone place. The choices available to customer is many as products available on onlineshopping mall can range from within the product category or an entirely different producttype ( homecare, clothing, electronics etc.) from as many retailers possible.

  • 7/31/2019 Advance Object Oriented Programming

    9/35

    Chapter 2: Feasibility Study

    3

    Chapter 2

    FEASIBILITY STUDY 2.1 INTRODUCTION

    The idea of online shop style originates from e-commerce. E commerce is in practice inmost of the developed countries of the world such as USA, UK, and Europe etc whereshopping concept is changing from physical purchase to virtual buying. This type of business is very popular among the retail outlets that are looking for a boost in their saleby offering customers new channels or mediums to make a purchase. This way not onlythe customer has more options but companies also enjoy an increase in their sale due toincreased online outlet.

    Even after the immense success of e commerce there was a big group of business whoeither knew how to do e-commerce or they were unable to manage the administration of such technical field which required a lot of web knowledge. This generates a need of aplace where these retail outlets can start their online business but without any hassle.Online shop style is basically the byproduct of e-commerce. The idea is to provide theeasiest platform to these retail outlets that can do online business without any trouble orrisk. Its a site where any retail outlet can get registered and have a space and the rest of the administration will be done by the host of that online mall. Not only that but also thehost will be the one who will take care of all payment procedures.

    Among all the internet activity online shopping is not only generating the maximumrevenues but also is growing at the fastest speed. It can be proved by the fact that almost30% of all the sites are used for trading rather than attracting the advertisers for the meansof business. By looking at this statistics and knowing that this will grow to another 30%within next few Years businesses are attracted towards internet to boost their sale with arelevant low cost, one of the best feature of online shopping.

    Moreover online shop style further reduces the cost and hassle for those retailers who haveless technical skills to take the optimum advantage of the online business.

    .

    2.2 STEPS IN FEASIBILITY ANALYSISThese steps involved in the feasibility analysis are:

    Form a project team and appoint a project leader. Enumerate potential proposed system. Define and identify characteristics of proposed system. Determine and evaluate performance and cost effective of each proposed system.

  • 7/31/2019 Advance Object Oriented Programming

    10/35

    Chapter 2: Feasibility Study

    4

    Weight system performance and cost data. Select the best-proposed system. Prepare and report final project directive to management

    2.2.1 Technical Feasibility

    A study of resource availability that may affect the ability to achieve an acceptablesystem. This evaluation determines whether the technology needed for the proposedsystem is available or not.

    Can the work for the project be done with current equipment existing softwaretechnology & available personal?

    Can the system be upgraded if developed? If new technology is needed then what can be developed? This is concerned with specifying equipment and software that will successfully satisfy

    The user requirement, The technical needs of the system may include:

    Front-End Selection:Front end is what the user will see on the webpage, this user can be a customer or theMall administrator or shop owner. The front ends code brings the information back fromthe backend and display to the user or take the information from the user and send it toback end for processing or storage. We require a scripting language that can be used todevelop font end. There are different scripting languages available for writing server sidescripts like ASP, JSP and PHP etc.

    We use ASP.net (Active Server pages) ASP is Microsoft developed scripting language

    used to create dynamic Web Pages.

    Back-End Selection:Backend is where the Website data will be stored, this data can be of the customer, shopowner or can be site contents. For an ecommerce application databases are the foundation,all the information comes from the database and all the information will go to the data base.There are several databases technologies available like SQL SEERVER, MSSQL andMYSQL. We use SQL server 2008 R2.

    It is important that data base should be build correctly as application will run on top of it

    and after launch of website if a serious flaw is found then its hard to fix the problem asdata base structure has to be changes that can shake the foundation of the application. Soits necessary that through time should be spend in designing of database. Few factors wereconceders while choosing the database. These factors involve:

    Stability: The database should be stable and should not crash as this can make the sitedown which can cause potential loose to business.

  • 7/31/2019 Advance Object Oriented Programming

    11/35

    Chapter 2: Feasibility Study

    5

    Scalability: data base should be scalable to handle large amount of data and can beextended if necessary once build.

    Speed: Speed is one of the important factor, the database should be able to retrieveinformation on fast rate so that customers or users dont have to wait for the data to befetched; the data based should be able to optimize queries.

    Referential integrity: This concept involves that data base should be developed in suchway that inconsistent data should not be saved in tables

    2.2.2 Economical FeasibilityEconomic justification is generally the Bottom Line consideration for most systems.Economic justification includes a broad range of concerns that includes cost benefitanalysis. In this we weight the cost and the benefits associated with the candidate system

    and if it suits the basic purpose of the institution.The financial and the economic questions during the preliminary investigation are verifiedto estimate the following:

    The cost to conduct a full system investigation. The cost of hardware and software for the class of application being considered. The benefits in the form of reduced cost. The proposed system will give the minute information, as a result the performance is

    improved which in turn may be expected to provide increased profits

    2.2.3 Operational Feasibility It is mainly related to human institution and political aspects. The points to be considered are:

    What changes will be brought with the system? What mall structures are disturbed? What new skills will be required? Do the shop keepers members have these skills?

    The system is operationally feasible as it very easy for the End users to operate it. It only

    needs basic information about Windows platform

  • 7/31/2019 Advance Object Oriented Programming

    12/35

    Chapter 2: Feasibility Study

    6

    2.2.4 Schedule feasibilityTime evaluation is the most important consideration in the development of project. The

    time schedule required for the developed of this project is very important since more

    development time effect machine time, cost and cause delay in the development of other

    systems.

  • 7/31/2019 Advance Object Oriented Programming

    13/35

    Chapter3: UML Diagram

    7

    Chapter 3

    UML DIAGRAM Unified Modeling Language (UML) is a standardized general-purpose modeling

    language in the field of object-oriented software engineering. UML includes a set of graphic

    notation techniques to create visual models of object-oriented software-intensive systems.

    3.1 Class DiagramA class diagram in the Unified Modeling Language (UML) is a type of static structure

    diagram that describes the structure of a system by showing the system's classes, their

    attributes, operations (or methods), and the relationships among the classes.

    The class diagram of online shop style is given below:

    1 1

    1 * *

    1 1 * *

    CustomerCust_id: stringCust_name : stringCust _address: AddressCust_phone: phoneCust_email : stringCust_password:string

    Register

    Reg_id : stringFirst name :stringLast name: stringEmail: stringPassword : string

    Product

    Item_id :stringItem_type :stringItem_name: stringItem_price : integerItem_description :stringItem_imgirl: string

    Order

    Order_id :stringCust_id :stringItem_id :stringOrder_date : date

    Shipping

    Shipping_id :stringCust_id : stringItem_id :stringTotal_cost : double

    http://en.wikipedia.org/wiki/Modeling_languagehttp://en.wikipedia.org/wiki/Modeling_languagehttp://en.wikipedia.org/wiki/Object-orientedhttp://en.wikipedia.org/wiki/Software_engineeringhttp://en.wikipedia.org/wiki/Visual_modelinghttp://en.wikipedia.org/wiki/Unified_Modeling_Languagehttp://en.wikipedia.org/wiki/Class_%28computer_science%29http://en.wikipedia.org/wiki/Class_%28computer_science%29http://en.wikipedia.org/wiki/Unified_Modeling_Languagehttp://en.wikipedia.org/wiki/Visual_modelinghttp://en.wikipedia.org/wiki/Software_engineeringhttp://en.wikipedia.org/wiki/Object-orientedhttp://en.wikipedia.org/wiki/Modeling_languagehttp://en.wikipedia.org/wiki/Modeling_language
  • 7/31/2019 Advance Object Oriented Programming

    14/35

    Chapter3: UML Diagram

    8

    3.2 ER DIAGRAM :

  • 7/31/2019 Advance Object Oriented Programming

    15/35

    Chapter4: Tools and Technology

    9

    Chapter 4

    TOOL AND TECHNOLOGY

    4.1 TOOLSThis application is used by following tool and technology, here by.

    4.1.1 Microsoft SQLServer2008Microsoft SQL Server is a relational database server, developed by Microsoft. It is a

    software product whose primary function is to store and retrieve data as requested by other

    software applications.

    This version of SQL Server, SQL Server 2008, was released on August 6, 2008 and aims to

    make data management self-tuning, self organizing, and self maintaining with thedevelopment of SQL Server Always On technologies, to provide near-zero downtime. SQL

    Server 2008 also includes support for structured and semi-structured data, including digital

    media formats for pictures, audio, video and other multimedia data.

    SQL Server includes better compression features, which also helps in improving scalability.

    It enhanced the indexing algorithms and introduced the notion of filtered indexes. It also

    includes Resource Governor that allows reserving resources for certain users or workflows. It

    also includes capabilities for transparent encryption of data (TDE) as well as compression of

    backups. SQL Server 2008 supports the ADO.NET Entity Framework and the reporting

    tools, replication, and data definition will be built around the Entity Data Model. SQL Server

    Reporting Services will gain charting capabilities from the integration of the data

    visualization products from Dundas Data Visualization, Inc., which was acquired by

    Microsoft. On the management side, SQL Server 2008 includes the Declarative Management

    Framework which allows configuring policies and constraints, on the entire database or

    certain tables, declaratively. The version of SQL Server Management Studio included with

    SQL Server 2008 supports IntelliSense for SQL queries against a SQL Server 2008 DatabaseEngine. SQL Server 2008 also makes the databases available via Windows Power Shell

    providers and management functionality available as Camlets, so that the server and all the

    running instances can be managed from Windows Power Shell. SQL Server 2008 also

    http://en.wikipedia.org/wiki/Relational_database_management_systemhttp://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/Self-tuninghttp://en.wikipedia.org/wiki/Structured_datahttp://en.wikipedia.org/wiki/Transparent_encryptionhttp://en.wikipedia.org/wiki/ADO.NET_Entity_Frameworkhttp://en.wikipedia.org/wiki/Entity_Data_Modelhttp://en.wikipedia.org/wiki/SQL_Server_Reporting_Serviceshttp://en.wikipedia.org/wiki/SQL_Server_Reporting_Serviceshttp://en.wikipedia.org/wiki/Dundas_Data_Visualization,_Inc.http://en.wikipedia.org/wiki/SQL_Server_Management_Studiohttp://en.wikipedia.org/wiki/IntelliSensehttp://en.wikipedia.org/wiki/Windows_PowerShellhttp://en.wikipedia.org/wiki/Windows_PowerShellhttp://en.wikipedia.org/wiki/Windows_PowerShellhttp://en.wikipedia.org/wiki/Windows_PowerShellhttp://en.wikipedia.org/wiki/IntelliSensehttp://en.wikipedia.org/wiki/SQL_Server_Management_Studiohttp://en.wikipedia.org/wiki/Dundas_Data_Visualization,_Inc.http://en.wikipedia.org/wiki/SQL_Server_Reporting_Serviceshttp://en.wikipedia.org/wiki/SQL_Server_Reporting_Serviceshttp://en.wikipedia.org/wiki/Entity_Data_Modelhttp://en.wikipedia.org/wiki/ADO.NET_Entity_Frameworkhttp://en.wikipedia.org/wiki/Transparent_encryptionhttp://en.wikipedia.org/wiki/Structured_datahttp://en.wikipedia.org/wiki/Self-tuninghttp://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/Relational_database_management_system
  • 7/31/2019 Advance Object Oriented Programming

    16/35

    Chapter4: Tools and Technology

    10

    natively supports hierarchical data, and includes T-SQL constructs to directly deal with them,

    without using recursive queries.

    4.1.2 ASP.NET Web DeveloperASP.NET is a Web application framework developed and marketed by Microsoft to allow

    programmers to build dynamic Web sites, Web applications and Web services. ASP.NET is

    built on the Common Language Runtime (CLR), allowing programmers to write ASP.NET

    code using any supported .NET language. The ASP.NET SOAP extension framework allows

    ASP.NET components to process SOAP messages.

    ASP.NET Web pages, known officially as Web Forms, are the main building block for

    application development. Web forms are contained in files with an ".aspx" extension. A

    directive is special instructions on how ASP.NET should process the page. 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.

    Developers can also choose to pre-compile their "code behind" files before deployment,

    using MS Visual Studio, eliminating the need for just-in-time compilation in a production

    environment. This also eliminates the need of having the source code on the Web server. It

    also supports pre-compile text

    4.2 REQUIREMENT

    4.2.1 SOFTWARE REQUIREMENT Database: Microsoft SQLServer2008 Front End : ASP.NET Web Developer Back End : ASP.NET Web Developer

    4.2.2 HARDWARE REQUIREMENT RAM: 2 Gb Hard disk: 80 Gb Processor : cure 2 due

    http://en.wikipedia.org/wiki/T-SQLhttp://en.wikipedia.org/wiki/Web_application_frameworkhttp://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/Programmerhttp://en.wikipedia.org/wiki/Web_sitehttp://en.wikipedia.org/wiki/Web_applicationhttp://en.wikipedia.org/wiki/Web_servicehttp://en.wikipedia.org/wiki/Common_Language_Runtimehttp://en.wikipedia.org/wiki/List_of_CLI_languageshttp://en.wikipedia.org/wiki/SOAPhttp://en.wikipedia.org/wiki/Dynamic_link_libraryhttp://en.wikipedia.org/wiki/Computer_filehttp://en.wikipedia.org/wiki/Web_serverhttp://en.wikipedia.org/wiki/Web_serverhttp://en.wikipedia.org/wiki/Computer_filehttp://en.wikipedia.org/wiki/Dynamic_link_libraryhttp://en.wikipedia.org/wiki/SOAPhttp://en.wikipedia.org/wiki/List_of_CLI_languageshttp://en.wikipedia.org/wiki/Common_Language_Runtimehttp://en.wikipedia.org/wiki/Web_servicehttp://en.wikipedia.org/wiki/Web_applicationhttp://en.wikipedia.org/wiki/Web_sitehttp://en.wikipedia.org/wiki/Programmerhttp://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/Web_application_frameworkhttp://en.wikipedia.org/wiki/T-SQL
  • 7/31/2019 Advance Object Oriented Programming

    17/35

    Chapter5: Snap Shots

    11

    Chapter 5

    SNAPSHOTS

    5.1 HOME

    Figure 5.1 Home

    Figure 5.2 Home 2

  • 7/31/2019 Advance Object Oriented Programming

    18/35

    Chapter5: Snap Shots

    12

    5.2 ABOUT :

    Figure 5.3 About Page

    5.3 CONTACT US :

    Figure 5.4 Contact Page

  • 7/31/2019 Advance Object Oriented Programming

    19/35

    Chapter5: Snap Shots

    13

    5.4 LOGIN :

    Figure 5.5 Login Page

    5.5 PRODUCT PAGE :

    Figure5. 6 Product Page

  • 7/31/2019 Advance Object Oriented Programming

    20/35

    Chapter5: Snap Shots

    14

    5.6 VIEW IMAGE:

    Figure5. 7 Image View

    5.7 GALLERY:

    Figure5. 8 Gallery

  • 7/31/2019 Advance Object Oriented Programming

    21/35

    Chapter6: Coding

    15

    Chapter 6

    CODING6.1 LOGIN BACKEND CODING:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using System.Data.SqlClient;

    public partial class Login : System.Web.UI.Page{

    protected void Page_Load(object sender, EventArgs e){

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

    string strcon = (@"Data Source=.\SQLEXPRESS;Initial Catalog=shopstyle;IntegratedSecurity=True");

    SqlConnection con = new SqlConnection(strcon);SqlCommand com = new SqlCommand("Reg", con);com.CommandType = CommandType.StoredProcedure;SqlParameter p_fn = new SqlParameter("FirstName", txtFname.Text);SqlParameter p_ln = new SqlParameter("LastName", txtLname.Text);SqlParameter p_email = new SqlParameter("Email",txtEmail.Text );SqlParameter p_pwd = new SqlParameter("password", txtPasword.Text);com.Parameters.Add(p_fn);com.Parameters.Add(p_ln);com.Parameters.Add(p_email);com.Parameters.Add(p_pwd);

    con.Open();com.ExecuteNonQuery();if (txtFname.Text != "" && txtLname.Text != "" && txtEmail.Text != "" &&

    txtPasword.Text != "" && txtRepwd.Text == txtPasword.Text){

    Session["name"] = txtEmail.Text;Response.Redirect("Gallery.aspx");

  • 7/31/2019 Advance Object Oriented Programming

    22/35

    Chapter6: Coding

    16

    }else{

    lbl1.Text = "Please Fill In All The Fields!";}

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

    string strcon = (@"Data Source=.\SQLEXPRESS;Initial Catalog=shopstyle;IntegratedSecurity=True");

    SqlConnection con = new SqlConnection(strcon);SqlCommand com = new SqlCommand("Log", con);com.CommandType = CommandType.StoredProcedure;SqlParameter p1_EmailLog = new SqlParameter("Email", txtEmailLog.Text);SqlParameter p2_logpwd = new SqlParameter("Password", txtPwdLog.Text);com.Parameters.Add(p1_EmailLog);

    com.Parameters.Add(p2_logpwd);con.Open();SqlDataReader rd = com.ExecuteReader();if (rd.HasRows){

    rd.Read();Session["name"] = txtEmailLog.Text;Response.Redirect("Gallery.aspx");

    }else{

    Label1.Text = "Invalid Login Name or Password";}

    }}

    6.2 LOGIN FRONT END CODING:

  • 7/31/2019 Advance Object Oriented Programming

    23/35

    Chapter6: Coding

    17

    Dapur Kue | Famously Delicious Blog

    $(document).ready(function () {$("div.productsWarp").scrollable({ size: 1 }).circular().autoscroll({ interval: 9000}).navigator(".navi");});

    bDapur KueFamously DeliciousHomeClothingBagsShoesMenHome DecorAboutContact

    All the store you love. All in one place.More

  • 7/31/2019 Advance Object Oriented Programming

    24/35

    Chapter6: Coding

    18

    Create New Account

    First Name:


    Last Name:

    Email:

    Password:

    Retype Password:

  • 7/31/2019 Advance Object Oriented Programming

    25/35

    Chapter6: Coding

    19

    LOGINEmail:


    Password:

    Latest Tweets

    @icreativelabs yes indeed this is one hell of a#wordpress theme! http://bit.ly/AbCdE15 minutes ago

    @icreativelabs yes indeed this is one hell of a#wordpress theme! http://bit.ly/AbCdE15 minutes ago

    Corporate Info
  • 7/31/2019 Advance Object Oriented Programming

    26/35

    Chapter6: Coding

    20

    Privacy PolicyTerm & ConditionsFranchiseAbout usFAQ

    Store & DeliveryStore LocatorDelivery Terms &amp PricingDelivery CoverageGift ServicesTrack my order

    Keep in touchFacebookTwitterFeed

    2010 DapurKue designed by Tokokoo and brought to you by instantShiftAbout Contact Delivery Press &Reviews Terms & Conditions Privacy Policy

  • 7/31/2019 Advance Object Oriented Programming

    27/35

    Chapter6: Coding

    21

    6.3 HOME PAGE FRONT END CODING:

    All the store you love. All in one place.

    More

  • 7/31/2019 Advance Object Oriented Programming

    28/35

    Chapter6: Coding

    22

    Our Collection

  • 7/31/2019 Advance Object Oriented Programming

    29/35

    Chapter6: Coding

    23

  • 7/31/2019 Advance Object Oriented Programming

    30/35

    Chapter6: Coding

    24

  • 7/31/2019 Advance Object Oriented Programming

    31/35

    Chapter7: Data Dictionary

    25

    Chapter 7

    DATA DICTIONARY 7.1 CUSTOMER:

    Figure7.1 Customer

    7.2 REGISTER :

    Figure7.2 Register

  • 7/31/2019 Advance Object Oriented Programming

    32/35

    Chapter7: Data Dictionary

    26

    7.3 PRODUCT :

    Figure7.3 Product1

  • 7/31/2019 Advance Object Oriented Programming

    33/35

    Chapter7: Data Dictionary

    27

    Figure7.4 Product2

    7.4 SHIPPING :

    Figure7.5 Shipping

  • 7/31/2019 Advance Object Oriented Programming

    34/35

    28

    CONCLUSION

    The project SHOP STYLE is for giving the comfort to the people. The software takes care of all

    the requirements of an average mall and is Capable to provide easy and effective storage of

    information related to product description. It contains all type of top Brands products. The

    system also provides the facility of backup as per the requirement.

  • 7/31/2019 Advance Object Oriented Programming

    35/35

    REFERENCES

    http://en.wikipedia.org/wiki/Main_Page

    http://www.google.com

    http://en.wikipedia.org/wiki/Main_Pagehttp://en.wikipedia.org/wiki/Main_Pagehttp://www.google.com/http://www.google.com/http://www.google.com/http://en.wikipedia.org/wiki/Main_Page