Click here to Skip to main content
15,881,882 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to Access VB class from c# class which both Classes in App_code folder Pin
jkirkerx30-Nov-11 11:52
professionaljkirkerx30-Nov-11 11:52 
QuestionASP.Net login control & IIS 5.1 Pin
sk_ko29-Nov-11 20:39
sk_ko29-Nov-11 20:39 
AnswerRe: ASP.Net login control & IIS 5.1 Pin
jkirkerx30-Nov-11 12:08
professionaljkirkerx30-Nov-11 12:08 
GeneralRe: ASP.Net login control & IIS 5.1 Pin
sk_ko30-Nov-11 13:53
sk_ko30-Nov-11 13:53 
GeneralRe: ASP.Net login control & IIS 5.1 Pin
jkirkerx30-Nov-11 14:46
professionaljkirkerx30-Nov-11 14:46 
Questionregarding crystalreports Pin
kalyan10qwerty29-Nov-11 18:04
kalyan10qwerty29-Nov-11 18:04 
AnswerRe: regarding crystalreports Pin
kalyan10qwerty29-Nov-11 18:18
kalyan10qwerty29-Nov-11 18:18 
QuestionAccess to the path is denied -when trying to delete files Pin
Ramkumar_S29-Nov-11 15:55
Ramkumar_S29-Nov-11 15:55 
Hi All

string FilePath = strphysicalpath + @"Documents\TempReports";

DirectoryInfo di = new DirectoryInfo(FilePath);
di.Attributes = FileAttributes.Normal;
foreach (string fileName in System.IO.Directory.GetFiles(FilePath))
{
System.IO.FileInfo fileInfo = new System.IO.FileInfo(fileName);
fileInfo.Attributes = FileAttributes.Normal;
}

string[] filePaths = Directory.GetFiles(FilePath);
foreach (string filePath in filePaths)
{
File.Delete(filePath);
}

I use this code to delete all my files in the Folder, but I am getting "Access to the path is denied"

Please help.
Ramkumar
("When you build bridges you can keep crossing them. ")

http://ramkumarishere.blogspot.com

AnswerRe: Access to the path is denied -when trying to delete files Pin
jkirkerx29-Nov-11 18:22
professionaljkirkerx29-Nov-11 18:22 
SuggestionRe: Access to the path is denied -when trying to delete files Pin
RaviRanjanKr1-Dec-11 9:03
professionalRaviRanjanKr1-Dec-11 9:03 
QuestionCREATE DATABASE permission error Pin
sk_ko29-Nov-11 15:45
sk_ko29-Nov-11 15:45 
AnswerRe: CREATE DATABASE permission error Pin
jkirkerx29-Nov-11 18:25
professionaljkirkerx29-Nov-11 18:25 
AnswerRe: CREATE DATABASE permission error Pin
AmitGajjar30-Nov-11 1:34
professionalAmitGajjar30-Nov-11 1:34 
QuestionWhat happens to abandoned or timed out sessions? Pin
Brady Kelly29-Nov-11 7:12
Brady Kelly29-Nov-11 7:12 
AnswerRe: What happens to abandoned or timed out sessions? Pin
David Mujica29-Nov-11 7:48
David Mujica29-Nov-11 7:48 
GeneralRe: What happens to abandoned or timed out sessions? Pin
Brady Kelly29-Nov-11 8:58
Brady Kelly29-Nov-11 8:58 
GeneralClarification Pin
David Mujica30-Nov-11 8:59
David Mujica30-Nov-11 8:59 
GeneralRe: Clarification Pin
Brady Kelly30-Nov-11 16:38
Brady Kelly30-Nov-11 16:38 
AnswerRe: What happens to abandoned or timed out sessions? Pin
jkirkerx29-Nov-11 18:32
professionaljkirkerx29-Nov-11 18:32 
QuestionRE: Visual Studio NOOB question - XML - Pin
B A L L S29-Nov-11 4:42
B A L L S29-Nov-11 4:42 
AnswerRe: RE: Visual Studio NOOB question - XML - Pin
Not Active29-Nov-11 5:07
mentorNot Active29-Nov-11 5:07 
GeneralRe: RE: Visual Studio NOOB question - XML - Pin
B A L L S29-Nov-11 5:47
B A L L S29-Nov-11 5:47 
GeneralRe: RE: Visual Studio NOOB question - XML - Pin
Not Active29-Nov-11 8:46
mentorNot Active29-Nov-11 8:46 
QuestionPlease suggest tools/ codes (Jquery Nested Expression Builder ) Pin
sysmatrix29-Nov-11 1:33
sysmatrix29-Nov-11 1:33 
AnswerRe: Please suggest tools/ codes (Jquery Nested Expression Builder ) Pin
jkirkerx29-Nov-11 18:37
professionaljkirkerx29-Nov-11 18:37 

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.