Solved

Window Authentication

Posted on 2010-11-29
5
405 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmakerā€¦
The viewer will learn how to count occurrences of each item in an array.

777 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