Loginview in a Gridview template

Last post 10-20-2006 11:59 PM by mustafamond. 0 replies.

Sort Posts:

  • Loginview in a Gridview template

    10-20-2006, 11:59 PM
    • Loading...
    • mustafamond
    • Joined on 10-20-2006, 11:45 PM
    • Posts 1

    <asp:BoundField DataField="Location" HeaderText="Location" SortExpression="Location" />

    The above works fine

    <asp:TemplateField HeaderText="Location" SortExpression="v">
       <ItemTemplate>
          <asp:LoginView ID="lvLoc" runat="server">
             <AnonymousTemplate>Members Only</AnonymousTemplate>
            <LoggedInTemplate><%# Eval("Location") %></LoggedInTemplate>
          </asp:LoginView>
       </ItemTemplate>
    </asp:TemplateField>

    When logged in, Eval returns nothing (BTW: Eval works fine in the Anonymous Template, but useless to me there)

    Anyone run into this problem and have any suggestions?

    Filed under: , ,
Page 1 of 1 (1 items)
Microsoft Communities
Page view counter