ASP.NET
  Home arrow ASP.NET arrow Page 3 - Comment and Order Management for an ASP.NE...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Comment and Order Management for an ASP.NET AJAX Server-Centric Based Online Shopping Website
By: Xianzhong Zhu
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 6
    2008-01-23

    Table of Contents:
  • Comment and Order Management for an ASP.NET AJAX Server-Centric Based Online Shopping Website
  • Order Management
  • Initialization
  • Committing the Order

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Comment and Order Management for an ASP.NET AJAX Server-Centric Based Online Shopping Website - Initialization


    (Page 3 of 4 )


    Initialization

    When the "OrderManage.aspx" page is initialized, the related OrderFormdata is bound to GridView "OrderView," i.e. showing the factual order data and its associated state.

    protected void Page_Load(object sender, EventArgs e){

    Session["UserID"] = 1;

    ///bind data to the control

    if(!Page.IsPostBack) {

    BindOrderData();

    }

    }

    private void BindOrderData(){

    ///define the class that gets the data

    OrderForm order = new OrderForm();

    SqlDataReader dr = order.GetOrderFormByUser(Int32.Parse(Session["UserID"].ToString()));

    ///Set the control's data source

    OrderView.DataSource = dr;

    ///bind data to the control

    OrderView.DataBind();

    ///Close the database connection

    dr.Close();

    }

    Since there are enough comments on nearly each line of code here, let’s continue to see how to commit the order.

    More ASP.NET Articles
    More By Xianzhong Zhu


     

    ASP.NET ARTICLES

    - Adding Content to a Static ASP.NET Website
    - Building a Static ASP.NET Website in a Basic...
    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming
    - Introduction to the ADO.NET Entity Framework...
    - Completing an In-Text Advertising System und...
    - Programming an In-Text Advertising System un...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek