I had to disable validation for this page, as HTML inside a field triggers ASP.NET's cross-site scripting security.
Now, this was all working well and good until I changed my navigation menus from plain images and anchors to ASP:imagebuttons. The navi menu is on my masterpage and in now within the same <form> block as the contentplaceholder. This is the only change I've done.
Now, when I click a button to go to a different page, all of my pages trigger the ASP.NET cross-site scripting security because of the hiddenfield on a single page.
Now, to try and fix this, I've set the hiddenfield's viewstate to false. I hope this would stop it from posting back, to no avail. Also, I've added the following event:
Expand|Select|Wrap|Line Numbers
- protected void reportField_Unload(object sender, EventArgs e)
- {
- reportField.Value = "";
- }