posted on Friday, March 19, 2004 9:06 PM
by
warstar
A potentially dangerous Request.Form value was detected from the client (TextBox1="")
I got this error when typing in <lalala> into a textbox and putting that onto a label.
And after following the dam advise i found out that i should put “ValidateRequest="false"” after “<%@ Page” and before “%>” in to the template.
To make sure that <lala> is printed into label and not the HTML <lala> i used HttpUtility.HtmlEncode(string) and now it works great.
For all the PHP guys use htmlspecialchars.