由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - log file
相关主题
.Net remoting paper from wrox teamstate tax 怎么算residency
我的第一个小C#程序Anyone applying for Temporary Resident (Visitor) Visa to visit Canada?
请教NANT的一个问题给板上翻墙傻逼普一下加拿大身份
ArrayList question请问在加州注册车辆的问题
C# Deploying application 如何加入一个 folder的文件?回国之后brokerage账户处理
ASP.NET 高手请进!报税中的RESIDENCE STATUS.
ERAS 2013 Programs and 几个与申请有关的网站8000 tax credit become 7290??
请教什么是tax resident county以及帮我妈妈开投资帐户的问题如何申请二次买房$6500的Credit
相关话题的讨论汇总
话题: projecta话题: log话题: wwwroot话题: project话题: inetpub
进入DotNet版参与讨论
1 (共1页)
d****t
发帖数: 362
1
I want to record the transaction in a log file, which will be placed in a
subdirectory, called log, residing the same directory as my web project. Let's
say, my web project is at: "D:\Inetpub\wwwroot\projectA", and the logfile,
named log.txt, resides at "D:\Inetpub\wwwroot\projectA\log". The question is
how to get the virtual directory of a web project, such as projectA? I don't
want to hardcode this for ease of transfer to other machines.
b*e
发帖数: 3845
2
you could use Server.MapPath("/")

【在 d****t 的大作中提到】
: I want to record the transaction in a log file, which will be placed in a
: subdirectory, called log, residing the same directory as my web project. Let's
: say, my web project is at: "D:\Inetpub\wwwroot\projectA", and the logfile,
: named log.txt, resides at "D:\Inetpub\wwwroot\projectA\log". The question is
: how to get the virtual directory of a web project, such as projectA? I don't
: want to hardcode this for ease of transfer to other machines.

c*o
发帖数: 70
3
Great! I appreciate your help!

Let's
is
don't

【在 b*e 的大作中提到】
: you could use Server.MapPath("/")
p***y
发帖数: 79
4
that's is website root.
for virtual directory of the project, use ResolveUrl("~")

【在 b*e 的大作中提到】
: you could use Server.MapPath("/")
1 (共1页)
进入DotNet版参与讨论
相关主题
如何申请二次买房$6500的CreditC# Deploying application 如何加入一个 folder的文件?
Non resident 有没有 8000 credit?ASP.NET 高手请进!
偶买一房,LD买一房ERAS 2013 Programs and 几个与申请有关的网站
home owner exemption 的矛盾信息 (转载)请教什么是tax resident county以及帮我妈妈开投资帐户的问题
.Net remoting paper from wrox teamstate tax 怎么算residency
我的第一个小C#程序Anyone applying for Temporary Resident (Visitor) Visa to visit Canada?
请教NANT的一个问题给板上翻墙傻逼普一下加拿大身份
ArrayList question请问在加州注册车辆的问题
相关话题的讨论汇总
话题: projecta话题: log话题: wwwroot话题: project话题: inetpub