Trying to call a function in an itemtemplate RRS feed

  • Question

  • I have a gridview with a template field where I try and convert an email into a username, where the username is from the "membership and roles" feature of asp.net.

    So I try this (unsuccessfully).  If any spots an error, please let me know:

    <asp:TemplateField HeaderText="username" >
                        <asp:Label ID="Label1" runat="server" 
    Text='<%# System.Web.Security.Membership.GetUserNameByEmail("email")%>'>


    Tuesday, November 25, 2014 1:29 PM