Velocity Reviews

Velocity Reviews (
-   ASP .Net Datagrid Control (
-   -   Databinding Best Practices (

Ryan 11-09-2004 04:56 PM

Databinding Best Practices

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")



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.