回发后如何保留FileUpload控件的路径 [英] How To Remain path of FileUpload control after postback
本文介绍了回发后如何保留FileUpload控件的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
回发后如何保留FileUpload控件的路径
预先感谢
Hi,
How To Remain path of FileUpload control after postback
Thanks in advance
推荐答案
出于安全考虑,MS打算在回发后清除其值.我之前所做的是在将文档附加到电子邮件时遵循gmail的方法.试试吧,它可能适合您的业务需求:)
due to security concern MS intends to clear its value after postback. What I did to that before is i followed the approach of gmail when attaching documents to the email. try it, it might suits your business requirements :)
您可以通过Session,Viewstate或隐藏字段保存路径
--NDK
you can hold the path through Session, Viewstate or hidden field
--NDK
我认为您可以将FileUpload的路径存储在Session中,然后进行检索...
问候
Hi,
I think you could store the path of FileUpload in Session, then retrieve it...
Regards,
这篇关于回发后如何保留FileUpload控件的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文