在页面上保存文件上传控件的文件名 [英] saving the file name of an file upload control on page post back

查看:93
本文介绍了在页面上保存文件上传控件的文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用文件上传控件,在选择文件后点击上传按钮时,文件名消失了,并且没有选择文件的标签"仍然存在,我该如何保留它?请指教

hi ,

i am using an file upload control and on hitting the upload button after choosing the file the file name disappears and "no file choosen tag" remains there how can i retain it? please advice

推荐答案

请添加另一个按钮进行保存.
单击保存按钮的单击事件时,将保存文件..........
please add one another button for save.
at click event of save button save the file..........




要维护文件名,您需要使用HiddenField.这可以帮助你

祝你好运
Hi,

to maintain name of file u need to use HiddenField. this can help u

Best Luck


这篇关于在页面上保存文件上传控件的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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