kindly use this code , it works with me Session["user_name"] = System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();
On Wed, May 13, 2009 at 9:43 PM, Amar <[email protected]> wrote: > > My IIS is on domain. I try to use Windows authentication for ASP.net > web site. I try to get client name (DOMAIN/user). My IIS have > anonymous access turned off and Integrated Windows authentication > turned on. > > In ASP.NET application in web config. > > <authentication mode="Windows"/> > <identity impersonate="true" /> > <authorization> > <deny users="?"/> > > </authorization> > > and i have Dim name As String = Page.User.Identity.Name > > but every time when domain user go to this web page get message box > with authorization code. > -- Abdullah Almoghalis MIS- Dept. Y - Telecom s.a 50th Str. - Sanaa - Yemen P.O.Box: 16210 Email: [email protected] Tel: +967 1 429 333 Fax: +967 1 429 335 Mobile: +967 700990810
