Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
Blah – I hate stupid error messages. Basically everywhere you look to see what causes this, it has something to do with cacading drop downs. I have ran into this error twice and the fix is – change a “=” to a “#”
if you have in your aspx page
<%= GetMyInfo(Eval("Blah").ToString()) %>
it will throw that error if it is in a repeater or data control. Change it to
<%# GetMyInfo(Eval("Blah").ToString()) %>
and viola! it works :)
Simlar Posts
- .NET and Oracle – Match Made in Hell (Data provider internal error(-3000) [System.String])
- Auto Submit Form in ASP.NET With Javascript
- SSIS – Pulling Data from a non default collation DB to a default collation DB
- TFS Source Control: No Commands Available
- HowTo: Migrate Hotmail to Gmail or Google Apps for Your Domain
