Im working on the following markup, inside a databound control in ASP.NET Webforms.
<asp:TemplateField HeaderText="DomainID">
<ItemTemplate>
<% for (int i = 0; i < 10; i++)
{%>
<%#Eval("DomainID"); %>
<% ++i;
} %>
</ItemTemplate>
</asp:TemplateField>
Is it possible to actually write code blocks inside the <%#Eval("DomainID"); %>
section such as
<%# var x = Eval("DomainID"); if ((int)x)>0){//print this} %>
If im making any sense?