views:

36

answers:

0

I am getting error "A potentially dangerous Request.Form value was detected from the client" when trying to insert html content in DB from usercontrol.

Two ways to get rid of this error are 1) Set RequestValidate = false for the page itself. 2) Set RequestValidate = false in web config.

Both solutions doesn't fit in my case. It is Somehow possible to set the value of RequestValidate = false in usercontrol.

Thanks a lot in advance!