What's wrong with Eval()?
The .NET Framwork 2.0 introduces Eval(). Eval() is a shortcut for Container.DataItem(). Since Eval() uses Reflection, it causes overhead. From a optimization standpoint, it is better to use Container.DataItem().
VB.NET
Container.DataItem()
C#
DataReader: ((System.Data.Common.DbDataRecord)Container.DataItem)[]
DataSet: ((System.Data.DataRowView)Container.DataItem)[]
R
VB.NET
Container.DataItem()
C#
DataReader: ((System.Data.Common.DbDataRecord)Container.DataItem)[]
DataSet: ((System.Data.DataRowView)Container.DataItem)[]
R
Similar Posts
- Bind does not exist in the current context
- VB.NET 2.0 XML Comments
- Why doesn't a link in a HyperLinkField render?





Comments
Dan_Foote on on 3.13.2006 at 2:36 AM
I'm struggling with this - all i want to do is have the calenadr bound, but i want the calandar to default the selected date to Date.today, so if th eusre doesn't enter a date, the default date is passed to sql - is this possible????