Click here to Skip to main content
15,886,199 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSome of Gridview horizontal line missing Pin
Andraw11126-Apr-10 10:21
Andraw11126-Apr-10 10:21 
AnswerRe: Some of Gridview horizontal line missing Pin
Andraw11126-Apr-10 10:24
Andraw11126-Apr-10 10:24 
GeneralRe: Some of Gridview horizontal line missing Pin
Not Active26-Apr-10 10:45
mentorNot Active26-Apr-10 10:45 
GeneralRe: Some of Gridview horizontal line missing Pin
daveyerwin26-Apr-10 11:57
daveyerwin26-Apr-10 11:57 
AnswerRe: Some of Gridview horizontal line missing Pin
T M Gray26-Apr-10 11:24
T M Gray26-Apr-10 11:24 
GeneralRe: Some of Gridview horizontal line missing Pin
daveyerwin26-Apr-10 11:43
daveyerwin26-Apr-10 11:43 
AnswerRe: Some of Gridview horizontal line missing Pin
daveyerwin26-Apr-10 11:26
daveyerwin26-Apr-10 11:26 
QuestionDelete group from Active Directory in C# Pin
blskv26-Apr-10 5:37
blskv26-Apr-10 5:37 
I have to delete a group from Active Directory. I have create and list users working correctly and have tried many different instances of deleting group, but none have worked. Here is my current c# code, where "path" is a string read from settings.xml successfully:

public StatusObject DeleteADGroup(string user_id, string groupName, string password, string domain){

StatusObject status = new StatusObject(ClassName);
sting domainAndUserName = domain + @"\" + user_id;

if(DoesGroupExist(groupName)){
try{
DirectoryEntry entry = new DirectoryEntry("LDAP://" + path, domainAndUserName, password);
DirectoryEntry group = entry.Children.Find("CN=" + groupName, "group");
entry.Children.Remove(group);
group.CommitChanges();
status.Successful = true;

catch(Exception ex) {
// log error handling
}
else{
status.Successful = false;
//false handling
}
return status;
}

Any suggestions or help would be greatly appreciated! I've been working on this for quite some time & cannot find the correct delete code to work. I was hoping another pair of eyes(or 20) could see what I am missing. Thank you!

Bonnie
AnswerRe: Delete group from Active Directory in C# Pin
Michel Godfroid26-Apr-10 5:53
Michel Godfroid26-Apr-10 5:53 
GeneralRe: Delete group from Active Directory in C# Pin
blskv26-Apr-10 5:59
blskv26-Apr-10 5:59 
QuestionHow to set default access modifier for subs in Visual Studio Pin
Hypermommy26-Apr-10 4:23
Hypermommy26-Apr-10 4:23 
QuestionAJAX Pin
Civic0626-Apr-10 4:13
Civic0626-Apr-10 4:13 
AnswerRe: AJAX Pin
Not Active26-Apr-10 4:35
mentorNot Active26-Apr-10 4:35 
AnswerRe: AJAX Pin
Sandesh M Patil26-Apr-10 5:11
Sandesh M Patil26-Apr-10 5:11 
GeneralRe: AJAX Pin
Michel Godfroid26-Apr-10 5:26
Michel Godfroid26-Apr-10 5:26 
GeneralRe: AJAX Pin
Sandesh M Patil26-Apr-10 5:42
Sandesh M Patil26-Apr-10 5:42 
GeneralRe: AJAX Pin
daveyerwin26-Apr-10 5:42
daveyerwin26-Apr-10 5:42 
AnswerRe: AJAX Pin
daveyerwin26-Apr-10 5:57
daveyerwin26-Apr-10 5:57 
AnswerRe: AJAX Pin
Brij26-Apr-10 6:00
mentorBrij26-Apr-10 6:00 
GeneralRe: AJAX Pin
daveyerwin26-Apr-10 6:14
daveyerwin26-Apr-10 6:14 
GeneralRe: AJAX Pin
Brij26-Apr-10 10:50
mentorBrij26-Apr-10 10:50 
GeneralRe: AJAX Pin
daveyerwin26-Apr-10 11:04
daveyerwin26-Apr-10 11:04 
AnswerRe: AJAX Pin
Abhijit Jana26-Apr-10 20:37
professionalAbhijit Jana26-Apr-10 20:37 
AnswerRe: AJAX Pin
Abhijit Jana26-Apr-10 20:41
professionalAbhijit Jana26-Apr-10 20:41 
Questionzoom the image size and display in the center of the page Pin
developerit26-Apr-10 3:31
developerit26-Apr-10 3:31 

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.