Last post Dec 07, 2005 01:38 PM by skeltoncp
Nov 01, 2005 02:22 AM|shinuy888|LINK
Nov 03, 2005 01:43 PM|Xanderno|LINK
Dec 07, 2005 01:38 PM|skeltoncp|LINK
It'd be easy enough to add a label to the header (say, the upper right hand corner next to the logout link) that displays the HttpContext.Current.User.Identity.Name.
I tried to do exactly that. My actual line of code is:
IDLabel.Text = Context.User.Identity.Name.ToString();
I put it in the page_load method in header.ascx and it always gives the error: Object reference not set to an instance of an object.
Any idea what I've done wrong?