Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Datagrid Control (http://www.velocityreviews.com/forums/f60-asp-net-datagrid-control.html)
-   -   Databinding Best Practices (http://www.velocityreviews.com/forums/t761285-databinding-best-practices.html)

Ryan 11-09-2004 04:56 PM

Databinding Best Practices
 
Hi.

I was wondering if anyone has encountered a performance
difference in the following 2 databinding techniques:

1. Displaying data in the HTML Code as such:

<%#DataBinder.Eval(Container.DataItem, "SOME_FIELD")%>

2. Displaying data using the code-behind ItemDataBound
event as such:

Dim lblTemp As Label
lblTemp = CType(e.Item.FindControl("lblSomeField"), Label)
lblTemp.Text = DataBinder.Eval
(e.Item.DataItem, "SOME_FIELD")

Thanks,

Ryan


All times are GMT. The time now is 02:50 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.