ASP.Net URL 正則表示法 Regular Expressions URL Post Authority QueryString等等資訊取得
// 取得URL 物件 System.Uri uri = Request.Url; // 自訂URL 物件 (正則表示法 Regular Expressions) System.Uri seturi = new System.Uri("http://tw.yahoo.com"); Response.Write("Request.Url.OriginalString : " + uri.OriginalString + " "); Response.Write("Request.Url.AbsoluteUri : " + uri.AbsoluteUri + " "); Response.Write("Request.Url.Scheme : " + uri.Scheme + " "); Response.Write("Request.Url.Host : " + uri.Host + " "); Response.Write("Request.Url.Authority : " + uri.Authority + " "); Response.Write("Request.Url.Port : " + uri.Port + " "); Response.Write("Request.Url.PathAndQuery : " + uri.PathAndQuery + " "); Response.Write("Request.Url.AbsolutePath : " + uri.AbsolutePath + " "); Response.Write("Request.Url.Query : " + uri.Query + " "); Response.Write("Request.QueryString : " + Request...