如何使用Asp.Net在文本框中存储目录路径 [英] How Can I Store Directory Path In Text Box Using Asp.Net
本文介绍了如何使用Asp.Net在文本框中存储目录路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在文本框中使用asp.net按钮浏览单击存储目录路径。
how can i store directory path in text box using asp.net on button browse click.
推荐答案
你可以使用
路径.getfilepath(fileupload.filename)
来自system.io namespace的
。
you can use
Path.getfilepath(fileupload.filename)
from system.io namespace.
你无法获得完整目录路径文件。出于安全原因,浏览器不允许这样做。
You can't get the Full Directory Path of the File. Browsers don't allow this for Security reasons.
这篇关于如何使用Asp.Net在文本框中存储目录路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文