What's wrong with Eval()?

written by rolshan on Tuesday, December 06 2005

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

Similar Posts

  1. Bind does not exist in the current context
  2. VB.NET 2.0 XML Comments
  3. Why doesn't a link in a HyperLinkField render?

Comments

  • Dan_Foote on on 3.13.2006 at 2:36 AM

    Dan_Foote avatar

    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????

Post a comment