How to retrieve user name in case of Window Authentication?
Answer / Shyam Sunder Trivedi
"In .NET, you can retrieve the username for Windows Authentication using the built-in WindowsIdentity class. Here's an example: string username = WindowsIdentity.GetCurrent().Name; This code retrieves the current user's username."n
| Is This Answer Correct ? | 0 Yes | 0 No |
Is it possible to write code in many languages in one asp.net project?
What is the typical session identifier?
Various types of Page Load functions
In order to get assembly info which namespace we should import?
Why select Web API?
if you disable view state of a textbox will it maintain data during postbacks.if yes reason
9 Answers FactorH, Jindal, Oxi Infotech,
What is the difference between GridView and Repeater controls in ASP.NET?
To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?
What are html helpers in asp.net?
What is the concepts of globalization and localization in .net?
How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?
Explain why it is useful to use mvc instead of webforms? : asp.net mvc
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)