+1  A: 

ASP.NET does not allow any HTML (basically a list of potentially dangerous values) in a Querystring or Form field value by default. This is set by the @Page directive's ValidateRequest attribute (true by default).

You could turn the feature off, but it will open you up to XSS attacks. The better method is to make sure that all your querystrings are properly URL-encoded.

In your case, it appears to be the </div> tag that is causing the problem. If this querystring is being created via Javascript, I would suggest the use of the encodeURIComponent() function to encode values.

Cerebrus
Thanks. I guess the script block is generated by an ASP.NET framework control or an AjaxControlToolkit control. I don't know how to control that...
Ole Lynge