What is the meaning of A potentially dangerous Request.Form value was detected from the client error message

后端 未结 4 535
闹比i
闹比i 2021-01-23 17:41

I was trying to send an email via my web project using Free text box control.It is an text editor . but I\'ve got this error.

A potentially dangerous Request.For

4条回答
  •  长发绾君心
    2021-01-23 18:23

    I've had this before.

    You need to also add to your web.config file.

    If you put your page into debug mode and read the text with the error message it tells you what to add and where to add it. I cant remember 100% why the error occurs, I think it's something to do with page content on postback and the browser thinking there is harmfull code in there.

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

    and

    http://www.codeproject.com/Tips/297679/A-potentially-dangerous-Request-Form-value-was-det

    for a more complete explanation and solution.

提交回复
热议问题