Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • anthony hall 217 posts 530 karma points
    Jan 28, 2010 @ 12:00
    anthony hall
    0

    Using Member.GetCurrentMember() on extension less url

    I have the following method in a user control. 

    if i go to "/dataroom" it doesn't works however if i add the ".aspx" extension it works.  Any thoughts on how to get this working on extensionless url's. 

            public static string GetUserName()
            {
                if (Member.GetCurrentMember() != null)
                {
                    return Member.GetCurrentMember().LoginName;
                }
                return "";
            }
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies