What is the difference between having
<%# Eval("State") %>
in your aspx page, versus having
aspx
<%# DataBinder.Eval(Container.DataItem, "State") %>
in your aspx page?
Eval("State") is a simplified form of the DataBinder.Eval(Container.DataItem, "State") syntax. It only works inside of data-bound template controls.
For more info, see the MSDN documentation.
2.1m questions
2.1m answers
60 comments
56.8k users