Tuesday, June 26, 2007

Design time databinding to a control within an ItemTemplate

This is a kind of a hack, but comes in handy for certain situations such as assigning a data value to a control (i.e. ASP:HiddenField 'Value' attribute) contained within an ItemTemplate when binding in the code-behind is not feasible.

Value='<%# Eval("data_column_name") %>'

No comments: