ASP.NET
  Home arrow ASP.NET arrow Page 3 - Source Code for Saving and Retrieving Data...
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

Source Code for Saving and Retrieving Data with AJAX
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2008-09-11

    Table of Contents:
  • Source Code for Saving and Retrieving Data with AJAX
  • More Source Code Listings
  • Still More Source Code Listings
  • Summary

  • 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


    Source Code for Saving and Retrieving Data with AJAX - Still More Source Code Listings


    (Page 3 of 4 )

    Example 4-8. Default.aspx.vb for AWProductDataOrderDetails

    Partial Class _Default
        Inherits System.Web.UI.Page

        Protected Sub GridView1_RowDataBound(ByVal sender As Object, _
                       ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs)

            If e.Row.RowType = DataControlRowType.DataRow Then
                Dim cellProductNumber As TableCell = e.Row.Cells(3) ' ProductNumber
                If cellProductNumber.Text.Substring(0, 2) = "CA" Then
                  
    cellProductNumber.ForeColor = Drawing.Color.Green
                End If

                Dim cellMakeFlag As TableCell = e.Row.Cells(4) ' MakeFlag column
                Dim cb As CheckBox = CType(cellMakeFlag.Controls(0), CheckBox)
                If cb.Checked Then
                   
    e.Row.Cells(2).ForeColor = Drawing.Color.Red
                End If
            End If
        End Sub

        Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, _
                ByVal e As System.EventArgs)
            
    If GridView1.SelectedRow.RowType = DataControlRowType.DataRow Then
                Dim cellName As TableCell = GridView1.SelectedRow.Cells(2) ' Name
                txtName.Text = cellName.Text
           
    End If
        End Sub
    End Class

    More ASP.NET Articles
    More By O'Reilly Media


     

    Buy this book now. This article is excerpted from chapter four of Learning ASP.NET 2.0 with AJAX: A Practical Hands-on Guide, written by Jesse Liberty, Dan Hurwitz and Brian MacDonald (O'Reilly, 2007; ISBN: 0596513976). Check it out today at your favorite bookstore. Buy this book now.

    ASP.NET ARTICLES

    - 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...
    - Building an In-Text Advertising System Under...
    - Developing a Mini ASP.NET AJAX Server Centri...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    Stay green...Green IT