ASP.NET ItemTemplates, EVAL() and embedding dynamic values into controls
Posted by: Rick Strahls WebLog,
on 27 Apr 2006 |
View original | Bookmarked: 0 time(s)
Dealing with complex Eval() expressions inside of ItemTemplate or other data containers always makes me do a double take. Here are a few observations and thoughts on how to handle and possibly improve handling of this feature in the future.
So, a typical scenario is embedding controls inside of an item template. The template loops through the datasource and you now want to embed values from the datasource into the child controls of the ItemTemplate.
For example:
<asp:repeater...