Knowledge Base
Interpreting "Databinding Methods such as Eval() ..." Error Messages
Last Post 13 Apr 2010 10:40 AM by DNNDev Admin. 0 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
DNNDev AdminUser is Offline
Posts:6310
Avatar

--
13 Apr 2010 10:40 AM  
When working with XMod Pro, you may sometimes receive the error message below:

"Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control"

The message isn't all that helpful in the context of XMod Pro. It doesn't provide much useful information to help track down the source of the error.

When you see this message, it typically indicates that you've tried to use an XMod Pro "token" where it can't be used. Field tokens [[MyField]], environmental tokens [[Portal:ID]] [[User:ID]], and function tokens [[Join()]] are examples of tokens that may be the culprits.

So, start looking for tokens that are used outside of the data-binding context. If you are using a <NoItemsTemplate>, that's a good place to start. Also look for areas where you're using tokens outside the form or template tag or in other areas that aren't bound to data.
Power Your Website With XMod Pro
Buy XMod Pro Today
You are not authorized to post a reply.

Active Forums 4.1
spacer
dummy