需要FileUpload的完整路径

编程入门 行业动态 更新时间:2024-10-24 10:14:24
本文介绍了需要FileUpload的完整路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

从本地硬盘浏览文件后,它将显示文件位置的完整路径.我需要完整的路径,不仅是文件名( FileUpload1.FileName ).

After browsing a file from Local Hard Disk, it shows a full path of file Location. I require the full path, not only File Name (FileUpload1.FileName).

<asp:fileupload id="FileUpload1" runat="server" xmlns:asp="#unknown" />

即" C:/Details.doc " 我也可以使用此行来获取完整路径---

i.e. "C:/Details.doc" I can use this line also to get the full path ---

<input id="FileImageC" runat="server" atomicselection="true" class="buttonUpload" name="FileImageC" onchange="ShowImageC(this.value);" style="width: 150px" tabindex="139" type="file" />

推荐答案

FileUpload控件将只为您提供文件名,因为它来自的路径在发布到服务器时没有任何意义. 您要完成什么? The FileUpload control will only give you the filename as the path it comes from has no meaning when posted to the server. What are you trying to accomplish?

更多推荐

需要FileUpload的完整路径

本文发布于:2023-11-30 05:34:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1648896.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:路径   完整   FileUpload

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!