CredentialCache.DefaultCredentials
Page.User.Identity.Name
WindowsImpersonationContext impersonationContext; using (impersonationContext = ((WindowsIdentity)Page.User.Identity).Impersonate()) { conn = ServiceConnection.CreateWithWindowsAuthentication(new Uri("http://myWebsite"), CredentialCache.DefaultCredentials); } impersonationContext.Undo();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)