Get the web application directory method under .NET.

zhaozj2021-02-16  61

1. Request.ApplicationPath properties. You can get the root, but it is actually a "/ webApp", not an absolute URI

2, Request.url.getleftPart (Uripartial.Authority). You can get a complete URI program (protocol) and host name, plus the root of WebApp is a complete URI.

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

New Post(0)