I'm new to .NET and web development in general, and have been working on code someone else wrote but can't figure out what this particular syntax is doing. I have a telerik RadGrid that is displaying data dynamically from a tsql database, and am using a GridTemplateColumn ItemTemplate to display a asp:Label control. The Text value of that control is Text='<%# Eval("RoleCode") %>'. "RoleCode" corresponds to a row returned by a stored procedure, "Eval" is a class that I'm not using on the page, but have used elsewhere in my application to (I think) access the properties stored in that class. (RoleCode is a property in that class.) My code works, but since the Eval class is not being used on this page, I don't understand why it works.
Is this the same kind of code as the <%@ Page ... %> code at the top of my page?
<telerik:RadGrid ID="grd1" runat="server" AllowSorting="true" OnNeedDataSource="grd1_NeedDataSource"
<MasterTableView ShowHeader="true" ShowFooter="false" CommandItemDisplay="Top" DataKeyNames="PersonID"
AllowSorting="true" EditFormSettings-EditColumn-Visible="false" EditFormSettings-ColumnNumber="2">
<Columns>
<other rows here>
<telerik:GridTemplateColumn HeaderText="Role Code" DataField="RoleCode" SortExpression="RoleCode" EditFormColumnIndex="1">
<ItemTemplate>
<asp:Label ID="lbl2" runat="server" Text='<%# Eval("RoleCode") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="ddlRoleCode" runat="server">
<asp:ListItem>RTR</asp:ListItem>
<asp:ListItem>INT</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
</Columns