Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Repeating FormView

Status
Not open for further replies.

Malchik

Programmer
Dec 8, 2001
148
CA
Hi,

I am learning ASP.NET. To do so, I am developping a small Forum site with Microsoft Access table (as I said it is for learning and it is small). My database is desing and most of my forms. I am exploring the best way to display a post and its reply. I'd like to have an opinion(my code is separate from the WebForm : ASPX and ASPX.VB):

I was thinking to use HTMLTable or a Repeater with controls. I will need to display images, date, time, User's information, message and link (reply, edit, delete...). Which of this is better or is it an event better way?

Thanks for your help.

Mal'chik [bigglasses]
 
There are a few methods you could use. A repeater would probably be the best data control to use as it gives you more control over the output. Another method would be to create a user control with the required controls, and place this inside the repeater. This would then mean you could use the User Control to display a single message elsewhere if you needed to.



-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
It wasn't a problem, more a best practice type of question. But I followed your suggestion and used a repeater and it worked pretty good.

thanks!

Mal'chik [bigglasses]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top