i developing the web site for institute.my web site have the following directory and this folder stores the audios and many file extension file in diffrent directories.like Server.MapPath("~/maintainer/uploaded_files/Uploaded/gallery/audios/") and Server.MapPath("~/maintainer/uploaded_files/Uploaded/syllabus/") i want to delete the specific file when deleting the record from gridview.when i deleting the the record in gridview,the record is deleted but file not deleting file from directory.i using the following source code and c#/asp code in code behind aspx.cs file
<asp:TemplateField ShowHeader="False"><ItemTemplate> <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" CommandArgument='<%#Eval("filename") %>' Text="Delete"></asp:LinkButton></ItemTemplate></asp:TemplateField>and in aspx.cs file