It Will Show You That How You Can Get The Current User In The SharePoint site.
protected override void RenderContents(HtmlTextWriter myHtmlTextWriter) { myHtmlTextWriter.Write("Most Welcome : {0}.", SPContext.Current.Web.CurrentUser.Name); }