+ All Categories
Home > Documents > Online Old Car Selling

Online Old Car Selling

Date post: 03-Apr-2018
Category:
Upload: nilabjo-kanti-paul
View: 215 times
Download: 0 times
Share this document with a friend

of 105

Transcript
  • 7/28/2019 Online Old Car Selling

    1/105

  • 7/28/2019 Online Old Car Selling

    2/105

    INDEX1 Candidate Declaration

    2 Acknowledgement

    3 Preface

    1.Objective of the project

    1.1 Introduction

    1.2 Problem Description

    1.3 Technologies

    1.4 Front End

    1.5 Back End

    2.System Design

    2.1 introductions

    2.2 Existing system with limitation

    2.3 Proposed system with objectives

    3.Feasibility study

    3.1 Introduction

    3.2 Economical

    3.3 Technical

    3.4 Time

    4.System Analysis

    4.1 Introduction

    4.2 Flow Chart

    4.3 DFDs

    5.Hardware and software specification

  • 7/28/2019 Online Old Car Selling

    3/105

    5.1 Specification

    5.2 Requirement

    6.System Design

    6.1 Introduction

    6.2 Database design

    6.3 Input/output forms design

    6.4 Implementation

    7.User Requirements

    8.System testing

    8.1 Introduction

    9.Implementation

    9.1 Introduction

    9.2 Aspect

    10.Cost Estimation

    10.1 Introduction

    11.Conclusion

    11.1 Limitations

    11.2 Specification

  • 7/28/2019 Online Old Car Selling

    4/105

    CANDIDATES DECLARATION

    I, here by certify that the work which is being presented in the projectentitled Online Car Selling System, in partial fulfillment of the

    requirements, in Chip InfoTech, is recorded of our own work and was

    carried out for a period of one month under the guidance of our Guide

    Mr._________, ____________________ in Chip InfoTech, Dehradun.

    Date:

    This is to certify that the above statement made by the candidate is correctto the best of our knowledge.

  • 7/28/2019 Online Old Car Selling

    5/105

    ACKNOWLEDGEMENT

    I would also like to give special thanks to our teacher Mr.___________________ who gave us full support in preparingthe project.

    We are highly indebted to our parents and all others, as withouttheir help and moral support, this project could not be complete.

    PLACE:

    DATE:

  • 7/28/2019 Online Old Car Selling

    6/105

  • 7/28/2019 Online Old Car Selling

    7/105

    INTRODUCTION

  • 7/28/2019 Online Old Car Selling

    8/105

    INTRODUCTION

    The Project Online Car Selling System is a user interactive and delivery based websitewhere online selling of cars is done and confirmations can be generated shortly withgetting all the required details regarding each user.

    Business done by e-commerce is far more efficient, faster and reliable then traditionalcommerce.

    This method of adoption of doing business via e-commerce is user friendly system whichwill help user to access the test records easily.

    The method of getting reports through e-commerce is far more efficient then traditionalcommerce.

  • 7/28/2019 Online Old Car Selling

    9/105

  • 7/28/2019 Online Old Car Selling

    10/105

    Assumptions

    Highly developing Online Car Selling System , following assumptions were kept inmind for the administrator.

    The user logged in with ID and Password is valid user.

    The user id taken from the user is not received to the database, and is redirected directlyto the main via SSL.

    System analysis

    What does system study actually mean?

    It is an orderly grouping of interdependent components liked together according to a plan toachieve specific objectives. Its main characteristics are organization in interaction,

    interdependence, integration and centered objective.

    The study of system concepts has three basic implications:

    1. A system must be designed to achieve a predetermined objective.

    2. Inter relationships and inter dependents must exists among the components.

    3. The objectives of organization as a whole have a higher priority their objectives of itssubsystems.

  • 7/28/2019 Online Old Car Selling

    11/105

    CHARACTERISTICS OF THE SYSTEM

    Some characteristics are presents in all systems: organization, inter-dependence, integration andcentral objectives.

    ORGANISATION

    This implies structures and other is the arrangement of the components that helps to achieveobjectives. It starts with the person on top, leading downwards to the organizational structure.

    INTERACTIONIt refers to the manner in which each module/components functions with other modulecomponents of the system.

  • 7/28/2019 Online Old Car Selling

    12/105

    CATALOGUING

    The booking received are given an identification number, which identifies the books as well asgiven a unique accession number, items also have a serial number last serial number tells the

    total price. Accession number is given as per the following scheme .The details of the orders bought are then entered into the catalogue register the register storesthe following information date of acquisition, accession number, booking details, user name ,Incase multiple Copies are received each copy is given a unique accession number .

    EXOSTOMG SUSTEM

    In the existing system all the works is being done manually. All the day to day working of thedispatching is managed by a person and all the record are kept manually in the registers.

    Drawbacks in the existing system are:

    1. It is time consuming because all the information is kept manually.

    2. There is a problem of data redundancy.

    3. It requires more manpower.

    PROPOSED SYSTEM

    In the proposed system all the work will be done using computer. The storage of all the data andinformation will be centralized, which will remove the problem of data redundancy with the useof computers, the speed of work will increase substantially less manpower will be required andcustomized report can be generate from time to time depending upon requirement.

  • 7/28/2019 Online Old Car Selling

    13/105

    RECEIVING AND SENDING OF REPORTS

    Whenever a user wants to see the order, it is countersigned. When a member wants to check record of order he has order, he has to get user code and then checks whether the order wassubmitted or not.

    The details include date of conduction and another detail regarding the user and items.

  • 7/28/2019 Online Old Car Selling

    14/105

  • 7/28/2019 Online Old Car Selling

    15/105

  • 7/28/2019 Online Old Car Selling

    16/105

    PROBLEM DESCRIPTION

    Manual system suffers from great limitations like time wastage, errors due to work,

    complications in maintaining and analyzing the records. To start these problems we havedesigned a computerize system for maintaining the records.

    That will provide different kind of facilities like-

    1. The main aim is automation of orders.

    2. To make the system independent.

    3. To make the system flexible.

    4. Records are easy to analyze, search, view etc.

    5. The system will able to generate Reports.

  • 7/28/2019 Online Old Car Selling

    17/105

    TECHNOLOGIES

    FRONTEND ASP DOT NET WITH C#

    BACKEND

    SQLSERVER 2008

    Internet Information Service

  • 7/28/2019 Online Old Car Selling

    18/105

    SYSTEM STUDY

  • 7/28/2019 Online Old Car Selling

    19/105

    EXISTING SYSTEM WITH LIMITATIONS

    The existing system is manual. All the records kept a paper & prepared manually.The record kept in registers & files, written manually & different types of records

    are stored in different files.

    Limitations of existing system-:

    1. The existing system is manual so it is very difficult to maintain the records

    properly.

    2. In the manual system it is very difficult to analyze the records.

    3. Records are not to be maintained for a long time.

    4. Problem of record losing, inaccuracy are there.

    5. Searching of any particular records take very long time.

    6. Report generation and computerized printouts is also a big problem.

  • 7/28/2019 Online Old Car Selling

    20/105

    PROPOSED SYSTEM WITH OBJECTIVE

    Manual system suffers from great limitations like time wastage. Errors due to work

    complications in maintaining & analyzing the records. To sort these problems we

    have designed a computerized system for maintaining the records for the record

    keeper of the concern organization.

    Provide a fully computerized booking system.

    Dynamic search engine.

    Complete day-to-day booking status.

    Complete day-to-day registered record.

  • 7/28/2019 Online Old Car Selling

    21/105

    FEASIBILITY

    STUDY

  • 7/28/2019 Online Old Car Selling

    22/105

    INTRODUCTION

    Feasibility study is the test of proposal according to its workability impact on the organization.

    Ability meets the user needs and effective use of the resources. It depends on the initial

    investigation. It focuses on the three major questions.

    1. What are the users demonstrable needs and how does a candidate system meet them?

    2. What resources are available for given candidate system? Is the problem worth solving?

    3. What are likely impacts of the candidate system?

    Each of these questions must be answered carefully. Its main objective is not to solve the

    problem but to acquire a sense of its scope. During the study, the problem definition is

    crystallize and aspects of the problem to be included in the system are determined. The result of

    the feasibility study is a formal proposal which summaries what is known and what is going to

    be done. it consists of the following-:

    STATEMENT OF THE PROBLEM-: A carefully worded statement of the problem that leads

    to analysis.

    Summary of problem and recommendation-: A list of major findings and recommendations

    of the study. It is ideal for the users require quick access to the analysis of the system

    understudy.

    Details of findings-: An outline of the method and procedure undertaken by existing system

    followed by coverage of the objectives and procedure of the new system.

    Recommendation and conclusion-: Specific recommendation regarding the candidate system

    including personnel assignment cost and target dates. This is a crucial decision point in life

  • 7/28/2019 Online Old Car Selling

    23/105

    cycle, Many projects die here whereas the more promising ones continue through

    implementation. So to make the best system we also did a feasibility study after collecting all

    the accurate data, which we known a new system.

    The main objective of doing feasibility study is-:

    To identify the deficiencies of the current system.

    To determine the objective of the purposed system.

    To acquire a sense of the system

    To identify the responsible user

    To determine whether it is feasible to develop the new system.

    We analyze the feasibility to the purposed system through the three types of feasibility studies,

    which are as below.

    Economical feasibility

    Technical feasibility

    Time feasibility

    Economical feasibility-:

    Economical feasibility is the most frequently used method for evaluating the effectiveness of

    the proposed system. More commonly known as cost/benefit analysis, the procedure is to

    determine the benefits and saving that are expected from the proposed system. According to the

    concept of economic feasibility our project is economically feasible for the project development

    of software for ONLINE CAR SELLING SYSTEM, which will implement this package.

  • 7/28/2019 Online Old Car Selling

    24/105

    Technical feasibility-:

    Technical feasibility centers on the system such as hardware, software etc. and to what extent it

    can support the proposed package. It also needs to be ensuring that the requesting hardware for

    operating system.

    Time feasibility-:

    Time feasibility involves the duration about the project has to complete. Since the existing

    website take very less time to achieve every task, so to have the time it must be made a system.

    The existing system was manual form, so to see the dispatch, status report, receiving and

    sending etc, is very time consuming. The person requires very less time.

    Steps in feasibility study-:

    Feasibility involves the following steps-:

    Form a project team and appoint a project leader.

    Prepare system flow charts.

    Enumerate potential system.

    Describe and identify characteristics of system.

    Determine and evaluate performance and cost effectiveness of system.

    Select the best system.

    Weight system performance and cost data.

  • 7/28/2019 Online Old Car Selling

    25/105

    SYSTEM ANALYSIS

  • 7/28/2019 Online Old Car Selling

    26/105

    INTRODUCTION

    Now comes the most important phase of the project development, system analysis.We know the accuracy of a system depends on how well the requirement is defined

    by the user. Analysis also, is responsible for the accuracy of system design. So if wewant our design to be a good one the analysis should be of good quality.

    Analysis focuses on the study of existing system, data collection and the data flow.There are some tools by which analysis is done. Few of the tools are DFD, Flowchart, ER Diagram, Structure English, data dictionaries, Decision tables, etc.

    We have used only two tools to analyze the data flow of the existing system, thesethree tools are DFD, Flow chart, ER Diagram. A brief explanation on both the toolsare given in the next section of this section

    1. Flow Chart

    2. DFD

  • 7/28/2019 Online Old Car Selling

    27/105

    3. Entity Relationship Diagram

    FLOW CHARTSA flow chart is a pictorial representation of an algorithm that uses box of differenttypes of instructions. The actual instructions are return within these boxes usingclear and concise statement. These boxes are connected by line having arrow marksto indicate the flow of information i.e. the exact sequence in which the instructionsare being executed. The symbols and their functions are discussed below:

    TERMINALS:- The terminal symbol as the name implies is used to indicate the beginning(start), ending (stop) in the program.

    INPUT/OUTPUT:-The input/output symbol is used to denote any function of any

    input/output device in the program.

  • 7/28/2019 Online Old Car Selling

    28/105

    PROCESSING:- A processing symbol is used in a flow chart to represent thearithmetic and data movement functions.

    Data FlowDiagram

  • 7/28/2019 Online Old Car Selling

    29/105

    DFD (DATA FLOW DIAGRAM)

    A model is an expensive facsimile of a system model may either be abstract paper model or aworking model.(abstract mode print) abstract mode tools are required to develop model new

    system has to be developed according to the recruitment off its user. It is advisable to build a

    model of a system capture and requirement of the user. Iteration may be performing on the

    model till user approves it.

    Data Flow Diagram:-

    The following aspect of his system can be modeled using a data flow diagram (DFD)

  • 7/28/2019 Online Old Car Selling

    30/105

    What function must be system performing?

    What are the interactions between these function?

    What are transformations carried out by these functions? What are transformed?

    What output by function?

    From where does the system receive the inputs?

    Where does the system deliver its output?

    It may be observed that D.F.D. emphasis the function of a system along with the transformation

    performed by these functions.

    D.F.D has two basic type of components:

    Process

    Data flow

    1. Process

    Processes are also called by function and are show circle or bubble in the diagram. Function

    performs input to output.

    2. Data flow

    ___________________

  • 7/28/2019 Online Old Car Selling

    31/105

    Data flows are shown by curved direction arrow. A data flow presents the data that flows

    from one system to another.

    DATA FLOW DIAGRAM:

    LEVEL 0:

    User ONLINE CARBOOKING SYSTEM

    BOOKING

    Display

    CANCELLATION

  • 7/28/2019 Online Old Car Selling

    32/105

    LEVEL 1(a):

    LEVEL 1(b):

    User BOOKINGAccept thedetails

    STOCK DATABASE

    Reservein the file

    UserCancellation

    Accept the

    details

    STOCK DATABASE

    Cancelin thefile

  • 7/28/2019 Online Old Car Selling

    33/105

    LEVEL 2:

    Use Display

    READ ORDERDETAILS

    Customerdatabase

    Displayin tabularform

  • 7/28/2019 Online Old Car Selling

    34/105

  • 7/28/2019 Online Old Car Selling

    35/105

  • 7/28/2019 Online Old Car Selling

    36/105

  • 7/28/2019 Online Old Car Selling

    37/105

    SOFTWARE

    SPECIFICATIONS

  • 7/28/2019 Online Old Car Selling

    38/105

    Software Requirements

    Operating System. : Windows XP

    Developing Tool : DOT NET (C#)

    Database : SQL SERVER

    Browser : Internet Explorer

  • 7/28/2019 Online Old Car Selling

    39/105

  • 7/28/2019 Online Old Car Selling

    40/105

    announced, including Microsoft's new Visual Basic .NET and C# languages, as well as Pythonand Perl support by way of interoperability tools created by Active State .

    Once the ".NET" branding was decided on in the second half of 2000, it was decided to renameASP+ to ASP.NET. Mark Anders explained on an appearance on The MSDN Show that year that, "The .NET initiative is really about a number of factors, it's about delivering software as aservice, it's about XML and web services and really enhancing the Internet in terms of what itcan do ... we really wanted to bring its name more in line with the rest of the platform piecesthat make up the .NET framework."

    After four years of development, and a series of beta releases in 2000 and 2001, ASP.NET 1.0was released on January 5, 2002 as part of version 1.0 of the .NET Framework . Even prior tothe release, dozens of books had been written about ASP.NET, [7] and Microsoft promoted itheavily as part of their platform for web services. Guthrie became the product unit manager for ASP.NET, and development continued apace, with version 1.1 being released on April 24, 2003as a part of Windows Server 2003 . This release focused on improving ASP.NET's support for mobiledevices.

    Characteristics

    Pages

    .NET pages, known officially as "web forms", are the main building block for applicationdevelopment. [8] Web forms are contained in files with an ".aspx" extension; these files typicallycontain static ( X)HTML markup, as well as markup defining server-side Web Controls and

    User Controls where the developers place all the required static and dynamic content for theweb page. Additionally, dynamic code which runs on the server can be placed in a page withina block which is similar to other web development technologies suchas PHP , JSP , and ASP , but this practice is generally discouraged except for the purposes of data

    binding since it requires more calls when rendering the page.

    Note that this sample uses code " inline ", as opposed to code-behind .

    protected void Page_Load(object sender, EventArgs e)

    {Label1.Text = DateTime.Now.ToLongTimeString();

    }

    http://en.wikipedia.org/wiki/Visual_Basic_.NEThttp://en.wikipedia.org/wiki/C_Sharp_(programming_language)http://en.wikipedia.org/wiki/Python_(programming_language)http://en.wikipedia.org/wiki/Perlhttp://en.wikipedia.org/wiki/ActiveStatehttp://en.wikipedia.org/wiki/ActiveStatehttp://en.wikipedia.org/wiki/.NET_Frameworkhttp://en.wikipedia.org/wiki/ASP.NET#cite_note-6%23cite_note-6http://en.wikipedia.org/wiki/Windows_Server_2003http://en.wikipedia.org/wiki/ASP.NET#cite_note-macdonald63-7%23cite_note-macdonald63-7http://en.wikipedia.org/wiki/XHTMLhttp://en.wikipedia.org/wiki/HTMLhttp://en.wikipedia.org/wiki/PHPhttp://en.wikipedia.org/wiki/JavaServer_Pageshttp://en.wikipedia.org/wiki/Active_Server_Pageshttp://en.wikipedia.org/wiki/Binding_(computer_science)http://en.wikipedia.org/wiki/Binding_(computer_science)http://en.wikipedia.org/wiki/Inline_functionhttp://en.wikipedia.org/wiki/Code-behindhttp://en.wikipedia.org/wiki/Visual_Basic_.NEThttp://en.wikipedia.org/wiki/C_Sharp_(programming_language)http://en.wikipedia.org/wiki/Python_(programming_language)http://en.wikipedia.org/wiki/Perlhttp://en.wikipedia.org/wiki/ActiveStatehttp://en.wikipedia.org/wiki/.NET_Frameworkhttp://en.wikipedia.org/wiki/ASP.NET#cite_note-6%23cite_note-6http://en.wikipedia.org/wiki/Windows_Server_2003http://en.wikipedia.org/wiki/ASP.NET#cite_note-macdonald63-7%23cite_note-macdonald63-7http://en.wikipedia.org/wiki/XHTMLhttp://en.wikipedia.org/wiki/HTMLhttp://en.wikipedia.org/wiki/PHPhttp://en.wikipedia.org/wiki/JavaServer_Pageshttp://en.wikipedia.org/wiki/Active_Server_Pageshttp://en.wikipedia.org/wiki/Binding_(computer_science)http://en.wikipedia.org/wiki/Binding_(computer_science)http://en.wikipedia.org/wiki/Inline_functionhttp://en.wikipedia.org/wiki/Code-behind
  • 7/28/2019 Online Old Car Selling

    41/105

    Sample page

    The current time is:

    Code-behind model

    Microsoft recommends dealing with dynamic program code by using the code-behind model,which places this code in a separate file or in a specially designated script tag. Code-behindfiles typically have names like MyPage.aspx.cs or MyPage.aspx.vb while the page file is

    MyPage.aspx (same filename as the page file (ASPX), but with the final extension denoting the page language). This practice is automatic in Microsoft Visual Studio and other IDEs . Whenusing this style of programming, the developer writes code to respond to different events, likethe page being loaded, or a control being clicked, rather than a procedural walk through thedocument.

    ASP.NET's code-behind model marks a departure from Classic ASP in that it encouragesdevelopers to build applications with separation of presentation and content in mind. In theory,this would allow a web designer, for example, to focus on the design markup with less potentialfor disturbing the programming code that drives it. This is similar to the separation of thecontroller from the view in model-view-controller frameworks.

    Example

    The above tag is placed at the beginning of the ASPX file. The CodeFile property of the @ Page directive specifies the file (.cs or .vb) acting as the code-behind while the Inherits property specifies the Class the Page derives from. In this example, the @ Page directive isincluded in SampleCodeBehind.aspx, then SampleCodeBehind.aspx.cs acts as the code-behindfor this page:

    http://en.wikipedia.org/wiki/Microsoft_Visual_Studiohttp://en.wikipedia.org/wiki/Integrated_development_environmenthttp://en.wikipedia.org/wiki/Separation_of_presentation_and_contenthttp://en.wikipedia.org/wiki/Model-view-controllerhttp://en.wikipedia.org/wiki/Microsoft_Visual_Studiohttp://en.wikipedia.org/wiki/Integrated_development_environmenthttp://en.wikipedia.org/wiki/Separation_of_presentation_and_contenthttp://en.wikipedia.org/wiki/Model-view-controller
  • 7/28/2019 Online Old Car Selling

    42/105

    using System; namespace Website{

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

    protected void Page_Load(object sender, EventArgs e){

    Response.Write("Hello, world");}

    }}

    In this case, the Page_Load() method is called every time the ASPX page is requested. The programmer can implement event handlers at several stages of the page execution process to perform processing.

    User controls

    An event bubbling mechanism provides the ability to pass an event fired by a user control up toits containing page.

    Custom Controls

    Programmers can also build Custom controls for ASP.NET applications. Unlike User controlsthese controls don't have an ASCX markup-file, having all their code compiled into a DLL-file.Such Custom controls can be used across multiple web-applications and Visual Studio projects(which is not allowed with User controls ). By using a Register directive, the control is loadedfrom the DLL.

    Rendering technique

    ASP.NET uses a visited composites rendering technique. During compilation, the template(.aspx) file is compiled into initialization code which builds a control tree (the composite)representing the original template. Literal text goes into instances of the Literal control class,and server controls are represented by instances of a specific control class. The initializationcode is combined with user-written code (usually by the assembly of multiple partial classes)and results in a class specific for the page. The page doubles as the root of the control tree.

    Actual requests for the page are processed through a number of steps. First, during theinitialization steps, an instance of the page class is created and the initialization code isexecuted. This produces the initial control tree which is now typically manipulated by themethods of the page in the following steps. As each node in the tree is a control represented as

  • 7/28/2019 Online Old Car Selling

    43/105

    an instance of a class, the code may change the tree structure as well as manipulate the properties/methods of the individual nodes. Finally, during the rendering step a visitor is used tovisit every node in the tree, asking each node to render itself using the methods of the visitor.The resulting HTML output is sent to the client.

    After the request has been processed, the instance of the page class is discarded and with it theentire control tree. This is usually a source of confusion among novice ASP.NET programmersthat rely on class instance members that are lost with every page request/response cycle.

    State management

    ASP.NET applications are hosted by a web server and are accessed using the stateless HTTP protocol. As such, if an application uses stateful interaction, it has to implement statemanagement on its own. ASP.NET provides various functions for state management.Conceptually, Microsoft treats "state" as GUI state; problems may arise if an application needsto keep track of "data state", for example, a finite state machine which may be in a transient

    state between requests ( lazy evaluation ) or which takes a long time to initialize.Application state

    Application state is held by a collection of shared user-defined variables. These are set andinitialized when the Application_OnStart event fires on the loading of the first instance of theapplications and are available till the last instance exits. Application state variables are accessedusing the Applications collection, which provides a wrapper for the application state variables.Application state variables are identified by name.

    Session stateServer-side session state is held by a collection of user-defined session variables, which are

    persisted during a user session. These variables, accessed using the Session collection, are uniqueto each session instance. Then variables can be set to be automatically destroyed after a definedtime of inactivity, even if the session does not end. Client-side user session is maintained byeither a cookie or by encoding the session ID in the URL itself.

    ASP.NET supports three modes of persistence for session variables:

    In Process Mode

    When using In Process Mode, the session variables are maintained within the ASP.NET process . This is the fastest way; however, in this mode the variables are destroyed whenthe ASP.NET process is recycled or shut down.

    http://en.wikipedia.org/wiki/Web_serverhttp://en.wikipedia.org/wiki/Stateless_serverhttp://en.wikipedia.org/wiki/HTTPhttp://en.wikipedia.org/wiki/State_managementhttp://en.wikipedia.org/wiki/State_managementhttp://en.wikipedia.org/wiki/GUIhttp://en.wikipedia.org/wiki/Lazy_evaluationhttp://en.wikipedia.org/wiki/HTTP_cookiehttp://en.wikipedia.org/wiki/Process_(computing)http://en.wikipedia.org/wiki/Web_serverhttp://en.wikipedia.org/wiki/Stateless_serverhttp://en.wikipedia.org/wiki/HTTPhttp://en.wikipedia.org/wiki/State_managementhttp://en.wikipedia.org/wiki/State_managementhttp://en.wikipedia.org/wiki/GUIhttp://en.wikipedia.org/wiki/Lazy_evaluationhttp://en.wikipedia.org/wiki/HTTP_cookiehttp://en.wikipedia.org/wiki/Process_(computing)
  • 7/28/2019 Online Old Car Selling

    44/105

  • 7/28/2019 Online Old Car Selling

    45/105

    Server-side caching

    ASP.NET offers a "Cache" object that is shared across the application and can also beused to store various objects. The "Cache" object holds the data only for a specifiedamount of time and is automatically cleaned after the session time-limit elapses.

    Other

    Other means of state management that are supported by ASP.NET are cookies , cachingand using the query string .

    Template engine

    When first released, ASP.NET lacked a template engine . Because the .NET framework isobject-oriented and allows for inheritance , many developers would define a new base class thatinherits from "System.Web.UI.Page", write methods here that render HTML, and then make the

    pages in their application inherit from this new class. While this allows for common elements to be reused across a site, it adds complexity and mixes source code with markup . Furthermore,this method can only be visually tested by running the application - not while designing it.Other developers have used include files and other tricks to avoid having to implement the samenavigation and other elements in every page.

    ASP.NET 2.0 introduced the concept of "master pages", which allow for template -based pagedevelopment. A web application can have one or more master pages, which, beginning withASP.NET 3.5, can be nested. Master templates have place-holder controls, calledContentPlaceHolders to denote where the dynamic content goes, as well as HTML and

    JavaScript shared across child pages.Child pages use those ContentPlaceHolder controls, which must be mapped to the place-holder of the master page that the content page is populating. The rest of the page is defined by theshared parts of the master page, much like a mail merge in a word processor . All markup andserver controls in the content page must be placed within the ContentPlaceHolder control.

    When a request is made for a content page, ASP.NET merges the output of the content pagewith the output of the master page, and sends the output to the user.

    The master page remains fully accessible to the content page. This means that the content pagemay still manipulate headers, change title, configure caching etc. If the master page exposes public properties or methods (e.g. for setting copyright notices) the content page can use theseas well.

    Other files

    Other file extensions associated with different versions of ASP.NET include:

    http://en.wikipedia.org/wiki/HTTP_cookiehttp://en.wikipedia.org/wiki/Cachinghttp://en.wikipedia.org/wiki/Query_stringhttp://en.wikipedia.org/wiki/Template_enginehttp://en.wikipedia.org/wiki/.NET_frameworkhttp://en.wikipedia.org/wiki/Object_orientedhttp://en.wikipedia.org/wiki/Inheritance_(computer_science)http://en.wikipedia.org/wiki/Method_(computer_science)http://en.wikipedia.org/wiki/Source_codehttp://en.wikipedia.org/wiki/Markup_languagehttp://en.wikipedia.org/wiki/Header_filehttp://en.wikipedia.org/wiki/Web_templatehttp://en.wikipedia.org/wiki/HTMLhttp://en.wikipedia.org/wiki/JavaScripthttp://en.wikipedia.org/wiki/Mail_mergehttp://en.wikipedia.org/wiki/Word_processorhttp://en.wikipedia.org/wiki/Server_(computing)http://en.wikipedia.org/wiki/HTTP_cookiehttp://en.wikipedia.org/wiki/Cachinghttp://en.wikipedia.org/wiki/Query_stringhttp://en.wikipedia.org/wiki/Template_enginehttp://en.wikipedia.org/wiki/.NET_frameworkhttp://en.wikipedia.org/wiki/Object_orientedhttp://en.wikipedia.org/wiki/Inheritance_(computer_science)http://en.wikipedia.org/wiki/Method_(computer_science)http://en.wikipedia.org/wiki/Source_codehttp://en.wikipedia.org/wiki/Markup_languagehttp://en.wikipedia.org/wiki/Header_filehttp://en.wikipedia.org/wiki/Web_templatehttp://en.wikipedia.org/wiki/HTMLhttp://en.wikipedia.org/wiki/JavaScripthttp://en.wikipedia.org/wiki/Mail_mergehttp://en.wikipedia.org/wiki/Word_processorhttp://en.wikipedia.org/wiki/Server_(computing)
  • 7/28/2019 Online Old Car Selling

    46/105

  • 7/28/2019 Online Old Car Selling

    47/105

  • 7/28/2019 Online Old Car Selling

    48/105

    be global (e.g. messages) or "local" which means specific for a singleaspx or ascx f ile.

    sitemap 2.0 sitemap configuration files. Default file name is web.sitemap

    skin 2.0 theme skin files.

    svc 3.0 Windows Communication Foundation service fileedmx 3.5 ADO.NET Entity Framework model

    Directory structure

    In general, the ASP.NET directory structure can be determined by the developer's preferences.Apart from a few reserved directory names, the site can span any number of directories. Thestructure is typically reflected directly in the urls. Although ASP.NET provides means for intercepting the request at any point during processing, the developer is not forced to funnelrequests through a central application or front controller.

    The special directory names (from ASP.NET 2.0 on) are ] :

    App_Browsers

    holds site-specific browser definition files.

    App_Code

    This is the "raw code" directory. The ASP.NET server automatically compiles files (andsubdirectories) in this folder into an assembly which is accessible in the code of every

    page of the site. App_Code will typically be used for data access abstraction code, modelcode and business code. Also any site-specific http handlers and modules and web serviceimplementation go in this directory. As an alternative to using App_Code the developer may opt to provide a separ ate asse mbly with precompile d code.

    App_Data

    http://en.wikipedia.org/wiki/Databasehttp://en.wikipedia.org/wiki/Web_Services_Description_Languagehttp://en.wikipedia.org/wiki/Web_servicehttp://en.wikipedia.org/wiki/Databasehttp://en.wikipedia.org/wiki/Web_Services_Description_Languagehttp://en.wikipedia.org/wiki/Web_service
  • 7/28/2019 Online Old Car Selling

    49/105

    default directory for databases, such as Access mdb files and SQL Server mdf files. Thisdirectory is usually the only one with write access for the application.

    App_LocalResources

    Contains localized resource files for individual pages of the site. E.g. a file calledCheckOut.aspx.fr-FR.resx holds localized resources for the French version of theCheckOut.aspx page. When the UI culture is set to french, ASP.NET will automaticallyfind and use this file for localization.

    App_Gl obalResources

    Holds resx files with localized resources available to every page of the site. This is wherethe ASP.NET developer will typically store localized messages etc. which are used onmore than one page.

    App_Themes

    holds alternative themes of the site.

    App_WebRefere nces

    holds discovery files and WSDL files for references to web services to be consumed inthe site.

    Bin

    Contains compiled code (.dll files) for controls, components, or other code that you wantto reference in your application. Any classes represented by code in the Bin folder areautomatically referenced in your application.

    http://en.wikipedia.org/wiki/Internet_Information_Serviceshttp://en.wikipedia.org/wiki/ASP.NET_AJAXhttp://en.wikipedia.org/wiki/ASP.NET_MVC_Frameworkhttp://en.wikipedia.org/wiki/Dynamic_link_libraryhttp://en.wikipedia.org/wiki/Computer_filehttp://en.wikipedia.org/wiki/Web_serverhttp://en.wikipedia.org/wiki/Internet_Information_Serviceshttp://en.wikipedia.org/wiki/Internet_Information_Serviceshttp://en.wikipedia.org/wiki/ASP.NET_AJAXhttp://en.wikipedia.org/wiki/AJAX_(programming)http://en.wikipedia.org/wiki/ASP.NET_MVC_Frameworkhttp://en.wikipedia.org/wiki/Model_View_Controller
  • 7/28/2019 Online Old Car Selling

    50/105

    Performance

    ASP.NET aims for performance benefits over other script-bas ed technologies (including ClassicASP) by compiling the server-side code to one or more DLL files on the web server. Thiscompilation happens automatically the first time a page is requested (which means thedeveloper need not perform a separate compilation step for pages). This feature provides theease of development offered by scripting languages with the performance benefits of acompiled binary. However, th e comp ilatio n might ca use a noticeable but short delay to the webuser when the newly-edited page is first requested from the web server, but won't again unlessthe page requested is updated further.

    The ASPX and other resource files are p laced in a virtual host on an Internet I nform ationServices server (or other compatible ASP.NET servers; see Other Implementations, below). Thef irst time a client requests a page, the .NET framework parses and compile s the file(s) into a.NET assembly and sends the response; subsequent requests are served from the DLL files. Bydefault ASP.NET will compile the entire site in batches of 1000 files upon first request. If the

    compilation delay is causing problems, the batch size or the compilation strategy may betweaked.

    Developers can also choose to pre-compile their "codebehind" files before deployment, usingMS Visual Studio, eliminating the need for just-in-time compilation in a productionenvironment. This also eliminates the need of having the source code on the web server.

    Extension

    Microsoft has released some extension frameworks that plug into ASP.NET and extend its

    functionality. Some of them are:

    AS P.NET AJA X

    An extension with both client-side as well as server-side components for writingASP.NET pages that incorporate AJAX functionality.

    ASP.NET MVC Framework

    An extension to author ASP.NET pages using the MVC architecture.

    http://en.wikipedia.org/wiki/Microsoft_Windowshttp://en.wikipedia.org/wiki/Widget_(computing)http://en.wikipedia.org/wiki/User_interfacehttp://en.wikipedia.org/wiki/HTMLhttp://en.wikipedia.org/wiki/JavaScripthttp://en.wikipedia.org/wiki/Scripting_programming_languagehttp://en.wikipedia.org/wiki/PHPhttp://en.wikipedia.org/wiki/ViewStatehttp://en.wikipedia.org/wiki/Stateless_serverhttp://en.wikipedia.org/wiki/Exception_handlinghttp://en.wikipedia.org/wiki/Common_Language_Runtimehttp://en.wikipedia.org/wiki/Microsoft_Windowshttp://en.wikipedia.org/wiki/Widget_(computing)http://en.wikipedia.org/wiki/User_interfacehttp://en.wikipedia.org/wiki/HTMLhttp://en.wikipedia.org/wiki/JavaScripthttp://en.wikipedia.org/wiki/Event-driven_programminghttp://en.wikipedia.org/wiki/Graphical_user_interfacehttp://en.wikipedia.org/wiki/Scripting_programming_languagehttp://en.wikipedia.org/wiki/PHPhttp://en.wikipedia.org/wiki/ViewStatehttp://en.wikipedia.org/wiki/Stateless_serverhttp://en.wikipedia.org/wiki/Exception_handlinghttp://en.wikipedia.org/wiki/Web_templatehttp://en.wikipedia.org/wiki/Common_Language_Runtimehttp://en.wikipedia.org/wiki/Common_Language_Runtimehttp://en.wikipedia.org/wiki/Code-behindhttp://en.wikipedia.org/wiki/Object-oriented_programminghttp://en.wikipedia.org/wiki/Memory_leakhttp://en.wikipedia.org/wiki/Session_statehttp://en.wikipedia.org/wiki/Microsoft_SQL_Server
  • 7/28/2019 Online Old Car Selling

    51/105

    ASP.NET compared with ASP classic

    ASP.NET sim plifie s developers' transition from Windows application development to webdevelopment by offering the ability to build pages composed of controls similar to a W indowsuse r interface. A web control, such as a button or label , functions in very much the same way asits Windows counterpart: code can assign its properties and respond to its events. Controlsknow how to render themselves: whereas Windows controls draw themselves to the screen, webcontrols produce segments of HTML and JavaScript which form part of the resulting page sentto the end-user's brow ser.

    ASP.NET encourages the programmer to develop applications usin g an event- driven GUImodel, rather than in conventional web-scripting environments like ASP and PHP. Theframework combines existing technologies such as JavaScript with internal components like"ViewState" to bring persistent (inter-request) state to the inherently stateless web environment.

    Other differe nces compared to ASP classic are:

    Compiled code means applications run fas ter with mor e d esign-time errors trapped at thedevelopment stage.

    Significantly improved run-time error handling, making use of exception handling usingtry-catch blocks.

    Similar metaphors to Microsoft Windo ws ap plications such as controls and events.

    An extensive set of controls and class libraries allows the rapid building o f applica tions, plus user-defined controls allow commonly-used web template, such as menus. Layout of thes e controls on a page is easier because most of it can be done visually in most editors.

    ASP.NET leverages the multi-language capabilities of the .NET Common LanguageRuntime, allowing web pages to be coded in VB.NET, C#, J#, Delphi.NET, Chrome etc.

    Ability to cache the whole page or just parts of it to improve performance.

    Ability to use the code-behind development model to separate business logic from presentation.

    Ability to use true object-oriented design for programming both page and controls

    If an ASP.NET application leaks memory, the ASP.NET runtime unloads theAppDomain hosting the erring application and reloads the application in a newAppDomain.

    Session state in ASP.NET can be saved in a Microsoft SQL Server database or in aseparate process running on the same machine as the web server or on a differentmachine. That way session values are not lost when the web server is reset or theASP.NET worker process is recycled.

    http://en.wikipedia.org/wiki/W3Chttp://en.wikipedia.org/wiki/Internet_Explorerhttp://en.wikipedia.org/wiki/Internet_Explorerhttp://en.wikipedia.org/wiki/Cascading_Style_Sheetshttp://en.wikipedia.org/wiki/WYSIWYGhttp://en.wikipedia.org/wiki/Session_Statehttp://en.wikipedia.org/wiki/Internet_Information_Serviceshttp://en.wikipedia.org/wiki/Internet_Information_Serviceshttp://en.wikipedia.org/wiki/Loginhttp://en.wikipedia.org/wiki/HTMLhttp://www.asp.net/cssadapters/http://www.asp.net/cssadapters/http://en.wikipedia.org/wiki/XHTMLhttp://en.wikipedia.org/wiki/CSShttp://en.wikipedia.org/wiki/Span_and_divhttp://en.wikipedia.org/wiki/W3Chttp://en.wikipedia.org/wiki/Internet_Explorerhttp://en.wikipedia.org/wiki/Internet_Explorerhttp://en.wikipedia.org/wiki/Cascading_Style_Sheetshttp://en.wikipedia.org/wiki/WYSIWYGhttp://en.wikipedia.org/wiki/Internet_Information_Serviceshttp://en.wikipedia.org/wiki/Session_Statehttp://en.wikipedia.org/wiki/Internet_Information_Serviceshttp://en.wikipedia.org/wiki/Internet_Information_Serviceshttp://en.wikipedia.org/wiki/Web_accessibilityhttp://en.wikipedia.org/wiki/XHTMLhttp://en.wikipedia.org/wiki/CSShttp://en.wikipedia.org/wiki/Loginhttp://en.wikipedia.org/wiki/HTMLhttp://en.wikipedia.org/wiki/Table_(HTML)http://en.wikipedia.org/wiki/Microsofthttp://www.asp.net/cssadapters/http://www.asp.net/cssadapters/http://en.wikipedia.org/wiki/XHTMLhttp://en.wikipedia.org/wiki/CSShttp://en.wikipedia.org/wiki/Span_and_divhttp://en.wikipedia.org/wiki/Web_Services
  • 7/28/2019 Online Old Car Selling

    52/105

    Versions of ASP.NET prior to 2.0 were criticized for their lack of standards compliance.The generated HTML and JavaScript sent to the client browser would not always validateagainst W3C /ECMA standards. In addition, the framework's browser detection featuresometimes incorrectly identified web browsers other than Microsoft's own InternetExplorer as "downlevel" and returned HTML/JavaScript to these clients with some of thefeatures re moved, or sometimes crippled or broken. However, in version 2.0, all controlsgenerate v alid HTML 4.0, XHTML 1.0 (the default) or XHTML 1.1 output, dependingon the site configuration. Detection of standards-compliant web browsers is more robustand support for Cascading Style Sheets is more extensive.

    Web Serve r Controls : these are controls introduced by ASP.NET for providing the UI for the web form. These controls are state managed controls and are WYSIWYG controls.

    Criticism

    On IIS 6.0 and lower, pages written using different versions of the ASP framework cannot shareSession State wit hout the use of third-party libraries. This criticism does not apply to ASP.NETand ASP applications running side by side on IIS 7. With IIS 7, modules may be run in anintegrated pipelin e that allows modules written in any language to be executed for any request.

    ASP.NET 2.0 W eb Forms produces markup that passes W3C validation, but it is debatable as towhether this inc reases accessibility, one of the benefits of a semantic XHTML page + CSSrepresentation. S everal controls, such as the Login controls and the Wizard control, use HTMLtables for layout by defaul t. Microsoft has solved this problem by releasing the ASP.NET 2.0CSS Co ntrol Adapters, a free add-on that produces compliant accessible XHTML+CSSmarkup, as well as addi ng a property to the login control in ASP.NET 4.0 which enables it to

    run in div mode instead of table mode.A few of the ASP.NET Web Forms features, such as repositioning of pages and alter browser history, are available only in Internet Explorer.

    Microsoft positions Web Services and consequently IIS/ASP.NET as their primary applicationserver solution. Big conceptual shortcomings become apparent when implementing complex

    business applicat ions that use "out-of-the-box" Microsoft approach: ASP.NET lacks solid statemanagem ent, dev elopers need to hand-code custom state-handling modules that must store statein some external process because ASP.NET worker process restarts automatically. This can be

    illustrated with a simple example: imagine an ASP.NET website that relies on a server component that must preserve its state and that state was achieved as the result of complexalgorithms - e.g. super-imposing route geometry over a map. A route took many CPU cycles tocompute and mul tiple subsequent client requests shall "see" the result while rendering map tiles.

    Another exam ple: when state is encapsulated in a legacy COM object that can not be marshaled between web/session state servers - the only possible mode is "in-proc" which is unreliable because of application restarts.

    http://www.bluevisionsoftware.com/WebSite/ProductsAndServicesInfo.aspx?ID=9http://www.bluevisionsoftware.com/WebSite/ProductsAndServicesInfo.aspx?ID=9http://www.bluevisionsoftware.com/WebSite/ProductsAndServicesInfo.aspx?ID=9http://www.bluevisionsoftware.com/WebSite/ProductsAndServicesInfo.aspx?ID=9http://en.wikipedia.org/wiki/Microsoft_Visual_Studiohttp://en.wikipedia.org/wiki/Microsoft_Visual_Studiohttp://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/CodeGear_Delphihttp://en.wikipedia.org/wiki/Macromedia_HomeSitehttp://en.wikipedia.org/wiki/Adobe_Systemshttp://en.wikipedia.org/wiki/Macromedia_HomeSitehttp://en.wikipedia.org/wiki/Microsoft_Expression_Webhttp://en.wikipedia.org/wiki/Microsoft_Expression_Webhttp://en.wikipedia.org/wiki/Microsoft_SharePoint_Designerhttp://en.wikipedia.org/wiki/Microsoft_SharePoint_Designerhttp://en.wikipedia.org/wiki/Microsoft_SharePoint_Designerhttp://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/Microsoft_SharePoint_Designerhttp://en.wikipedia.org/wiki/Novellhttp://www.eiffel.com/downloads/asp.net.htmlhttp://www.eiffel.com/downloads/asp.net.htmlhttp://en.wikipedia.org/wiki/Eiffel_Softwarehttp://en.wikipedia.org/wiki/Macromedia_Dreamweaverhttp://en.wikipedia.org/wiki/Macromedia_Dreamweaverhttp://www.bluevisionsoftware.com/WebSite/ProductsAndServicesInfo.aspx?ID=9http://www.bluevisionsoftware.com/WebSite/ProductsAndServicesInfo.aspx?ID=9http://www.bluevisionsoftware.com/WebSite/ProductsAndServicesInfo.aspx?ID=9http://en.wikipedia.org/wiki/Microsoft_Visual_Studiohttp://en.wikipedia.org/wiki/Microsoft_Visual_Studiohttp://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/CodeGear_Delphihttp://en.wikipedia.org/wiki/CodeGear_Delphihttp://en.wikipedia.org/wiki/Embarcadero_Technologieshttp://en.wikipedia.org/wiki/Embarcadero_Technologieshttp://en.wikipedia.org/wiki/Macromedia_HomeSitehttp://en.wikipedia.org/wiki/Macromedia_HomeSitehttp://en.wikipedia.org/wiki/Adobe_Systemshttp://en.wikipedia.org/wiki/Microsoft_Expression_Webhttp://en.wikipedia.org/wiki/Microsoft_Expression_Webhttp://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/Microsoft_SharePoint_Designerhttp://en.wikipedia.org/wiki/Microsoft_SharePoint_Designerhttp://en.wikipedia.org/wiki/Microsoft_SharePoint_Designerhttp://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/MonoDevelophttp://en.wikipedia.org/wiki/Novellhttp://en.wikipedia.org/wiki/SharpDevelophttp://www.eiffel.com/downloads/asp.net.htmlhttp://www.eiffel.com/downloads/asp.net.htmlhttp://en.wikipedia.org/wiki/Eiffel_Softwarehttp://en.wikipedia.org/wiki/Macromedia_Dreamweaverhttp://en.wikipedia.org/wiki/Macromedia_Dreamweaverhttp://en.wikipedia.org/wiki/Adobe_Systems
  • 7/28/2019 Online Old Car Selling

    53/105

    Development tools

    Several available software packages exist for developing ASP.NET applications:

    Product Developer Licensing Notes

    ASP.N ET

    Intellis enseGenerator

    BlueVisionLLC Free

    Microsoft VisualStudio

    Micro softFree andCommercial

    CodeGear Delphi

    Em barcaderoTechnologies

    Commercial

    MacromediaHomeSite Adobe Systems Commercial

    MicrosoftExpression Web

    Microsoft Commercial

    MicrosoftSharePointDesigner

    Microsoft Free

    MonoDevelop Novell and theMonocommunity

    Free OpenSource

    SharpDevelopICSharpCodeTeam

    Free OpenSource

    Eiffel for ASP.NET

    Eiffel SoftwareFree OpenSource andCommercial

    MacromediaDreamweaver

    Adobe Systems Commercial

    Supports important ASP.NET 2.0 features,and produces very inefficient code for ASP.NET 1.x: also, code generation andASP.NET features support through version8.0.1 was changed very little from versionMX if at all. Version 8.0.2 does improvesecurity against SQL injection attacks

    http://en.wikipedia.org/wiki/Databasehttp://en.wikipedia.org/wiki/DotNetNukehttp://en.wikipedia.org/wiki/DotNetNukehttp://en.wikipedia.org/wiki/Monorail_(.Net)http://en.wikipedia.org/wiki/NHibernatehttp://en.wikipedia.org/wiki/Base_One_Foundation_Component_Libraryhttp://en.wikipedia.org/wiki/Rapid_application_developmenthttp://en.wikipedia.org/wiki/Databasehttp://en.wikipedia.org/wiki/Distributed_computinghttp://en.wikipedia.org/wiki/DotNetNukehttp://en.wikipedia.org/wiki/Monorail_(.Net)http://en.wikipedia.org/wiki/Model-view-controllerhttp://en.wikipedia.org/wiki/Ruby_on_Railshttp://en.wikipedia.org/wiki/Castle_ActiveRecordhttp://en.wikipedia.org/wiki/NHibernatehttp://en.wikipedia.org/wiki/Spring_frameworkhttp://en.wikipedia.org/wiki/Mono_(software)http://en.wikipedia.org/wiki/ASP.NET#cite_note-monoproject-17%23cite_note-monoproject-17
  • 7/28/2019 Online Old Car Selling

    54/105

  • 7/28/2019 Online Old Car Selling

    55/105

  • 7/28/2019 Online Old Car Selling

    56/105

    The ADO.NET Data Architecture

    Data Access in ADO.NET relies on two components: DataSet and Data Provider.

    DataSet

    The dataset is a disconnected, in-memory representation of data. It can be considered as a localcopy of the relevant portions of the database. The DataSet is persisted in memory and the datain it can be manipulated and updated independent of the database. When the use of this DataSetis finished, changes can be made back to the central database for updating. The data in DataSetcan be loaded from any valid data source like Microsoft SQL server database, an Oracledatabase or from a Microsoft Access database.

    Data Provider

    The Data Provider is responsible for providing and maintaining the connection to the database.A DataProvider is a set of related components that work together to provide data in an efficientand performance driven manner. The .NET Framework currently comes with twoDataProviders: the SQL Data Provider which is designed only to work with Microsoft's SQLServer 7.0 or later and the OleDb DataProvider which allows us to connect to other types of databases like Access and Oracle. Each DataProvider consists of the following componentclasses:

    The Connection object which provides a connection to the databaseThe Command object which is used to execute a command

    The DataReader object which provides a forward-only, read only, connected recordset

    The DataAdapter object which populates a disconnected DataSet with data and performsupdate

    Data access with ADO.NET can be summarized as follows:

    A connection object establishes the connection for the application with the database. The

    command object provides direct execution of the command to the database. If the commandreturns more than a single value, the command object returns a DataReader to provide the data.Alternatively, the DataAdapter can be used to fill the Dataset object. The database can beupdated using the command object or the DataAdapter.

  • 7/28/2019 Online Old Car Selling

    57/105

    Component classes that make up the Data Providers

    The Connection Object

    The Connection object creates the connection to the database. Microsoft Visual Studio .NET provides two types of Connection classes: the SqlConnection object, which is designedspecifically to connect to Microsoft SQL Server 7.0 or later, and the OleDbConnection object,which can provide connections to a wide range of database types like Microsoft Access andOracle. The Connection object contains all of the information required to open a connection tothe database.

    The Command Object

    The Command object is represented by two corresponding classes: SqlCommand andOleDbCommand. Command objects are used to execute commands to a database across a dataconnection. The Command objects can be used to execute stored procedures on the database,

  • 7/28/2019 Online Old Car Selling

    58/105

    SQL commands, or return complete tables directly. Command objects provide three methodsthat are used to execute commands on the database:

    ExecuteNonQuery: Executes commands that have no return values such as INSERT,UPDATE or DELETEExecuteScalar : Returns a single value from a database query

    ExecuteReader: Returns a result set by way of a DataReader object

    The DataReader Object

    The DataReader object provides a forward-only, read-only, connected stream recordset from adatabase. Unlike other components of the Data Provider, DataReader objects cannot be directlyinstantiated. Rather, the DataReader is returned as the result of the Command object'sExecuteReader method. The SqlCommand.ExecuteReader method returns a SqlDataReader object, and the OleDbCommand.ExecuteReader method returns an OleDbDataReader object.The DataReader can provide rows of data directly to application logic when you do not need tokeep the data cached in memory. Because only one row is in memory at a time, the DataReader

    provides the lowest overhead in terms of system performance but requires the exclusive use of an open Connection object for the lifetime of the DataReader.

    The DataAdapter Object

    The DataAdapter is the class at the core of ADO .NET's disconnected data access. It isessentially the middleman facilitating all communication between the database and a DataSet.

    The DataAdapter is used either to fill a DataTable or DataSet with data from the database withit's Fill method. After the memory-resident data has been manipulated, the DataAdapter cancommit the changes to the database by calling the Update method. The DataAdapter providesfour properties that represent database commands:

    1. SelectCommand2. InsertCommand

    3. DeleteCo mmand

    4. UpdateCommand

    When the U pdate method is called, changes i n the D ataS et are co pied back to the database andthe appropriate InsertCommand, DeleteCommand, or UpdateCommand is executed.

    http://en.wikipedia.org/wiki/Web_applicationhttp://en.wikipedia.org/wiki/Googlehttp://en.wikipedia.org/wiki/Nokiahttp://en.wikipedia.org/wiki/YouTubehttp://en.wikipedia.org/wiki/Web_applicationhttp://en.wikipedia.org/wiki/LAMP_(software_bundle)http://en.wikipedia.org/wiki/PHPhttp://en.wikipedia.org/wiki/Flickrhttp://en.wikipedia.org/wiki/Facebookhttp://en.wikipedia.org/wiki/Googlehttp://en.wikipedia.org/wiki/Nokiahttp://en.wikipedia.org/wiki/YouTubehttp://en.wikipedia.org/wiki/RDBMS
  • 7/28/2019 Online Old Car Selling

    59/105

    Content Management System (CMS)

    Using A DO.NE T And SQL

    A Content Management System (CMS) is used to add, edit, and delete content on a website.For a small website, such as this, adding a nd deleti ng a page manually is fairly sim ple. But

    for a large website with lots of pages like a n ews website adding a page manually without acontent management system can be a headache .

    A CMS is meant to ease the process of adding and modifying new content to a webpage. The pages content are stored in database, not in the file server.

    What is SQL?

    Structured Query Language is a non-procedural language used to define, manipulate and

    retrieve data. It was developed by IBM (System/R project) in 1974-1979. The American National Standards Institute (ANSI) published in 1986 the first official standard of the language(later revised in 1989, 1992 and 1999), and since then, the industry has widely adopted SQL asthe relational da tabase l anguage. Virtually every datab ase syste m nowadays is interfacedthrough SQL.

    The specific data architecture addressed by SQL is called the relational architecture. Thevarious pieces of data (columns) are grouped into tables contained in databases, and we retrievedata using relations expressed between the tables.

    SQL

    SQL, a popular open-source implementation of SQL that is deployed by most Web host providers.

    USES

    SQL is used in web applications and acts as the database component of the LAMP software

    stack. Its popularity for use with web applications is closely tied to the popularity of ADO.NETwhich is often combined with SQL. Several high-traffic web sites (including Flickr , Facebook Wikipedia, Google (though not for searches), Nokia and YouTube ) use SQL for its data storageand logging of user data.

    DISTINGUISHING FEATURES

    The following features are implemented by MySQL but not by some other RDBMS software:

    http://en.wikipedia.org/wiki/MyISAMhttp://en.wikipedia.org/wiki/Falcon_(storage_engine)http://en.wikipedia.org/wiki/InnoDBhttp://en.wikipedia.org/wiki/SolidDBhttp://en.wikipedia.org/wiki/Infobrighthttp://www.infobright.org/http://en.wikipedia.org/wiki/Memcachedhttp://en.wikipedia.org/wiki/MaxDBhttp://en.wikipedia.org/wiki/SAP_AGhttp://en.wikipedia.org/wiki/Run_timehttp://en.wikipedia.org/wiki/MyISAMhttp://en.wikipedia.org/wiki/Falcon_(storage_engine)http://en.wikipedia.org/wiki/MySQL_Federatedhttp://en.wikipedia.org/wiki/MySQL_Archivehttp://en.wikipedia.org/wiki/Comma-separated_valueshttp://en.wikipedia.org/wiki/MySQL_Clusterhttp://en.wikipedia.org/wiki/Berkeley_DBhttp://en.wikipedia.org/wiki/Maria_(storage_engine)http://en.wikipedia.org/wiki/InnoDBhttp://en.wikipedia.org/wiki/SolidDBhttp://en.wikipedia.org/wiki/Infobrighthttp://www.infobright.org/http://en.wikipedia.org/wiki/Memcachedhttp://en.wikipedia.org/wiki/Web_serverhttp://en.wikipedia.org/wiki/MaxDBhttp://en.wikipedia.org/wiki/SAP_AGhttp://en.wikipedia.org/w/index.php?title=Production_use&action=edit&redlink=1
  • 7/28/2019 Online Old Car Selling

    60/105

  • 7/28/2019 Online Old Car Selling

    61/105

    DATABASEDESIGN

  • 7/28/2019 Online Old Car Selling

    62/105

  • 7/28/2019 Online Old Car Selling

    63/105

  • 7/28/2019 Online Old Car Selling

    64/105

    IMPLEMENTATION

  • 7/28/2019 Online Old Car Selling

    65/105

    Introduction

    Implementation includes all those activities that take place to convert the old system

    to new. The new system may be totally new; replacing and existing manual or

    automated system, or its may be major modification is essential to provide a reliable

    system to meet organizational requirements.

    Aspect of Implementation:

    The three aspect of Implementation are:

    Training personnel Conversion procedure Post Implementation review

    Training personnel:

  • 7/28/2019 Online Old Car Selling

    66/105

    Even well designed system can succeed off because of the way they are operatedand used, so who are directly or indirectly related with the system development.Work must known in detail what there will be, how they can make efficient use of system and what the system will do.

    Proper training was provided to all the operations and users. Data entry operatorshave been trained so that they are able to carry out their data entry work efficiently.

    In addition to this training was also provided aboutHow to add to the table?

    How to update data in the table?How to delete records from the tables?

    Conversion procedure

    The most secure method, parallel system implementation of converting of oldsystem to the new system. This technique was used so as to gradually withdraw the

    old system and so letting the user to become familiar with the new system.

    Post implementation and review

    The fundamental concern during post implementation review was to determinewhether the system needs its objectives. It was also review whether the systemgives the accuracy of information requires in appropriate formats. It was also

    checked if the system prevents error in inputs.

    After a through testing of the different aspects of the system, the live data wasactually loaded by the user staff sufficient training. The result indicated aconsiderable time saving and time very efficient.

  • 7/28/2019 Online Old Car Selling

    67/105

  • 7/28/2019 Online Old Car Selling

    68/105

    DEFAULT.ASPX

    CODE

    Untitled Page < strong >ONLINE CAR SELLING


  • 7/28/2019 Online Old Car Selling

    69/105

  • 7/28/2019 Online Old Car Selling

    70/105

    HM.ASPX

    CODE

    Untitled Page

    HOME

  • 7/28/2019 Online Old Car Selling

    71/105

    HOME

    The Car industry in India has seen a tremendous growth and seemsto be the fastest

    growing sector in the world. Indian cars have gained acceptanceall over the world,

    and the demand for cars made in India shows no signs of declinewhatsoever. The

    Indian car sector has responded with an exponential progress inthe number of new

    models launched in the recent past.

    The Indian car industry deals with different types of cars.Major Indian cars comprise

    big cars, small cars , sports cars, luxurious cars,etc. Most of the Indian

    car models are swank and designed on cutting-edge technology

    platforms, and each year there is a slew of latest car launches.

    For those, who cannot afford to buy a new car can go for usedcars. This Indian

    car site will provide you a complete database of car dealerswho are willing to

    buy and sell cars. You will get useful car buying tips andused car buying tips

    along with a complete used car buying guide, apart from thenew car buying tips

    and information on new car buying service. Browse through theextensively researched

    categories of Indian cars and get the most updatedinformation related to cars in

    India. Sign In Contact Us New User? Register Me

    Gallery

  • 7/28/2019 Online Old Car Selling

    72/105

  • 7/28/2019 Online Old Car Selling

    73/105

    SIGNIN.ASPX

    CODE

    Untitled Page

    HOME < span style ="font-size: 24pt; background-color:#cccc00"> Sign In < br />

    Username

  • 7/28/2019 Online Old Car Selling

    74/105

    Password Sign In Contact Us New User? Register Me

    Gallery Check Your Order >Chervolet

    >Honda >Tata Motors

  • 7/28/2019 Online Old Car Selling

    75/105

    >Others

    SIGNIN.ASP.CSusing 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 signin : System.Web.UI. Page{ protected void Page_Load( object sender, EventArgs e)

    {

    } protected void Button1_Click( object sender, EventArgs e)

    { SqlDataReader d;

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" );

    con1.Open(); SqlCommand myCommand = new SqlCommand ( "SELECT * FROM userdetail WHERE userid = '"+ TextBox1.Text + "' AND password='" + TextBox2.Text + "'" , con1);

    d = myCommand.ExecuteReader(); if (d.Read())

    {d.Close();

    SqlCommand my1 = new SqlCommand ( "CREATE TABLE cart(carname varchar(50),pricevarchar(50))" , con1);

    my1.ExecuteNonQuery();Response.Redirect( "HM.aspx" );

    } else

    Response.Redirect( "register.aspx" );

    con1.Close();}

    }

  • 7/28/2019 Online Old Car Selling

    76/105

  • 7/28/2019 Online Old Car Selling

    77/105

    Name E-MailAddress Password

    Sign In Contact Us New User? Register Me

    Gallery

    Check Your Order >Chervolet

  • 7/28/2019 Online Old Car Selling

    78/105

  • 7/28/2019 Online Old Car Selling

    79/105

  • 7/28/2019 Online Old Car Selling

    80/105

  • 7/28/2019 Online Old Car Selling

    81/105

    Tata Motors Indica Vista

    Price Range:

    Rs. 3,88,850

    Tata Motors Indigo Manza

    Price Range:

    Rs. 5,44,000

    Tata Motors Nano

    Price Range:

    Rs 1,41,450

    Tata Motors New Indigo eCS

    Price Range:

    Rs 4,48,980

  • 7/28/2019 Online Old Car Selling

    82/105

  • 7/28/2019 Online Old Car Selling

    83/105

  • 7/28/2019 Online Old Car Selling

    84/105

    string a, b;a = "Tata Motors Aria " ;b = "1161787" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button2_Click( object sender, EventArgs e){

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" ); string a, b;

    a = "Tata Motors Indica" ;b = "333450" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button3_Click( object sender, EventArgs e){

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" ); string a, b;

    a = "Tata Motors Indica eV2 " ;b = "299450" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button8_Click( object sender, EventArgs e){

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;Integrated

    Security=True;User Instance=True" ); string a, b;a = "Tata Motors Indica Vista" ;b = "388853" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

  • 7/28/2019 Online Old Car Selling

    85/105

    protected void Button4_Click( object sender, EventArgs e){

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" ); string a, b;

    a = "Tata Motors Indigo Manza" ;b = "514000" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button5_Click( object sender, EventArgs e){

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" ); string a, b;

    a = "Tata Motors Nano " ;b = "141450" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button6_Click( object sender, EventArgs e){

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" ); string a, b;

    a = "Tata Motors New Indigo eCS" ;b = "448900" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();

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

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" );

    con1.Open(); SqlCommand myCommand = new SqlCommand ( "DROP TABLE cart)" , con1);

    myCommand.ExecuteNonQuery();

    con1.Close();}

  • 7/28/2019 Online Old Car Selling

    86/105

  • 7/28/2019 Online Old Car Selling

    87/105

  • 7/28/2019 Online Old Car Selling

    88/105

    Price Range:

    Rs.22,64,009 Honda Accord

    Price Range:

    Rs.19,61,260

    Honda Jazz

    Price Range:

    Rs.5,50,000
    Sign In Contact Us New User? Register Me

  • 7/28/2019 Online Old Car Selling

    89/105

    Gallery Check Your Order >Chervolet < br /> < br /> >Honda >Tata Motors < br /> < br />

    HONDA.ASPX.CSusing System;

  • 7/28/2019 Online Old Car Selling

    90/105

    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 honda_cars : System.Web.UI. Page{ protected void Page_Load( object sender, EventArgs e)

    {

    } protected void Button1_Click( object sender, EventArgs e)

    { SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" ); string a, b;

    a = "Honda City" ;

    b = "740999" ;con1.Open(); SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button2_Click( object sender, EventArgs e){

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" ); string a, b;

    a = "Honda Civic" ;b = "1222000" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button3_Click( object sender, EventArgs e){ SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" ); string a, b;

    a = "Honda Brio " ;b = "395989" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);

  • 7/28/2019 Online Old Car Selling

    91/105

  • 7/28/2019 Online Old Car Selling

    92/105

    myCommand.ExecuteNonQuery();

    con1.Close();}

    }

    CHREVOLET.ASPX

    CODE

    Untitled Page

  • 7/28/2019 Online Old Car Selling

    93/105

  • 7/28/2019 Online Old Car Selling

    94/105

  • 7/28/2019 Online Old Car Selling

    95/105

  • 7/28/2019 Online Old Car Selling

    96/105

    a = "Chevrolet Spark" ;b = "327553" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button2_Click( object sender, EventArgs e){

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" ); string a, b;

    a = "Chevrolet Beat" ;b = "363450" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);

    myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button3_Click( object sender, EventArgs e){

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" ); string a, b;

    a = "Chevrolet Aveo U-VA " ;b = "420158" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button4_Click( object sender, EventArgs e){

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" );

    string a, b;a = "Chevrolet Aveo" ;b = "597745" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button5_Click( object sender, EventArgs e)

  • 7/28/2019 Online Old Car Selling

    97/105

    { SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" ); string a, b;

    a = "Chevrolet Tavera" ;b = "647947" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button6_Click( object sender, EventArgs e){

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" ); string a, b;

    a = "Chevrolet Optra Magnum" ;

    b = "750112" ;con1.Open(); SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button7_Click( object sender, EventArgs e){

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" ); string a, b;

    a = "Chevrolet Cruze" ;b = "1219640" ;con1.Open();

    SqlCommand myCommand = new SqlCommand ( "INSERT INTO cart(carname,price) VALUES(@cn,@pr) " , con1);

    myCommand.Parameters.AddWithValue( "@cn" , a);myCommand.Parameters.AddWithValue( "@pr" , b);myCommand.ExecuteNonQuery();

    con1.Close();}

    protected void Button8_Click( object sender, EventArgs e){ SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" );

    con1.Open(); SqlCommand myCommand = new SqlCommand ( "DROP TABLE cart)" , con1);

    myCommand.ExecuteNonQuery();

    con1.Close();}

    }

  • 7/28/2019 Online Old Car Selling

    98/105

    ORDER.ASPX

    CODE

    Untitled Page HOME < span >< span style ="background-color: #cccc00">

  • 7/28/2019 Online Old Car Selling

    99/105

    WHAT YOU HAVE ORDERED < br /> < br />

    Sign In Contact Us New User? Register Me

    Gallery

    Check Your Order >Chervolet

  • 7/28/2019 Online Old Car Selling

    100/105

    >Honda >Tata Motors

    ORDER.ASPX.CSusing 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 order : System.Web.UI. Page{ protected void Page_Load( object sender, EventArgs e)

    {

    } protected void Button1_Click1( object sender, EventArgs e)

    { SqlDataReader d;

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" );

    con1.Open(); SqlCommand myCommand = new SqlCommand ( "SELECT * FROM cart" , con1);

    d = myCommand.ExecuteReader(); if (d.Read())

    {TextBox1.Text = d[ "carname" ].ToString();TextBox2.Text = d[ "price" ].ToString();Response.Write( "your car has been booked. Please contact our center for

    deleivery of car" );

  • 7/28/2019 Online Old Car Selling

    101/105

    }

    elseResponse.Write( "Sorry! Your cart is empty" );

    con1.Close();}

    protected void Button2_Click( object sender, EventArgs e){

    SqlConnection con1 = new SqlConnection ( @"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\carselling.mdf;IntegratedSecurity=True;User Instance=True" );

    con1.Open(); SqlCommand myCommand = new SqlCommand ( "DROP TABLE cart" , con1);

    myCommand.ExecuteNonQuery();

    con1.Close();}

    }

  • 7/28/2019 Online Old Car Selling

    102/105

    COSTESTIMATION

  • 7/28/2019 Online Old Car Selling

    103/105

  • 7/28/2019 Online Old Car Selling

    104/105

    CONCLUSION

  • 7/28/2019 Online Old Car Selling

    105/105

    CONCLUSION

    I have accomplished various goals in developing the purposed system.

    USER FRIENDLINESS

    The system is totally user friendly since the user has only to enter the data and all

    functioning is done by the system. The required messages are displayed at proper time.

    DUPLICACY

    As data is entered in different modules so considerations made so the no duplicate

    entry exist in the system.


Recommended