"Have you ever done any .net programming? Yes? Well, here is a massive broken program, fix it." This is the situation I am in, so sorry if this is a simple question.
The program I'm working on pulls a file from a web server. It is expected that the user is already registered on the web server. I need to display the username of the current user registered on the server (or just make sure that someone is really registered on the server).
I tried the following and returns an empty string.
user = HttpContext.Current.User.Identity.Name;
babno source share