如何保存完整的URL?(How to save the complete URL called?)
我希望能够保存完整的URL以调用一个包含所有参数的页面?
dim fs,f fs=Server.CreateObject("Scripting.FileSystemObject") f=fs.OpenTextFile("D:\www\log.txt", 8, True) f.WriteLine(" ") f.WriteLine(" ") f.Write(" : ") f.Write(" : ") f.Write(Request.QueryString("type"))我相信上面的代码会存储其中一个参数。 但是,我想要能够捕获完整的URL?
f.Write(Context.Request.Url.Host)
只让我第一部分?
I want to be able to save the complete URL called to reach a page including all the parameters ?
dim fs,f fs=Server.CreateObject("Scripting.FileSystemObject") f=fs.OpenTextFile("D:\www\log.txt", 8, True) f.WriteLine(" ") f.WriteLine(" ") f.Write(" : ") f.Write(" : ") f.Write(Request.QueryString("type"))I believe the above code will store one of the parameters. However i want to be able to capture the complete URL?
f.Write(Context.Request.Url.Host)
only gets me the first part?
最满意答案
尝试使用Context.Request.Url.AbsoluteUri
Try using Context.Request.Url.AbsoluteUri
更多推荐
发布评论