Solved

Window Authentication

Posted on 2010-11-29
5
408 Views
Last Modified: 2012-05-10
I need to atuhenticat a users name through windows Authentication than attache that user name to a domain name using c#, xml, and ASP.NET. Need help please....
0
Comment
Question by:newjeep19
  • 4
5 Comments
 

Author Comment

by:newjeep19
ID: 34231403
Code I am using:

            // Display the User Name
            // Without the Domain prefix
            lblLogin.Text = "Applications Available for: " + HttpContext.Current.User.Identity.Name;
How ever when I run the debugger thru Visual Studio the user name does not appear
0
 

Author Comment

by:newjeep19
ID: 34232025
I really need a response to this quickly! Please help! Thanks
0
 
LVL 13

Accepted Solution

by:
Jesus Rodriguez earned 500 total points
ID: 34232383
Try with system.enviroment.Username

lblLogin.Text = "Applications Available for: " + system.enviroment.Username;
0
 

Author Closing Comment

by:newjeep19
ID: 34232776
I had an issue with IIS
0
 

Author Comment

by:newjeep19
ID: 34232875
No I want the end date to be no greater than 180 day's (6 months ) from the start date. So, If the endate is 7 month's past the start date then the alert will state: you selected a date that is more than six months form the start date and then clears the end date textbox and the user has to select another date (via popcalender) that is not greater than the start date.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
This video teaches users how to migrate an existing Wordpress website to a new domain.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question