A potentially dangerous Request.Form value was detected from the client

A

arun

Hi

I want to store the text from a TextBox that contains <br> , *, $
etc.to sql server. But it shows me an error message "A potentially
dangerous Request.Form value was detected from the client
(ctl00$ContentPlaceHolder1$Comments="...rts from: <br>14:15 Bus Stop
1..."). "

If the text does not contain these special characters it gets inserted
with out any problem.

Please suggest me how to solve this.
 
M

Mark Rae

Please suggest me how to solve this.

1) Launch your internet browser (e.g. IE, FireFox, Netscape, Opera etc)

2) Navigate to the following site: http://www.google.com

3) Enter the text below in the box:

"A potentially dangerous Request.Form value was detected from the
client"

4) Hit the button


There are literally hundreds of pages on the web where this is discussed,
with suggestions on how to avoid it...
 

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