一种简单的检测form非法字符串
protected override void OnError(EventArgs e)
{
Exception lastException=this.Server.GetLastError();
determin if it is HttpRequestValidationException
{
Exception lastException=this.Server.GetLastError();
determin if it is HttpRequestValidationException
在pagebase里面,catch住HttpRequestValidationException,处理一把就可以了~