在fileupload中设置img路径 [英] set img path in fileupload

查看:102
本文介绍了在fileupload中设置img路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




如何将图像源值设置为FileUpload



< asp:FileUpload>



i想要在编辑html页面时保持价值,imr src应该在< asp:FileUpload

解决方案

http:/ /bytes.com/topic/c-sharp/answers/942142-how-can-i-fill-choose-file-upload-dialog-programmatically-using-c [ ^ ]


由于安全限制,这是不可能的。浏览器不允许这样做。

FileUpload 在用户进行选择时设置路径。



替代解决方案: - 使用 Lable 控件来显示文件路径,而不是 FileUpload control。 / BLOCKQUOTE>

Hi
How to set image source value to FileUpload

<asp:FileUpload>

i want to keep value when i edit html page, the imr src should be there in <asp:FileUpload

解决方案

http://bytes.com/topic/c-sharp/answers/942142-how-can-i-fill-choose-file-upload-dialog-programmatically-using-c[^]


This is not possible due to Security Restrictions. Browsers don't allow this.
FileUpload is set with the path, when user make a selection.

Alternate solution:- use Lable control to display file path rather than FileUpload control.


这篇关于在fileupload中设置img路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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