如何查找文件夹的服务器路径 [英] How to find server path of folder

查看:517
本文介绍了如何查找文件夹的服务器路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的文件夹

F:\ Amit Bhoi \ working\Admin \26-03-2016 \Admin_new1 \ Admin \ SuccessStories



i在webi.config中使用它



this is my folder
F:\Amit Bhoi\working\Admin\26-03-2016\Admin_new1\Admin\SuccessStories

i use this in webi.config

<add key="DisplaySuccessStoriesImages" value="../../../../../../../SuccessStories/"/>





当我想保存图片时会出错...'



我尝试了什么:



i想要将图像保存在特定文件夹中



when i want to save the image it give error...'

What I have tried:

i want to save image in specific folder

推荐答案

检查



HttpServerUtility。 MapPath方法 [ ^ ]



c# - 获取.NET Web应用程序中的当前目录 [ ^ ]



asp.net - Server.MapPath [ ^ ]
check

HttpServerUtility.MapPath Method[^]

c# - Getting current directory in .NET web application[^]

asp.net - Server.MapPath[^]


这篇关于如何查找文件夹的服务器路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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