Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
DataBinder Class
Eval Method

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
DataBinder..::.Eval Method

Uses reflection to parse and evaluate a data-binding expression against an object at run time.

  NameDescription
Public methodStatic memberEval(Object, String) Evaluates data-binding expressions at run time.
Public methodStatic memberEval(Object, String, String) Evaluates data-binding expressions at run time and formats the result as a string.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Example      benfulton   |   Edit   |   Show History

For example, instead of adding

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

to a page, you can simply add

<%# Eval( "Name")%> 
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker