I want to pass the variable Date to my function HasBtnRights(). Any suggestions on how to do that?
<asp:TemplateField HeaderText="More info" Visible='<%#HasBtnRights(Eval("Date")) %>'>
<ItemTemplate>
<asp:Button runat="server" OnClientClick='openModalPopup(<%# Eval("Agreement")%>);' Text="Open"/>
</ItemTemplate>
</asp:TemplateField>