How to delete xml file in folder from Solution Explorer? [Resolved]

Posted by Hariinakoti under ASP.NET on 12/6/2012 | Points: 10 | Views : 1429 | Status : [Member] | Replies : 3
Hi All,
I created xml file dynamically it is saved in solution explorer perfectly.Now i want to delete xml file from that solution explorer.

Thanks & Regards
Hari



Responses

Posted by: Pavanandey on: 12/6/2012 [Member] Bronze | Points: 50

Up
0
Down

Resolved
System.IO.File.Delete("file path");

Thanks
Pavan Kumar
Mark Answer if this fits the need

Hariinakoti, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 12/6/2012 [Member] Starter | Points: 25

Up
0
Down
@Pavanandey,
how can i apply in code?
I'm using delete button.I want to write this code in that button click

Thanks & Regards
Hari

Hariinakoti, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Pavanandey on: 12/6/2012 [Member] Bronze | Points: 25

Up
0
Down
the line of code even works in button click also.

Thanks
Pavan Kumar
Mark Answer if this fits the need

Hariinakoti, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response