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

}
}
浙公网安备 33010602011771号