Click here to Skip to main content
15,894,297 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Process.Start runs in background Pin
N a v a n e e t h19-Nov-07 22:19
N a v a n e e t h19-Nov-07 22:19 
QuestionRetreiving only active users from LDAP Pin
samerh19-Nov-07 21:00
samerh19-Nov-07 21:00 
AnswerRe: Retreiving only active users from LDAP Pin
Sandeep Akhare19-Nov-07 21:06
Sandeep Akhare19-Nov-07 21:06 
GeneralRe: Retreiving only active users from LDAP Pin
samerh19-Nov-07 21:08
samerh19-Nov-07 21:08 
GeneralRe: Retreiving only active users from LDAP Pin
N a v a n e e t h19-Nov-07 21:47
N a v a n e e t h19-Nov-07 21:47 
GeneralRe: Retreiving only active users from LDAP Pin
Sandeep Akhare19-Nov-07 22:11
Sandeep Akhare19-Nov-07 22:11 
AnswerRe: Retreiving only active users from LDAP Pin
N a v a n e e t h19-Nov-07 21:49
N a v a n e e t h19-Nov-07 21:49 
GeneralRe: Retreiving only active users from LDAP Pin
samerh19-Nov-07 22:34
samerh19-Nov-07 22:34 
Actually i did and i wrote some thing but is generating an error
what i wrote is
<br />
 Public Sub GetAllUsers()<br />
        Dim sServerName As String = "mail"<br />
        Dim oRoot As DirectoryEntry = New DirectoryEntry("LDAP://xxx.com")<br />
        Dim oSearcher As DirectorySearcher = New DirectorySearcher(oRoot)<br />
        Dim oResults As SearchResultCollection<br />
        oSearcher.PropertiesToLoad.Add("mail")<br />
        oSearcher.PropertiesToLoad.Add("givenname")<br />
        oSearcher.PropertiesToLoad.Add("cn")<br />
        oResults = oSearcher.FindAll<br />
        For i As Integer = 0 To oResults.Count - 1<br />
            If Not oResults(i).GetDirectoryEntry().Properties("mail").Value Is Nothing Then<br />
                Response.Write(oResults(i).GetDirectoryEntry().Properties("cn").Value & "<br>")<br />
            End If<br />
        Next<br />
    End Sub<br />

this function runs normaly for few users and i can get the values then it crashes. the error generated is "The specifies directory service attribute or value does not exist". it stops on the if statement beneath for loop.

Why is this error generating?
How can i filter so that only active users appears?
thanks
GeneralRe: Retreiving only active users from LDAP Pin
Michael Sync19-Nov-07 22:59
Michael Sync19-Nov-07 22:59 
AnswerRe: Retreiving only active users from LDAP Pin
Michael Sync19-Nov-07 22:57
Michael Sync19-Nov-07 22:57 
QuestionProblem In Java Script With Master Page Pin
Ajeet mittal19-Nov-07 21:00
Ajeet mittal19-Nov-07 21:00 
AnswerRe: Problem In Java Script With Master Page Pin
Sandeep Akhare19-Nov-07 21:03
Sandeep Akhare19-Nov-07 21:03 
GeneralRe: Problem In Java Script With Master Page Pin
N a v a n e e t h19-Nov-07 21:52
N a v a n e e t h19-Nov-07 21:52 
GeneralRe: Problem In Java Script With Master Page Pin
Sandeep Akhare19-Nov-07 22:24
Sandeep Akhare19-Nov-07 22:24 
GeneralRe: Problem In Java Script With Master Page Pin
N a v a n e e t h19-Nov-07 22:46
N a v a n e e t h19-Nov-07 22:46 
AnswerRe: Problem In Java Script With Master Page Pin
Sangamesh Naidu19-Nov-07 21:28
Sangamesh Naidu19-Nov-07 21:28 
GeneralRe: Problem In Java Script With Master Page Pin
Ajeet mittal19-Nov-07 22:05
Ajeet mittal19-Nov-07 22:05 
QuestionTo add check box to each day of calendar control at design time Pin
SunithaNallana19-Nov-07 20:48
SunithaNallana19-Nov-07 20:48 
AnswerRe: To add check box to each day of calendar control at design time Pin
John-ph19-Nov-07 21:12
John-ph19-Nov-07 21:12 
GeneralRe: To add check box to each day of calendar control at design time Pin
SunithaNallana19-Nov-07 21:32
SunithaNallana19-Nov-07 21:32 
GeneralRe: To add check box to each day of calendar control at design time Pin
John-ph19-Nov-07 21:43
John-ph19-Nov-07 21:43 
GeneralRe: To add check box to each day of calendar control at design time Pin
SunithaNallana19-Nov-07 22:40
SunithaNallana19-Nov-07 22:40 
GeneralRe: To add check box to each day of calendar control at design time Pin
John-ph19-Nov-07 23:34
John-ph19-Nov-07 23:34 
AnswerRe: To add check box to each day of calendar control at design time Pin
Sun Rays19-Nov-07 21:41
Sun Rays19-Nov-07 21:41 
QuestionConnection state with DataAdapter.Fill() Pin
ranandbe19-Nov-07 20:37
ranandbe19-Nov-07 20:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.