Sharepoint-Get The Current User Name

By Goniey N (Mr. G)

Using This Code You Can Get The Current User Name...

protected override void RenderContents(HtmlTextWriter myHtmlTextWriter)
{
        myHtmlTextWriter.Write("Most Welcome : {0}.", SPContext.Current.Web.CurrentUser.Name);
}

Sharepoint-Get The Current User Name  (1589 Views)