PC Review


Reply
Thread Tools Rate Thread

Re: Data Binding - using inline code vs. functions vs. straight binding

 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      9th Mar 2004
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)
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i get my text in columns straight and inline in word 2007 lee Microsoft Word Document Management 2 3rd Sep 2008 03:06 PM
Straight Line is not straight klm Microsoft Excel Misc 2 13th Sep 2007 07:19 PM
straight line graph, really straight line.. =?Utf-8?B?SmFzb24=?= Microsoft Excel Misc 2 20th Jul 2006 10:08 PM
Your browser does not support inline frames or is currently configured not to display inline frames. Craig Cockburn Windows XP Internet Explorer 4 1st Jun 2006 11:06 PM
How to have links outside an inline frame open a specific spot inside the inline frame....... WGS Microsoft Frontpage 1 20th Apr 2005 12:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:55 PM.