Search

You searched for the word(s): userid:664154

Matching Posts

  • using UpdateParameters with LinqDataSource

    I am having problems figuring out how to use UpdateParameters with LinqDataSource. Basically I want to insert a bunch of values from a DetailsView into a database. There will be no 'name' category and I simply want to input the user's name without allowing them to change it. In the past, I would simply use a SqlDataSource UpdateParameter like this: < asp:SessionParameter SessionField= "name" Name= "name" DefaultValue= "error" Type= "String"
  • Re: Finding/Editing a Phone Number in AD through .Net

    You are being extremely helpful in getting me where I want to go, thank you! Now I have the query working with this (I hard-coded the sn for now): 1 DirectoryEntry entryRoot = new DirectoryEntry( "LDAP: //RootDSE"); 2 string domain = entryRoot.Properties[" defaultNamingContext "][0].ToString(); 3 DirectoryEntry entryDomain = new DirectoryEntry(" LDAP: //" + domain); 4 string [] propertiesToLoad = { "cn" , "telephoneNumber" , "accountExpires"
    Posted to Active Directory and LDAP (Forum) by stupid on 4/2/2008
  • Re: Finding/Editing a Phone Number in AD through .Net

    Thank you for the reply! I see what I am doing wrong, but now I am having problems accessing LDAP. Could you possibly give me an example? I went off of a few examples I have been finding on blogs and such, but it is seeming to error out. 1 string strLdapString = "LDAP: //OU=XYZ,OU=PARTY BDE,OU=Users,OU=ABCD,DC=ex3,DC=ex2,DC=ex1,DM=com 2 DirectoryEntry de = new DirectoryEntry(strLdapString); 3 DirectorySearcher ds = new DirectorySearcher(de); 4 ds.Filter = " (cn=Naspinski\\,Stan W)";
    Posted to Active Directory and LDAP (Forum) by stupid on 4/2/2008
  • Re: Finding/Editing a Phone Number in AD through .Net

    the code I am using to get this is here: 1 System.Security.Principal.WindowsIdentity wi = System.Security.Principal.WindowsIdentity.GetCurrent(); 2 string [] a = Context.User.Identity.Name.Split( '\\' ); 3 DirectoryEntry ADEntry = new DirectoryEntry( "WinNT: //" + a[0] + "/" + a[1]); 4 5 foreach (string Key in ADEntry.Properties.PropertyNames) 6 { 7 string sPropertyValues = String.Empty; 8 foreach (object Value in ADEntry.Properties[Key]) 9 sPropertyValues += Convert.ToString
    Posted to Active Directory and LDAP (Forum) by stupid on 3/26/2008
  • Re: tabbed interface - back button and bookmarks

    As far as I know, the back button is never going to work. Because according to the browser, you never went anywhere when you are using AJAX. Without changing the behavior of the browser, you aren't going to get the browser based back button to work (no even sure if you could do that) - now an in-app back button is very doable. As for bookmarks, you would do best to use a querystring variable that changes with each ajax call. Though it would not show up in url of the browser without a page refresh
    Posted to ASP.NET AJAX Control Toolkit (Forum) by stupid on 3/26/2008
  • Finding/Editing a Phone Number in AD through .Net

    What I am trying to do is to allow a user to edit their own phone number through a simple, dummy-proof web interface, just a textbox and a submit button. I can seem to pull up the LDAP object (DirectoryEntry) just fine using the code from this post: http://forums.asp.net/t/1222482.aspx Problem is I only get the following properties when I output: UserFlags=262689 MaxStorage=-1 PasswordAge=8053937 PasswordExpired=0 LoginHours=System.Byte[] FullName=Doe, John Guy Some Company (party) Description=Doe
    Posted to Active Directory and LDAP (Forum) by stupid on 3/26/2008
  • Re: Cant make a ActiveDirectorySearch object?

    Added that and still nothing?
    Posted to Active Directory and LDAP (Forum) by stupid on 3/22/2008
  • Re: Where do I get System.DirectoryServices?

    Figured it out, I had to do a search for the .dll and put it in my Bin file. Still not sure why it wasn't in my GAC... any ideas?
    Posted to Active Directory and LDAP (Forum) by stupid on 3/18/2008
  • Cant make a ActiveDirectorySearch object?

    I am trying to set an ActiveDirectorySearch object and I cannot seem to find out where I can access this? I am using the following namespaces: using System.DirectoryServices; using System.DirectoryServices.ActiveDirectory; but it is still not seeming to work. Any ideas how I can get this to work? Thank you.
    Posted to Active Directory and LDAP (Forum) by stupid on 3/18/2008
Page 1 of 13 (130 items) 1 2 3 4 5 Next > ... Last »