Unable to enter data into database

Posted by Zerotoinfinite on Stack Overflow See other posts from Stack Overflow or by Zerotoinfinite
Published on 2010-04-30T20:45:03Z Indexed on 2010/04/30 20:47 UTC
Read the original article Hit count: 286

Filed under:
|

Hi All,

I have a gridview, I am allowing user to enter HTML data while editing a record in a gridview row. When I am clicking update button then I am getting this message

A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$gvCommentDetails$ctl02$ctl04="This is message,
This is mark. ...").

Please let me know how could I resolve this , as I am using sql data source to update the gridview record.

=============

" SelectCommand=" SELECT c.Id,c.Name, c.message FROM Table1 c UpdateCommand=" UPDATE Table1 SET Name = @Name, message = @message WHERE Id= @Id">

Thanks in adavance

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about gridview