Click here to Skip to main content
15,505,916 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 12:52
professionaljkirkerx30-Nov-11 12:52 
QuestionASP.Net login control & IIS 5.1 Pin
sk_ko29-Nov-11 21:39
sk_ko29-Nov-11 21:39 
AnswerRe: ASP.Net login control & IIS 5.1 Pin
jkirkerx30-Nov-11 13:08
professionaljkirkerx30-Nov-11 13:08 
GeneralRe: ASP.Net login control & IIS 5.1 Pin
sk_ko30-Nov-11 14:53
sk_ko30-Nov-11 14:53 
GeneralRe: ASP.Net login control & IIS 5.1 Pin
jkirkerx30-Nov-11 15:46
professionaljkirkerx30-Nov-11 15:46 
Questionregarding crystalreports Pin
kalyan10qwerty29-Nov-11 19:04
kalyan10qwerty29-Nov-11 19:04 
AnswerRe: regarding crystalreports Pin
kalyan10qwerty29-Nov-11 19:18
kalyan10qwerty29-Nov-11 19:18 
QuestionAccess to the path is denied -when trying to delete files Pin
Ramkumar_S29-Nov-11 16:55
Ramkumar_S29-Nov-11 16: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 19:22
professionaljkirkerx29-Nov-11 19:22 
SuggestionRe: Access to the path is denied -when trying to delete files Pin
RaviRanjanKr1-Dec-11 10:03
professionalRaviRanjanKr1-Dec-11 10:03 
QuestionCREATE DATABASE permission error Pin
sk_ko29-Nov-11 16:45
sk_ko29-Nov-11 16:45 
AnswerRe: CREATE DATABASE permission error Pin
jkirkerx29-Nov-11 19:25
professionaljkirkerx29-Nov-11 19:25 
AnswerRe: CREATE DATABASE permission error Pin
AmitGajjar30-Nov-11 2:34
professionalAmitGajjar30-Nov-11 2:34 
QuestionWhat happens to abandoned or timed out sessions? Pin
Brady Kelly29-Nov-11 8:12
Brady Kelly29-Nov-11 8:12 
AnswerRe: What happens to abandoned or timed out sessions? Pin
David Mujica29-Nov-11 8:48
David Mujica29-Nov-11 8:48 
GeneralRe: What happens to abandoned or timed out sessions? Pin
Brady Kelly29-Nov-11 9:58
Brady Kelly29-Nov-11 9:58 
GeneralClarification Pin
David Mujica30-Nov-11 9:59
David Mujica30-Nov-11 9:59 
GeneralRe: Clarification Pin
Brady Kelly30-Nov-11 17:38
Brady Kelly30-Nov-11 17:38 
AnswerRe: What happens to abandoned or timed out sessions? Pin
jkirkerx29-Nov-11 19:32
professionaljkirkerx29-Nov-11 19:32 
QuestionRE: Visual Studio NOOB question - XML - Pin
B A L L S29-Nov-11 5:42
B A L L S29-Nov-11 5:42 
AnswerRe: RE: Visual Studio NOOB question - XML - Pin
Not Active29-Nov-11 6:07
mentorNot Active29-Nov-11 6:07 
GeneralRe: RE: Visual Studio NOOB question - XML - Pin
B A L L S29-Nov-11 6:47
B A L L S29-Nov-11 6:47 
GeneralRe: RE: Visual Studio NOOB question - XML - Pin
Not Active29-Nov-11 9:46
mentorNot Active29-Nov-11 9:46 
QuestionPlease suggest tools/ codes (Jquery Nested Expression Builder ) Pin
sysmatrix29-Nov-11 2:33
sysmatrix29-Nov-11 2:33 
AnswerRe: Please suggest tools/ codes (Jquery Nested Expression Builder ) Pin
jkirkerx29-Nov-11 19:37
professionaljkirkerx29-Nov-11 19: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.