Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. active directory

active directory

Scheduled Pinned Locked Moved ASP.NET
csharpdatabasewindows-adminhelptutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bhavna4321
    wrote on last edited by
    #1

    i want to query active directory the way we do in ado.net.I want to query it save it in dataset .. can anyone help me to write connection string to this and how to do it . thanks

    S 1 Reply Last reply
    0
    • B bhavna4321

      i want to query active directory the way we do in ado.net.I want to query it save it in dataset .. can anyone help me to write connection string to this and how to do it . thanks

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Hi, have a look here: http://social.microsoft.com/Forums/en-US/netfxbcl/thread/729d1214-37f5-4330-9208-bc4d9d695ad0[^] Regards Sebastian

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      B 1 Reply Last reply
      0
      • S SeMartens

        Hi, have a look here: http://social.microsoft.com/Forums/en-US/netfxbcl/thread/729d1214-37f5-4330-9208-bc4d9d695ad0[^] Regards Sebastian

        It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

        B Offline
        B Offline
        bhavna4321
        wrote on last edited by
        #3

        since our database is too big i want to query it like select top 10 fro m like wise i want the queries on active directory.

        S 1 Reply Last reply
        0
        • B bhavna4321

          since our database is too big i want to query it like select top 10 fro m like wise i want the queries on active directory.

          S Offline
          S Offline
          SeMartens
          wrote on last edited by
          #4

          Well the sample is using a DirectorySearcher-class (named mySearcher in the sample). This class offers properties like PageSize and SizeLimit. With this you can limit the size of results returned by the query. All you have to do is read a bit of the API: http://msdn.microsoft.com/en-us/library/system.directoryservices.directorysearcher.aspx[^]

          It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups