一种简单的检测form非法字符串

protected override void OnError(EventArgs e)
        
{
            Exception lastException
=this.Server.GetLastError();    

    
determin if it is HttpRequestValidationException

在pagebase里面,catch住HttpRequestValidationException,处理一把就可以了~


posted on 2008-06-13 14:36  JIN Weijie  阅读(248)  评论(0编辑  收藏  举报