|
-
Aug 5th, 2004, 01:49 AM
#2
I am just learning ASP.NET and I tend to stay away from having to code HTML. What I did was use the DataList control. Basically, add the controls you want to use for a single dataset row in the DataList's Item Template area and then bind the DataList to the Dataset. The DataList_ItemDataBound event will fire for every row in the Dataset allowing you to populate the controls (there are other methods as well). .NET will handle writing the HTML code to duplicate everything in Item Template area for each row in the dataset.
The concept of DataBinding in .NET seems to be very different than it is in VB. I did use a DataReader and am assuming its the same as using a DataSet. I guess I am also assuming you are using VB.Net for the code behind page....
So much to learn...
If you want a live example of the DataList control in action, checkout the Business Directory at mrpmchamber.ca (browse the directory using the list you will see on the left, which is an Infragistics Treeview control).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|