I have an ASP.NET application that will display a Dataset's XML in a textbox when a button is clicked.
Clicking the button again should rerun the request, but before this can happen I get an error saying 'A potentially dangerous Request.Form value was detected from the client (txtXML="<NewDataSet>
...)' Obviously, the angle brackets are being interpreted as a potential cross-site scripting attack.
I tried clearing the textbox text in the button click event handler and the Page_Load() method, but these seem to be too late.
Is there another event I can handle that will allow me to clear the text early enough in the request-handling process?