如何从目录中删除转发器中的文件 [英] How to delete files in the repeater from the directory
本文介绍了如何从目录中删除转发器中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi guys
如何从目录中删除转发器中的文件
我尝试过:
hi guys
How to delete files in the repeater from the directory
What I have tried:
<asp:Repeater ID="MyRPT" runat="server">
<ItemTemplate>
<asp:Label ID="NameAndFamily_lbl" runat="server" Text='<%#Eval("Name")%>'></asp:Label>
<img ID="FileAttachment_img" src='<%#Eval("FileAttachmentURL")%>'/>
</ItemTemplate>
</asp:Repeater>
protected void DeleteMyPost_Click(object sender, EventArgs e)
{
//Delete item from DB (this is ok)
//Delete all files from directory (this is my problem)
}
你有解决这个问题的方法吗?
Do you have a solution to this problem?
推荐答案
我想从服务器上删除3个文件按删除当前表格按钮后
ScreenShot
i want to delete 3 files from server after press "Delete current form" button
ScreenShot
这篇关于如何从目录中删除转发器中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文