Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DataBinder.Eval() : bad performance ! alternatives ?

3 views
Skip to first unread message

Don Pedro

unread,
Jul 3, 2003, 4:28:40 AM7/3/03
to
According to the documentation for the DataBinder class's Eval method should
it only be used with discretion due to the fact it is latebound and uses
reflection.

"CAUTION Since this method performs late-bound evaluation, using
reflection, at runtime, it can cause performance to noticeably slow compared
to standard ASP.NET data-binding syntax."
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html
/frlrfsystemwebuidatabinderclassevaltopic1.asp?frame=true )

I have heard people talk about a 30% performance loss in comparison to other
methods, but what are these methods and what alternatives are there to using
this (very nice for RAD) method ?

/ DonPedro

Natty Gur

unread,
Jul 3, 2003, 11:58:16 AM7/3/03
to
Hi,

One option :

((DataRowView)Container.DataItem)["myData"]

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

0 new messages