Custom Data Binding for Server Controls
page 7 of 7
by Justin Lovell
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 51725/ 248

An Ending Note

All I did in this article is demonstrating the basics of data binding and some collection management in server controls. Obviously, you can add more binding features like XML and such but that will take some code. You might not even like the idea of the internal data source being a DataTable but you are free to turn to another “medium”… as long as it can be an offline abstract of the data (like XML).

 

To summarize the article:

 

  1. Manipulate the given data in the DataSource property into one data type. For example, transform it into a DataTable.
  2. Use the transformed data to populate the sub-controls.
  3. Bind the sub-data to the
  4. Save the transformed data into view state so it can be used during post backs.

 

You might want to watch Scott Mitchell for a while because he is also going to roll out a similar article at the ASP.NET Dev Centre.

 

Happy Programming!


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 5 and 4 and type the answer here:

User Comments

Title: Why Doesn't It Work   
Name: Marc
Date: 6/4/2009 3:09:50 PM
Comment:
My TitleDescriptionItems never display. CreateChildControlsnever gets hit. Why?
Title: DataSourceID   
Name: Andrew
Date: 6/20/2008 11:11:26 AM
Comment:
Great article, however I was wondering how would one implement the DataSourceID and DataMember properties?

Product Spotlight
Product Spotlight 






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2009 ASPAlliance.com  |  Page Processed at 11/21/2009 12:18:27 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search