ASPX Data Binding. Using a DataObject, a data source and many clicks

Yes, today DataBind(); Why? becuase I receive many questions regarding this; not here, but on skype, ymess, face to face ...

This how-to article refers to Visual Studio (2005, 2008 and probably and th future versions).

There are many ways to bind controls and data in aspx. Here I present a method that use many clicks and works very well. What do you need: 1st you need on DataObject(1) with a DataObjectMethod(2) as you can see in this picture:

Ok, we have the data that should be binded, now we are going to controll that must pe populated. here we choose to create a new datasource and we chose the type of the source "Object"; In next step we navigate to the objects that are marked as data objects, we select the object and the method and in the end we specify the params (if this exists):

configuring data source

configuring data source

... and the result

configuration results


Posted by: admin
Posted on: 9/3/2009 at 11:30 PM
Tags: , , , , ,
Categories: .NET | ASP | Visual Studio
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed