potentially dangerous Request.Form value was detected

  • Thread starter Thread starter Mike P
  • Start date Start date
M

Mike P

I am posting XML to a webpage but I get the following error :

‘A potentially dangerous Request.Form value was detected from the client
(xml="<?xml version="1.0" ...").’

How do I prevent this error?
 
Mike said:
I am posting XML to a webpage but I get the following error :

‘A potentially dangerous Request.Form value was detected from the client
(xml="<?xml version="1.0" ...").’

How do I prevent this error?

You turn off request validation.

Add ValidateRequest="false" in the @Page directive.
 
Back
Top