Vardars Blog

Programming, Karikatür, Web etc.

A potentially dangerous Request.Form value was detected from the client

Yazan: vardars 06 Nov 2008

If you get “A potentially dangerous Request.Form value was detected from the client” when you use Rich Text Editor or TextArea in your web projects. You can get this error if any html code is submitted from your form.

You can bypass this error with adding a parameter inside your asp.net aspx file

ValidateRequest=”false” inside <%@ Page element.

For example your page directive is

<%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”Default.aspx.cs” Inherits=”Test._Default” %>

Then you can use

<%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”Default.aspx.cs” Inherits=”Test._Default” ValidateRequest=”false” %> like that.

Yorum Yapın

XHTML: Bu etiketleri kullanabilirsiniz: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>