They would both achieve the same result, but -
The first expression will only work if the language setting of the
page is "VB".
The second expression with DataBinder.Eval will work in either a
language = "VB" or a language = "C#" page.
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 30 Nov 2004 09:05:03 -0800, "Ed Chiu"
<Ed****@discussions.microsoft.com> wrote:
Hi,
What are the differences between
<%# Container.DataItem("CustomerID") %>
and
<%# Databinder.eval(Container.DataItem, "CustomerID") %>
I saw both of them used in a lot of sample codes.
TIA