Gurjeet Singh

Gurjeet Singh

  • NA
  • 516
  • 306.6k

Why use this.... <%# Eval("") %>'

Jun 15 2011 2:50 AM

What is the use of <%# Eval("") %>. I am not able to understand what is the purpose ot this thing.<asp:DataList ID="DataList1" runat="server" DataSourceID="XmlDataSource1">
<ItemTemplate>
name:
<asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' />
<br />
id:
<asp:Label ID="idLabel" runat="server" Text='<%# Eval("id") %>' />
<<br />br />
</ItemTemplate>
</asp:DataList>





Answers (4)