Tuesday, March 13, 2012

Simple Forum

Hi i am trying to create a simple forum in ASP.NET. I have fourforum sections and I am retrieving the data (ie: section name anddescription) in a dataset. What is the best way to display these on thepage with the title and description on without using a gridview. Anyadvice to get me started would be great. Like in ASP where you wouldloop through a record set and response.write the data. Is there abetter way of doing it in dot net?

Take a look at the repeater. It allows you to show everything exactly as you want it.


A nice tutorial on the repeater which would probably do fine, if not you can take the datalist for a spin.
ONDotnet.com: ASP.NET Data Controls Part 2: Repeater
Grz, Kris.

Are you using ASP.NET 2.0? I saw you mentioning GridView.
What is wrong with GridView? If you still insist, you can still use DataList or even repeater.
Check those links:
http://authors.aspalliance.com/aspxtreme/webforms/controls/controlsfordisplayinglistsonwebpages.aspx
Regards

0 comments:

Post a Comment