2011-06-18 110 views

回答

9
​​

,或者如果你是這裏面page.aspx你可以直接使用Request.Url屬性:

string authority = Request.Url.GetLeftPart(UriPartial.Authority); 
4
string baseUrl = Request.Url.GetLeftPart(UriPartial.Authority);