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

ASP.NET

 
AnswerRe: XML File Search from ASP.NET page Pin
Nishant Singh24-Nov-08 23:47
Nishant Singh24-Nov-08 23:47 
GeneralXML File Search from ASP.NET page Pin
codingrocks26-Nov-08 16:42
codingrocks26-Nov-08 16:42 
QuestionClosing child window Pin
Subulakshmi Karthic24-Nov-08 22:15
Subulakshmi Karthic24-Nov-08 22:15 
AnswerRe: Closing child window Pin
Nishant Singh24-Nov-08 22:37
Nishant Singh24-Nov-08 22:37 
QuestionRe: Closing child window Pin
Subulakshmi Karthic24-Nov-08 22:41
Subulakshmi Karthic24-Nov-08 22:41 
AnswerRe: Closing child window Pin
Nishant Singh24-Nov-08 23:28
Nishant Singh24-Nov-08 23:28 
QuestionRe: Closing child window Pin
Subulakshmi Karthic24-Nov-08 23:55
Subulakshmi Karthic24-Nov-08 23:55 
QuestionHitcounter problem...please guide.. Pin
mr_muskurahat24-Nov-08 21:39
mr_muskurahat24-Nov-08 21:39 
AnswerRe: Hitcounter problem...please guide.. Pin
Christian Graus24-Nov-08 22:40
protectorChristian Graus24-Nov-08 22:40 
GeneralRe: Hitcounter problem...please guide.. Pin
mr_muskurahat24-Nov-08 23:33
mr_muskurahat24-Nov-08 23:33 
Question[Message Deleted] Pin
shanthi jothi24-Nov-08 21:32
shanthi jothi24-Nov-08 21:32 
AnswerRe: Generate Payslip Pin
Krazy Programmer25-Nov-08 1:21
Krazy Programmer25-Nov-08 1:21 
AnswerRe: Generate Payslip Pin
Abhijit Jana25-Nov-08 1:51
professionalAbhijit Jana25-Nov-08 1:51 
Questioncreating ssis package using C#.net Pin
l.laxmikant24-Nov-08 20:57
l.laxmikant24-Nov-08 20:57 
QuestionHow to find group of single user from active directory.?? Pin
Piyush Vardhan Singh24-Nov-08 20:22
Piyush Vardhan Singh24-Nov-08 20:22 
AnswerRe: How to find group of single user from active directory.?? Pin
Christian Graus24-Nov-08 20:33
protectorChristian Graus24-Nov-08 20:33 
GeneralRe: How to find group of single user from active directory.?? Pin
Piyush Vardhan Singh24-Nov-08 21:19
Piyush Vardhan Singh24-Nov-08 21:19 
QuestionShow checkbox inside a dropdownlist Pin
SreejithAchutan24-Nov-08 19:30
SreejithAchutan24-Nov-08 19:30 
AnswerRe: Show checkbox inside a dropdownlist Pin
Christian Graus24-Nov-08 19:34
protectorChristian Graus24-Nov-08 19:34 
AnswerRe: Show checkbox inside a dropdownlist Pin
Abhijit Jana24-Nov-08 19:34
professionalAbhijit Jana24-Nov-08 19:34 
QuestionShow data in gridview vertically and update vertically also? Pin
pundir abhishek24-Nov-08 19:20
pundir abhishek24-Nov-08 19:20 
AnswerRe: Show data in gridview vertically and update vertically also? Pin
Christian Graus24-Nov-08 19:26
protectorChristian Graus24-Nov-08 19:26 
QuestionFetch all the permissions of a folder/file of IUser [modified] Pin
Pankaj Saha24-Nov-08 19:19
Pankaj Saha24-Nov-08 19:19 
I have a asp.net web application. I need to fetch all the permissions of a file/folder.

I have used the following code to access the rights of a folder

static void Main(string[] args)
{

// Get the object and its SecDescp

DirectoryInfo dir = new DirectoryInfo("C:\\Documents and Settings\\pankaj\\Desktop\\ASPDev");
DirectorySecurity sec = dir.GetAccessControl(AccessControlSections.All);

// Create an empty Security Descp...
DirectorySecurity secNew = new DirectorySecurity();

// Get the explicit perms on the object.
AuthorizationRuleCollection col = sec.GetAccessRules(true, false, typeof(SecurityIdentifier));

// List all the explicitly set permissions on the object...
foreach (FileSystemAccessRule rule in col)
{

// Add the explicit permission to the new Security Descp.
//secNew.AddAccessRule(rule);
Console.WriteLine("{0}", rule.FileSystemRights.ToString());
//Console.WriteLine("{0}", rule.AccessControlType.ToString() + " | " + rule.IdentityReference.Value + " | " + rule.InheritanceFlags.ToString() + " | " + rule.IsInherited.ToString() + " | " + rule.PropagationFlags.ToString() + " | " + rule.FileSystemRights.ToString() + "\r\n");

}

// Create a child folder with the explicit permissions only...
//DirectoryInfo info2 = new DirectoryInfo("e:\\kgk\\Test\\Child");
//info2.Create(secNew);

Console.ReadLine();
}


However I need to fetch the IUser permissions.

Would you please let me know how can I do this.

Pankaj

modified on Tuesday, November 25, 2008 1:36 AM

AnswerRe: Fetch all the permissions of a folder/file of IUser Pin
Christian Graus24-Nov-08 19:25
protectorChristian Graus24-Nov-08 19:25 
Questionhow to read the data of a comp port through asp.net page Pin
souravghosh1824-Nov-08 19:00
souravghosh1824-Nov-08 19:00 

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.