Garnachito
New Member
I'm quite new to asp.net and vb.net, so my apologies if I do not use the correct terminology here.I have a database table and for each row in a returned dataset from that table I want to produce some HTML code eg:\[code\]<div> <img src="http://stackoverflow.com/questions/15709061/SOURCE" /> <h1>Row1</h1> <input type="button" /> <input type="button" /></div<div> <img src="http://stackoverflow.com/questions/15709061/SOURCE" /> <h1>Row2</h1> <input type="button" /> <input type="button" /></div\[/code\]What would be the best way to do this? Do I simply pull back an object with the entire data and then write a foreach loop to iterate through each row and insert a string to the page, or should I be looking to use a user control?I guess I'm trying to make a sort of forum listing page and want to fetch all topics with a particular entry in a database and then display this list on a page with some input controls and an image. I also want to add pagination; so to show only 10 posts at any time and then be able to paginate to the next page.Again I apologise if I've not been very clear, but I'm having a little bit of a hard time understanding the best way to tackle this.