Click here to Skip to main content
15,908,254 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to send mail with out spam Pin
eyeseetee14-Jul-08 23:57
eyeseetee14-Jul-08 23:57 
GeneralRe: how to send mail with out spam Pin
sugunavathysubramanian15-Jul-08 0:47
sugunavathysubramanian15-Jul-08 0:47 
QuestionHow to implement hash table functionality in c# Pin
sri_009914-Jul-08 20:34
sri_009914-Jul-08 20:34 
AnswerRe: How to implement hash table functionality in c# Pin
Piyush Vardhan Singh14-Jul-08 20:57
Piyush Vardhan Singh14-Jul-08 20:57 
GeneralRe: How to implement hash table functionality in c# Pin
sri_009914-Jul-08 21:26
sri_009914-Jul-08 21:26 
GeneralRe: How to implement hash table functionality in c# Pin
Guffa14-Jul-08 21:55
Guffa14-Jul-08 21:55 
AnswerRe: How to implement hash table functionality in c# Pin
Guffa14-Jul-08 21:52
Guffa14-Jul-08 21:52 
Questionuser from (Domain Users) group in Active directory Pin
Piyush Vardhan Singh14-Jul-08 20:31
Piyush Vardhan Singh14-Jul-08 20:31 
hello friends

i am writing this code but i am not getting user from (Domain Users) group in Active directory. Please help me.


CODE:-


Try
Dim groupName As String = "Users"
If Not (_DirectoryRoot Is Nothing) Then
Exit Sub
End If

authenticationType = New System.DirectoryServices.AuthenticationTypes


authenticationType = AuthenticationTypes.Secure

_DirectoryRoot = New DirectoryEntry("LDAP://dev.eventure.biz", "dev\adadmin", "password_1234", authenticationType)
Dim directorySearcher As DirectorySearcher = New DirectorySearcher(_DirectoryRoot)
directorySearcher.SearchScope = SearchScope.Subtree
directorySearcher.Filter = "(&(objectCategory=Group)(CN=" & groupName & "*))" 'String.Format("(cn={0})", groupName) ' "(cn=" & searchQuery & "*))"
directorySearcher.PropertiesToLoad.Add("member") '"((CN=" & groupName & "*))"
Dim searchResults As SearchResult = directorySearcher.FindOne
If Not (searchResults) Is Nothing Then
Dim Length As Integer = searchResults.GetDirectoryEntry.Properties("member").Count - 1
For i As Integer = 0 To Length
Dim UserName As Object = Split(Split(searchResults.GetDirectoryEntry.Properties("member").Item(i), ",")(0), "=")(1)
' sipUriCollection.Add(GetUserSipUri(UserName))
Next
End If
Catch ex As Exception

End Try

Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com



QuestionHow to create our own appointment template in aspxschedular Pin
sri_009914-Jul-08 20:31
sri_009914-Jul-08 20:31 
QuestionThumnail Viewver Pin
sjs4u14-Jul-08 20:20
sjs4u14-Jul-08 20:20 
AnswerRe: Thumnail Viewver Pin
_AK_14-Jul-08 20:26
_AK_14-Jul-08 20:26 
GeneralRe: Thumnail Viewver [modified] Pin
sjs4u14-Jul-08 20:30
sjs4u14-Jul-08 20:30 
GeneralRe: Thumnail Viewver Pin
eyeseetee14-Jul-08 21:26
eyeseetee14-Jul-08 21:26 
GeneralRe: Thumnail Viewver Pin
sjs4u14-Jul-08 21:46
sjs4u14-Jul-08 21:46 
GeneralRe: Thumnail Viewver Pin
_AK_15-Jul-08 0:40
_AK_15-Jul-08 0:40 
AnswerRe: Thumnail Viewver [modified] Pin
raushan_914-Jul-08 21:40
raushan_914-Jul-08 21:40 
GeneralRe: Thumnail Viewver Pin
sjs4u14-Jul-08 21:53
sjs4u14-Jul-08 21:53 
GeneralRe: Thumnail Viewver Pin
raushan_914-Jul-08 22:02
raushan_914-Jul-08 22:02 
QuestionHow to get the current time of UK from US time using c# [modified] Pin
G Nathan14-Jul-08 20:02
G Nathan14-Jul-08 20:02 
AnswerRe: How to get the current time of UK from US time using c# Pin
eyeseetee14-Jul-08 21:31
eyeseetee14-Jul-08 21:31 
Questionhow to remove System.InvalidCastException error? Pin
sathyan_829414-Jul-08 20:01
sathyan_829414-Jul-08 20:01 
AnswerRe: how to remove System.InvalidCastException error? Pin
firozu15-Jul-08 1:31
firozu15-Jul-08 1:31 
Questionhow to remove this error? Pin
sathyan_829414-Jul-08 19:37
sathyan_829414-Jul-08 19:37 
AnswerRe: how to remove this error? Pin
Herman<T>.Instance14-Jul-08 19:44
Herman<T>.Instance14-Jul-08 19:44 
QuestionConvert a control to its subClass in runtime Pin
WangHu2514-Jul-08 19:34
WangHu2514-Jul-08 19:34 

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.