Click here to Skip to main content
15,887,477 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: asp.net files Pin
Abhishek Sur11-Nov-09 4:56
professionalAbhishek Sur11-Nov-09 4:56 
GeneralRe: asp.net files Pin
tamir90111-Nov-09 19:53
tamir90111-Nov-09 19:53 
GeneralRe: asp.net files Pin
Abhishek Sur11-Nov-09 21:33
professionalAbhishek Sur11-Nov-09 21:33 
AnswerRe: asp.net files Pin
Abhijit Jana11-Nov-09 4:57
professionalAbhijit Jana11-Nov-09 4:57 
Questioncan we send the data of gridview through mail Pin
chandra23411-Nov-09 2:50
chandra23411-Nov-09 2:50 
AnswerRe: can we send the data of gridview through mail Pin
Abhijit Jana11-Nov-09 5:11
professionalAbhijit Jana11-Nov-09 5:11 
AnswerRe: can we send the data of gridview through mail Pin
Aman Bhullar11-Nov-09 18:46
Aman Bhullar11-Nov-09 18:46 
QuestionActive Directory Search is computer in group - help please Pin
sismeya11-Nov-09 2:38
sismeya11-Nov-09 2:38 
Hi,

I am trying to write an addition to a webpage which is called via an ad group, once the user submits the form it removes the pc from the group, but I am having problems getting the script to work out if the "pc" is in the group - I receive an error "Object Refrence Not Set To AN Instance Of An Object." at the line which starts

Dim bInIsMember As Boolean = Convert ......


can You Help ?

Cheers

Andy

Here is the code

Sub Remove_PC_from_AD_Group(ByVal Asset)

        Dim vSBCAD As New DirectoryServices.DirectoryEntry("LDAP://Domain/DC=Domain,DC=COM", vADUserName, vADPassword, AuthenticationTypes.Secure)
        Dim mySearcher As New DirectorySearcher(vSBCAD)

        mySearcher = New DirectorySearcher(vSBCAD)
        mySearcher.SearchScope = SearchScope.Subtree
        mySearcher.Filter = ("cn=GP_Refresh_Web_Popup")

        Dim result As DirectoryServices.SearchResult = mySearcher.FindOne
        Dim vGrpObj = result.GetDirectoryEntry
        Dim myComputerSearcher As New DirectorySearcher(vSBCAD)

        myComputerSearcher = New DirectorySearcher(vSBCAD)
        myComputerSearcher.SearchScope = SearchScope.Subtree
        myComputerSearcher.Filter = ("(computername=" & Asset & ")")

        Dim vcomputerobj As DirectoryServices.SearchResult = myComputerSearcher.FindOne

        Dim blnIsMember As Boolean = Convert.ToBoolean(vGrpObj.Invoke("IsMember", New Object() {vcomputerobj.Path}))

        If blnIsMember Then

            MsgBox("Object In Group")

        Else


            MsgBox("Object Not In Group")




        End If

QuestionHow we can do for fast execution the page Pin
lrsalunkhe11-Nov-09 2:18
lrsalunkhe11-Nov-09 2:18 
AnswerRe: How we can do for fast execution the page Pin
Kannan Ar11-Nov-09 2:30
professionalKannan Ar11-Nov-09 2:30 
AnswerRe: How we can do for fast execution the page Pin
Abhijit Jana11-Nov-09 5:01
professionalAbhijit Jana11-Nov-09 5:01 
Questionwhere can i get cool css for my Gridview ????? Pin
koolprasad200311-Nov-09 2:03
professionalkoolprasad200311-Nov-09 2:03 
AnswerRe: where can i get cool css for my Gridview ????? Pin
Abhijit Jana11-Nov-09 5:08
professionalAbhijit Jana11-Nov-09 5:08 
Questioncrystal report Pin
vikas shukla11-Nov-09 1:09
vikas shukla11-Nov-09 1:09 
AnswerRe: crystal report Pin
Abhishek Sur11-Nov-09 1:33
professionalAbhishek Sur11-Nov-09 1:33 
QuestionRunning ASP.NET from your flash like apache Pin
Chrispie12311-Nov-09 0:26
Chrispie12311-Nov-09 0:26 
AnswerRe: Running ASP.NET from your flash like apache Pin
Abhishek Sur11-Nov-09 0:31
professionalAbhishek Sur11-Nov-09 0:31 
AnswerRe: Running ASP.NET from your flash like apache Pin
sashidhar11-Nov-09 0:51
sashidhar11-Nov-09 0:51 
GeneralRe: Running ASP.NET from your flash like apache Pin
Chrispie12329-Nov-09 20:39
Chrispie12329-Nov-09 20:39 
GeneralRe: Running ASP.NET from your flash like apache Pin
sashidhar29-Nov-09 21:23
sashidhar29-Nov-09 21:23 
QuestionDB access password Pin
Chrispie12311-Nov-09 0:24
Chrispie12311-Nov-09 0:24 
AnswerRe: DB access password Pin
Abhishek Sur11-Nov-09 0:35
professionalAbhishek Sur11-Nov-09 0:35 
GeneralRe: DB access password Pin
Chrispie12311-Nov-09 4:33
Chrispie12311-Nov-09 4:33 
GeneralRe: DB access password Pin
Abhishek Sur11-Nov-09 6:44
professionalAbhishek Sur11-Nov-09 6:44 
GeneralRe: DB access password Pin
Chrispie12326-Nov-09 3:22
Chrispie12326-Nov-09 3:22 

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.