GibbsUSA.net Blogs
Sunday, February 05, 2012
Logon Back to Blog Blogs Home GibbsUSA.net Home
Leave your comments...
protected override void OnError(EventArgs e) { System.Exception theError = Server.GetLastError(); if(theError.GetBaseException() is System.Web.HttpRequestValidationException ) { System.Diagnostics.Debug.Assert(false); Response.Write("<hr><p align=center>BAD BOY!!! You are trying to insert HTML tags or XSS script to the field.<br>Please use the button below to remove the tags from your input!<br><br>Thank you...</p>"); Response.Write("<p align=center><input type=button language=javascript value='<< BACK' onclick ='window.history.go(-1);'></p><hr>"); Response.StatusCode = 200; Response.End(); } }
CLR v2.0.50727.3625
Please see the site Terms And Conditions and the site Privacy Statement.This entire web site (and the software contents therein) is Copyright © Chris Gibbs 2000-2012. Any reproduction or copying is expressly forbidden without the prior consent of Chris Gibbs. For more information, please contact the site WebMaster (WebMaster@GibbsUSA.net).