Click here to Skip to main content
16,008,490 members
Home / Discussions / C#
   

C#

 
AnswerRe: XML or database...? Pin
darkelv10-Dec-07 21:05
darkelv10-Dec-07 21:05 
GeneralRe: XML or database...? Pin
Colin Angus Mackay10-Dec-07 22:20
Colin Angus Mackay10-Dec-07 22:20 
GeneralRe: XML or database...? Pin
darkelv11-Dec-07 0:30
darkelv11-Dec-07 0:30 
GeneralRe: XML or database...? Pin
Colin Angus Mackay11-Dec-07 1:50
Colin Angus Mackay11-Dec-07 1:50 
AnswerRe: XML or database...? Pin
Colin Angus Mackay10-Dec-07 22:28
Colin Angus Mackay10-Dec-07 22:28 
GeneralRe: XML or database...? Pin
anandakumarm10-Dec-07 23:02
anandakumarm10-Dec-07 23:02 
GeneralRe: XML or database...? Pin
Colin Angus Mackay10-Dec-07 23:32
Colin Angus Mackay10-Dec-07 23:32 
QuestionUnlock windws user Pin
pprabhu10-Dec-07 19:19
pprabhu10-Dec-07 19:19 
hi,

I have written a pllication using C# and asp.net which set the windows user password using WinNT protocol. It is working fine.

But before setting its password i want to check whether the account is locked or not if account is locked then unlock it.

Plz. give me help how to unlock windows user(2003 server) account using System.DirectoryServices; My code is as below



string entryString = "WinNT://" + Environment.MachineName + ",computer";

DirectoryEntry dirEntry = new DirectoryEntry(entryString);

DirectoryEntry osUser = dirEntry.Children.Find(username, "user");
if (osUser == null)
{
_ErrorMsg = "Such OS user not found.";
}
else
{
if (changepassword)
osUser.Invoke("SetPassword", newpassword);
}
osUser.CommitChanges();
QuestionHow to Override internal abstract method? Pin
Mukesh Choudhari10-Dec-07 18:55
Mukesh Choudhari10-Dec-07 18:55 
GeneralRe: How to Override internal abstract method? Pin
N a v a n e e t h10-Dec-07 19:48
N a v a n e e t h10-Dec-07 19:48 
GeneralRe: How to Override internal abstract method? Pin
Mukesh Choudhari10-Dec-07 21:35
Mukesh Choudhari10-Dec-07 21:35 
GeneralRe: How to Override internal abstract method? Pin
N a v a n e e t h10-Dec-07 22:18
N a v a n e e t h10-Dec-07 22:18 
GeneralRe: How to Override internal abstract method? Pin
Colin Angus Mackay10-Dec-07 22:33
Colin Angus Mackay10-Dec-07 22:33 
GeneralRe: How to Override internal abstract method? Pin
N a v a n e e t h10-Dec-07 22:58
N a v a n e e t h10-Dec-07 22:58 
GeneralRe: How to Override internal abstract method? Pin
Colin Angus Mackay10-Dec-07 22:30
Colin Angus Mackay10-Dec-07 22:30 
GeneralRe: How to Override internal abstract method? Pin
m@u10-Dec-07 22:58
m@u10-Dec-07 22:58 
GeneralRe: How to Override internal abstract method? Pin
N a v a n e e t h10-Dec-07 23:01
N a v a n e e t h10-Dec-07 23:01 
GeneralRe: How to Override internal abstract method? Pin
m@u10-Dec-07 23:11
m@u10-Dec-07 23:11 
GeneralRe: How to Override internal abstract method? Pin
N a v a n e e t h10-Dec-07 23:17
N a v a n e e t h10-Dec-07 23:17 
GeneralRe: How to Override internal abstract method? Pin
m@u10-Dec-07 23:23
m@u10-Dec-07 23:23 
GeneralBeginner in C# Pin
tasumisra10-Dec-07 18:25
tasumisra10-Dec-07 18:25 
GeneralRe: Beginner in C# Pin
Michael Sync10-Dec-07 18:54
Michael Sync10-Dec-07 18:54 
GeneralRe: Beginner in C# Pin
Abhijit Jana10-Dec-07 19:08
professionalAbhijit Jana10-Dec-07 19:08 
GeneralRe: Beginner in C# Pin
tasumisra10-Dec-07 19:21
tasumisra10-Dec-07 19:21 
GeneralRe: Beginner in C# Pin
N a v a n e e t h10-Dec-07 19:45
N a v a n e e t h10-Dec-07 19:45 

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.