如何在asp.net中提交之前删除上传的文件 [英] how to remove uploaded file before submitting in asp.net

查看:96
本文介绍了如何在asp.net中提交之前删除上传的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从已上传但尚未提交的文件中删除特定文件...

i尝试删除该文件,但在提交后仍然提交....



提前感谢......

i want to remove a particular file from files which are uploaded but not yet submitted...
i tried to remove the file but after submitting it's getting submitted....

thanks in advance......

推荐答案

1.上传控件,选择文件后,按在上传按钮上,文件会自动提交,与您点击页面上的提交按钮或不相关的事实无关!因此,通过使用标准的ASPX上传控件,你无法做到。



2.您可以尝试扩展/自定义ASPX上传控件。这是一个链接: http://www.asp.net/web-forms/videos/how-do-i/how-do-i-extend-and-customize-an-aspnet-服务器控制用于特定目的 [ ^ ]
1.The upload control, after selecting the file, and pressing on Upload button the file is automatically submitted, and is not related with the fact that you click then on a submit button on your page or not! So by using the standard ASPX upload control you cannot do it.

2.You can try by extending/customizing the ASPX upload control. Here is a link about: http://www.asp.net/web-forms/videos/how-do-i/how-do-i-extend-and-customize-an-aspnet-server-control-for-a-specific-purpose[^]


这篇关于如何在asp.net中提交之前删除上传的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆