Click here to Skip to main content
15,888,610 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionaccess data from ms access with date Pin
Praveen Kandari26-Feb-15 1:13
Praveen Kandari26-Feb-15 1:13 
SuggestionRe: access data from ms access with date Pin
ZurdoDev26-Feb-15 4:16
professionalZurdoDev26-Feb-15 4:16 
GeneralRe: access data from ms access with date Pin
Praveen Kandari26-Feb-15 17:06
Praveen Kandari26-Feb-15 17:06 
QuestionRe: access data from ms access with date Pin
ZurdoDev27-Feb-15 1:31
professionalZurdoDev27-Feb-15 1:31 
QuestionDelete files from server folders Pin
Sean_Vt25-Feb-15 8:36
Sean_Vt25-Feb-15 8:36 
AnswerRe: Delete files from server folders Pin
Afzaal Ahmad Zeeshan25-Feb-15 21:45
professionalAfzaal Ahmad Zeeshan25-Feb-15 21:45 
GeneralRe: Delete files from server folders Pin
Sean_Vt25-Feb-15 23:21
Sean_Vt25-Feb-15 23:21 
AnswerRe: Delete files from server folders Pin
Afzaal Ahmad Zeeshan25-Feb-15 23:41
professionalAfzaal Ahmad Zeeshan25-Feb-15 23:41 
Did you try to understand what I told you?

The link I gave, was about "How to delete one single instance of file from your machine". You can use it, to delete one file (at a time). It won't give you the list of files, that is the job of Directory.EnumerateFiles(string location)[^] to provide you with the list of files available in a directory.

The button that you're talking about, that has been tied to the delete event. You can write this code in it.

C#
void Button_Click(object sender, EventArgs e) {
   // The following code to delete it
   string file = "You can pass the location from a parameter.";
   File.Delete(file);
}


Once this code would execute, the file at that location (you need to pass the location of the file to delete, so embed the file path somewhere alongwith the button) would be deleted.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: Delete files from server folders Pin
Sean_Vt25-Feb-15 23:58
Sean_Vt25-Feb-15 23:58 
AnswerRe: Delete files from server folders Pin
Afzaal Ahmad Zeeshan26-Feb-15 0:02
professionalAfzaal Ahmad Zeeshan26-Feb-15 0:02 
GeneralRe: Delete files from server folders Pin
Sean_Vt26-Feb-15 0:05
Sean_Vt26-Feb-15 0:05 
AnswerRe: Delete files from server folders Pin
Afzaal Ahmad Zeeshan26-Feb-15 0:14
professionalAfzaal Ahmad Zeeshan26-Feb-15 0:14 
GeneralRe: Delete files from server folders Pin
Sean_Vt26-Feb-15 6:09
Sean_Vt26-Feb-15 6:09 
QuestionAccess from data from Ms access Pin
Praveen Kandari24-Feb-15 20:31
Praveen Kandari24-Feb-15 20:31 
QuestionRe: Access from data from Ms access Pin
Richard MacCutchan25-Feb-15 4:28
mveRichard MacCutchan25-Feb-15 4:28 
AnswerRe: Access from data from Ms access Pin
Praveen Kandari25-Feb-15 17:52
Praveen Kandari25-Feb-15 17:52 
GeneralRe: Access from data from Ms access Pin
Richard MacCutchan25-Feb-15 21:32
mveRichard MacCutchan25-Feb-15 21:32 
GeneralRe: Access from data from Ms access Pin
Praveen Kandari25-Feb-15 22:41
Praveen Kandari25-Feb-15 22:41 
GeneralRe: Access from data from Ms access Pin
Richard MacCutchan25-Feb-15 22:48
mveRichard MacCutchan25-Feb-15 22:48 
QuestionASP.Net button appears twice in run time Pin
sudevsu24-Feb-15 8:52
sudevsu24-Feb-15 8:52 
QuestionRe: ASP.Net button appears twice in run time Pin
jkirkerx24-Feb-15 10:31
professionaljkirkerx24-Feb-15 10:31 
AnswerRe: ASP.Net button appears twice in run time Pin
sudevsu27-Feb-15 3:23
sudevsu27-Feb-15 3:23 
AnswerRe: ASP.Net button appears twice in run time Pin
loben324-Feb-15 22:30
loben324-Feb-15 22:30 
GeneralRe: ASP.Net button appears twice in run time Pin
sudevsu27-Feb-15 3:23
sudevsu27-Feb-15 3:23 
QuestionRegarding asp.net cookie less form authentication Pin
Tridip Bhattacharjee23-Feb-15 21:02
professionalTridip Bhattacharjee23-Feb-15 21:02 

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.