locked
viewing forum profiles from the memberlist RRS feed

  • Question

  • User1437879004 posted

    im stuck on this one. basicly i want the name of a member in Member_list.aspx to link the their profile from the forums.

    <asp:HyperLink ID="profileLink" runat="server" NavigateUrl='~/Forum_Profile.aspx?id=<%# Eval("memberid") %>'><asp:Label ID="titleLabel" runat="server" Text='<%# Cstr(Eval("FirstName")) & " " & Cstr(Eval("LastName")) %>' /></asp:HyperLink>

    not sure where to go from here 

    Thursday, January 24, 2008 6:26 PM

Answers

  • User1437879004 posted

    Nevermind i got it. To link individual members to their profiles in Member_list.aspx replace

     

    <asp:Label ID="titleLabel" runat="server" Text='<%# Cstr(Eval("FirstName")) & " " & Cstr(Eval("LastName")) %>' />

    with

    <asp:HyperLink ID="profileLink" runat="server" NavigateUrl='<%# "~/Forum_Profile.aspx?id=" & Cstr( Eval("memberid")) %>'><asp:Label ID="titleLabel" runat="server" Text='<%# Cstr(Eval("FirstName")) & " " & Cstr(Eval("LastName")) %>' /></asp:HyperLink>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 25, 2008 12:56 PM