Re: Can asp.net find Windows login name?
From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 11/18/05
- Next message: Roberson Ribeiro: "secure upload"
- Previous message: Patrick.O.Ige: "Re: Can asp.net find Windows login name?"
- In reply to: Patrick.O.Ige: "Re: Can asp.net find Windows login name?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 18 Nov 2005 02:50:05 -0800
Hello Patrick.O.Ige,
don't rely on server variables
use Context.User.
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> That would solve your problem as Karsten adviced
> Or even use ServerVariable LOGON_USER
> But you need to have have Integrated Windows Auth checked in IIS to
> get the
> user logged on
> Patrick
> "Karsten Samaschke [MVP]" <msnews@ksamaschke.de> wrote in message
> news:dlk4dg.l0.1@news.ksamaschke.de...
>
>> Hi,
>>
>>> When a page first opens, can I use code similar to my current VB6
>>> code:
>>>
>> Why don't you use
>>
>> User.Identity.Name
>>
>> from your page?
>>
>> --
>> Karsten Samaschke
>> IT-Consulting, IT-Development, IT-Training
>> 5x MS MVP ASP / ASP.NET, Germany
>> Homepage: http://www.ksamaschke.de
>> Weblog: http://www.karsan.de
>> - - - - - - - - - - - - - - - - - - - - - - - - - -
>> My Weblog: http://www.karsan.de
>> My Books: http://books.ksamaschke.de
- Next message: Roberson Ribeiro: "secure upload"
- Previous message: Patrick.O.Ige: "Re: Can asp.net find Windows login name?"
- In reply to: Patrick.O.Ige: "Re: Can asp.net find Windows login name?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]