개발/ASP.NET
현재/이전 페이지 주소
한번사는인생.
2018. 3. 9. 16:23
HttpContext.Current.Request.Url 현재 주소
HttpContext.Current.Request.UrlReferrer 이전 주소
2가지 모두 Uri 형태이므로 아래 속성값은 동일한 형태로 사용된다.
속성값
OriginalString : http://www.ts.nocutnews.co.kr:80/notification/1
AbsoluteUri : http://www.ts.nocutnews.co.kr/notification/1
Scheme : http
Host : www.ts.nocutnews.co.kr
Authority : www.ts.nocutnews.co.kr
AbsolutePath : /notification/1
PathAndQuery : /notification/1
Port : 80