如何设置文件路径在ASP C#正常吗? [英] how to set path to a file in ASP C# properly?
本文介绍了如何设置文件路径在ASP C#正常吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在网站上这里工作,在ASP和C#。
working on a website here, in ASP and C#.
我的问题是,当我尝试读取文件时,发现了错误的目录。这里使用的是code IM:
my problem is, when I try to read a file, it finds the wrong directory. here are the code im using:
addtext.Text = new WebClient().DownloadString("readme.htm");
错误是这样的:
找不到文件C:\\ Program Files文件(x86)的\\ Common Files文件\\ Microsoft共享\\ DevServer \\ 10.0 \\的readme.htm'。
Could not find file 'C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\readme.htm'.
我怎么引导路径相同的Default.aspx我??
how do I guide the path to the same as my default.aspx ??
推荐答案
的此页面有pretty所有事情你可能需要了解在ASP.NET的
This page has pretty much everything you might need to know about resolving paths in ASP .Net
这篇关于如何设置文件路径在ASP C#正常吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文