Unable to enter data into database
- by Zerotoinfinite
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