更新时间:2021-09-14 22:43:52
我不能说我理解您的问题是什么,但是我只能看到您的路径有问题.
代字号(〜)代表ASP.NET中应用程序的根目录.
如果您想使用代码路径(在代码后),建议您使用
Hi,
I can''t say that I understood what your problem is, but all I can see is that you have problems with paths.
The tilde (~) character represents the root directory of the application in ASP.NET.
If you want to use paths through code (in code-behind) I suggest you to use
Request.ApplicationPath
,然后将相对文件夹结构附加到该路径..
您可以在此处上找到有关ASP.NET路径的好文章. a> [ ^ ].
and then append relative folder structure to it..
You have good article about ASP.NET paths here[^].