Valhalla Legends Archive

Programming => Web Development => Topic started by: Banana fanna fo fanna on August 15, 2004, 08:24 PM

Title: ASP.NET - repeating data?
Post by: Banana fanna fo fanna on August 15, 2004, 08:24 PM
I am converting http://hwx.no-ip.info:8090/lescord/ to ASP.net. How do I do repeating news data from a database? I don't see a way to do that without going classic ASP style.
Title: Re:ASP.NET - repeating data?
Post by: quasi-modo on August 17, 2004, 07:16 AM
Well, like I said on aim, I prefer to use the asp.net repeater control.
http://www.asp101.com/articles/john/repeater/default.asp Is a good little explantion on how to use it. You basically have a replate that repeats and the data within the little template is swapped out each time.
Title: Re:ASP.NET - repeating data?
Post by: MyndFyre on August 17, 2004, 08:01 PM
I like to approach design issues with an n-tier structure, so I usually create middle-tier objects (between the data and layout) that either render their own HTML or create their own controls.
Title: Re:ASP.NET - repeating data?
Post by: quasi-modo on August 17, 2004, 09:51 PM
Quote from: MyndFyre on August 17, 2004, 08:01 PM
I like to approach design issues with an n-tier structure, so I usually create middle-tier objects (between the data and layout) that either render their own HTML or create their own controls.
The repeater simply outputs the data though. Its not much more then a loop the response.writes out the next value in a data set. It gives you complete control over the html. Thats why I love it.