How can I can the below HeadLoginName as specified below from the master page? (to save it a variable) Thanks
<asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
<AnonymousTemplate>
<a href="~/login.aspx" ID="HeadLoginStatus" runat="server">Log In</a>
</AnonymousTemplate>
<LoggedInTemplate>
Welcome <span class="bold"><asp:LoginName ID="HeadLoginName" runat="server" /></span>!
[ <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/logout.aspx"/> ]
</LoggedInTemplate>
</asp:LoginView>
Ended up getting username by using: System.Web.HttpContext.Current.User.Identity.Name
much simpler. Thanks