웹 응용 프로그램의 Request.UrlReferrer가 null입니다. UrlReferrer를 어떻게 설정할 수 있습니까?Asp.net request.UrlReferrer is null
1
A
답변
2
UrlReferrer를 설정할 필요가 없습니다. 리퍼러는 브라우저가 서버에 보내는 내용입니다. 이 속성은 브라우저가 참조 자로 보낸 내용을 읽는 방법입니다. 명백한 이유 때문에 서버가 브라우저를 제어하지 않기 때문에 브라우저가 보내는 것을 설정할 수 없습니다.
왜 어쨌든 설정 하시겠습니까?
0
UrlReferrer가 null이 아닌지 확인하고 싶습니다. 그렇지 않으면 '객체 참조가 객체의 인스턴스로 설정되지 않습니다.'를 만들 수 있습니다. 오류. 의
if (!(Request.UrlReferrer == null)) {
'if Request.UrlReferrer is not null do this
}
else {
'set Request.UrlReferrer to null
}
관련 문제
- 1. $ .document is null
- 2. document.body is null
- 3. HTML5 "Canvas is null"
- 4. jQuery : $ (this) .data() is null
- 5. 톰캣이있는 꿰매기 "entityManager is null"
- 6. 자바 스크립트 : var is null
- 7. 동일 Request.UrlReferrer 받기
- 8. php IS NULL 전역 화 옵션?
- 9. Yii 조건 <IS NULL>
- 10. NHibernate Search Lucene.NET SearchFactory is null
- 11. 런타임에서 GWT 오류가 발생했습니다 : ... style_0 is null
- 12. ActiveRecord IS NOT NULL SQL finder
- 13. jQuery UI sortable ('cancel') - this.helper is null
- 14. Zend_Db_Table의 "IS NULL"이 작동하지 않습니다.
- 15. dnd 항목을 드래그하면 "this.manager.nodes [i] is null"이 생성됩니다.
- 16. FormPanel의 ExtJS FormPanel이 "this.body is null"로 실패합니다.
- 17. 방화 광에서 "this._processor is null"오류가 발생 했습니까?
- 18. Thinking Sphinx 검색에 "IS NOT NULL"조건을 추가하는 방법
- 19. Log4Net for Oracle -> "ConverterType is null"로 PatternLayout이 실패합니다.
- 20. silverlight 4 파일을 mvc 3 컨트롤러에 업로드 HttpPostedFileBase is null
- 21. Dojo : 사용자 정의 dijit을로드하는 중 "pathObj is null"오류가 발생했습니다.
- 22. MooTools Fx.Slide throw this this element is null
- 23. 오류를 일으키는 jQuery draggable ('cancel') : this.helper is null
- 24. ASP.NET MVC null ViewResult
- 25. "column is null"과 "column = null"의 차이점은 db2의 where 절에 있습니까?
- 26. System.Security.Principal.WindowsIdentity.GetCurrent(). Name is Works
- 27. Asp.net MVC가 : 널 (NULL) 매개 변수를 필터
- 28. ASP.Net : null 날짜 시간 삽입
- 29. Asp.net System.Web.HttpContext.Current.Session null in global.asax
- 30. ASP.NET WebForms - 세션 변수 Null
가능한 중복 [Request.UrlReferrer 널!?] (http://stackoverflow.com/questions/149130/request-urlreferrer-null) – adatapost
덕분에, 난 그냥 한번보세요. – maycil
무엇이 필요합니까? IMO 당신은 참조자가 안정적이지 않기 때문에 대체 방법을 찾아야합니다. –