如何找到XML文件的路径 [英] How to find the path of XML file

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

问题描述

您好,



我正在开发一个在线管理系统。使用ASP.net开发。



我创建了一个.XML文件来存储我的一些设置。它是本地系统中的工作文件,但在发布后我不知道如何指向该文件。



我将文件放在App_data文件夹中。



任何人都可以帮我找到路径

解决方案

看看这里:如何在asp.net应用程序中引用App_Data文件夹(或任何其他文件) [ ^ ]

ASP.NET Web项目文件夹结构 [ ^ ]

 ' 〜/ App_data / your_file.xml' 


Hello,

I am developing a management system work online. Developing using ASP.net.

I created a .XML file to store some of my setting. It was working file in local system but after publishing I dont know how to point to the file.

I placed the file inside the App_data folder.

Can any one help me to find the path

解决方案

Have a look here: How to reference the App_Data folder (or any other) in asp.net app[^]
ASP.NET Web Project Folder Structure[^]


'~/App_data/your_file.xml'


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

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