potentially dangerous Request.Form value was detected

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?
 
G

Göran Andersson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top