asp.net 防SQL注入(非常简洁)
protectedvoidApplication_BeginRequest(objectsender,EventArgse){//遍历Post参数,隐藏域除外foreach(stringiinthis.Request.Form){if(i=="__VIEWSTATE")continue;this.goErr(this.Request.Form[i].ToString());}//遍历Get参数。foreach(stringiinth
下载地址
用户评论