In a gridview, we can use <%#Eval%>
or <%#Bind%>
to output values from a database. What is the difference between them?
as they said Eval is one way and Bind is two way but one more important difference Bind must be assigned to a property of server side control (runat="server") while you can assign Eval to server side or client side control
<%--you can do this--%>
<%--you can do this--%>
<%--WILL CAUSE AN ERROR--%>
"<%#Bind('xx') %>"
<%--you can do this--%>
"<%#Eval('xx') %>"