Request Get some formats of the path where the current access page is currently accessed

xiaoxiao2021-03-04  57

Suppose Test is a virtual directory: request.path, request.RawurL Get the path to /test/test.aspx

Request.url.absoluteuri get http://localhost/test/test.aspx

Request.ApplicationPath gets / TEST

HttpContext.current.Request.url.host got Localhost

Get the URL "http:///" request.url.host request.rawurl of the current page

转载请注明原文地址:https://www.9cbs.com/read-31675.html

New Post(0)