zoukankan      html  css  js  c++  java
  • 一种简单的检测form非法字符串

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

        
    determin if it is HttpRequestValidationException

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


  • 相关阅读:
    语言基础
    进制转换
    添加
    查找
    继承
    封装
    面向基础 c#小复习
    主外键
    三个表的关系
    插入信息,模糊查询,聚合函数,时间函数,排序,字符串函数,数学函数,求个数,球最大
  • 原文地址:https://www.cnblogs.com/jinweijie/p/1219288.html
Copyright © 2011-2022 走看看