Error: Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
Scenario1: You have created a repeater or gridview that looks like this:
First Name Last Name <%= Eval("FirstName") %> <%= Eval("LastName") %> <%= Eval("Email") %>
Scenario1: Please pay attention at the server tags format <%= Eval("FirstName") %>
Resolution 1 of Scenario 1: Try to format the server tag like this: <%#Eval("FirstName")%> ;
Resolution 2 of Scenario 1: If you are using as DataSource other provider that SQL, also try a server tag format that looks like this: <%#DataBinder.Eval(Container.DataItem,"field")%>;