Click here to Skip to main content
15,901,505 members

Comments by Anil Honey 206 (Top 200 by date)

Anil Honey 206 9-Jan-14 2:48am View    
Where do we need means Here Take Check box of AjaxControls and Try to Implement Multiple Selection with out postback
Anil Honey 206 9-Jan-14 2:34am View    
With Jquery It will Come But my Requirement is WithOut Jquery,Javascript and with out Post back that ajax Control should select Mutiple Checkboxes
Anil Honey 206 14-Aug-13 6:24am View    
can we compare the passwords means if samAccountName and password which i enter Should match like this is possible.
Anil Honey 206 14-Aug-13 6:14am View    
But iam unable to get the Passwords from Active Directory

this is the code i used for getting usernames

using (var context = new PrincipalContext(ContextType.Domain, "empover.com"))
{
using (var searcher = new PrincipalSearcher(new UserPrincipal(context)))
{
foreach (var result in searcher.FindAll())
{
DirectoryEntry de = result.GetUnderlyingObject() as DirectoryEntry;

DropDownList1.Items.Add("" + de.Properties["samAccountName"].Value);

//DropDownList1.Items.Add("" + de.Properties[" base.Password"].Value);
//Console.WriteLine("First Name: " + de.Properties["givenName"].Value);
//Console.WriteLine("Last Name : " + de.Properties["sn"].Value);
//Console.WriteLine("SAM account name : " + de.Properties["samAccountName"].Value);
//Console.WriteLine("User principal name: " + de.Properties["userPrincipalName"].Value);
//Console.WriteLine();
}
}
}
Anil Honey 206 7-Aug-13 5:39am View    
<system.web>
<identity impersonate="true" username="accountname" password="password">


i can use this to give Permission to windows service using web application