asp.net控件保留图片文件路径 [英] asp.net control to retain the Picture-File Path
本文介绍了asp.net控件保留图片文件路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在没有ajax的情况下在asp.net中保留文件上传控件的值.
I want to retain value of the file upload control in asp.net without ajax
推荐答案
您使用输入控件吗?我在C#中使用了此代码.
可能可以帮助您:
Do you use the input control? I used this code in C#.
May be can help you:
...
using System.Web.UI.HtmlControls;
...
HtmlInputFile htmlIF;
String _path;
htmlIF = (HtmlInputFile)this.FindControl("<the control's name>");
_path = htmlIF.htmlIF.Value;
...
问候!
Greetings!
这篇关于asp.net控件保留图片文件路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文