Your post went unanswered. Have you resolved this issue? If you still need
help, please post the original question with your request.
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Jordan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm curious if the whole point of Repeaters/Data Lists/Grids is
> encapsulating additional functionality like add/update/edit/deletes, but
> really does not provide any benefits when it comes to simply displaying
> information.
>
> For example, if I wanted ONLY to show information (not edit/adds/etc) in a
> format that is similar, but has customized text (ex. make this word a link
> if the quantity is > 0). Which of these methods would be better, if anyonc
> of them can be considered "better":
>
> 1) Straight Loops w/o Using a Control
> While (Dr.Read()) {
> ...
> if (Dr.GetInt32[3] > 0) { ...}
> ...
> }
>
> 2) Using a Repeater w/o Functions to Customize Look
> <repeater >
> <itemtemplate>
> <table><tr><td>...</td></tr>
> <%# ShowQuantityLink(Databinder.Eval(Container.DataItem,
> "Quanitity")) %>
> </table>
> </itemtemplate>
> </repeater>
>
> 3) or simply removing the function call, and putting all the function
code
> in the same place.
>
> 4) Also, I could use the OnItemTemplateCreated method of the Repeater
object
> as well...
>
> Because all the code will be compiled before executing, does it really
> matter how I choose to simply display information? (granted, selecting a
> certain method provides OO benefits which I'm not getting into here)
>
>
>
>