If you set ValidateRequest="true" or remove the ValidateRequest page attribute, ASP.NET request validation rejects the script input and produces an error similar to the following:
A potentially dangerous Request.Form value was detected from the client (txtString="<script>alert('hello...").
Regards,
Eric