2010년 3월 31일 수요일

[C#] Asp.NET : Error : A potentially dangerous Request.Form value was detected from the client

Asp.NET : Error : A potentially dangerous Request.Form value was detected from the client
This occurs when we try to post html code. The server will validate the postdata, if it find that its an HTML code, error something similar to this is shown. This actually helps to prevent running malicious script. If you really want to post the html content add this to the page directive validateRequest=”false”.

이러한 경고 메시지를 얻게 된다면...

Web.config 에서 다음 부분에 를 추가 한다.






원문 : http://www.netme.kr/bbs/board.php?bo_table=sub_1050&wr_id=114&page=3

댓글 없음:

댓글 쓰기