2019년 4월 2일 화요일
C# - Url
[Controller 에서 사용하실때]
Request.Url.Host : 도메인명
Request.Url.Authority : 도메인명 + 포트번호
Request.Url.Port : 포트번호
Request.Url.AbsolutePath : 도메인명과 포트 그리고 쿼리스트링값이 제외된 전체 주소
Request.ApplicationPath : 현재 응용 프로그램의 가상 경로 값
Request.Url.AbsoluteUri : 도메인명과 포트 그리고 쿼리스트링값이 포함된 전체 주소
Request.Url.PathAndQuery : 도메인명과 포트번호가 제외되고 쿼리스트링이 포함된 주소
[View 에서 사용하실때]
HttpContext.Current.Request.Url.Host : 도메인명
HttpContext.Current.Request.Url.Authority : 도메인명 + 포트번호
HttpContext.Current.Request.Url.Port : 포트번호
HttpContext.Current.Request.Url.AbsolutePath : 도메인명과 포트 그리고 쿼리스트링값이 제외된 전체 주소
HttpContext.Current.Request.ApplicationPath : 현재 응용 프로그램의 가상 경로 값
HttpContext.Current.Request.Url.AbsoluteUri : 도메인명과 포트 그리고 쿼리스트링값이 포함된 전체 주소
HttpContext.Current.Request.Url.PathAndQuery : 도메인명과 포트번호가 제외되고 쿼리스트링이 포함된 주소
피드 구독하기:
댓글 (Atom)
MSSQL - Cursor vs Temp Table
#테이블 변수사용의 예 use pubs go declare @tmptable table ( nid int identity(1,1) not null, title varchar (80) not null ) -- 테이블 변수 선언 inse...
-
11 SQL Client for Productive Database Administration & Development Working as a web developer or database administrator, often n...
-
[JSON Serialization] JSON Serialization The JSON Serialization feature converts objects to and from JSON format. This can be use...
댓글 없음:
댓글 쓰기