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,处理一把就可以了~


  • 相关阅读:
    Ajax缓存处理
    单例模式
    正则表达式基础
    springmvc请求参数的绑定和获取
    springmvc返回视图(解析)
    RequestMapping请求映射方式
    springmvc注解基本入门
    springmvc简介
    Mybatis入门-动态sql
    Mybatis映射配置文件Mapper.xml详解
  • 原文地址:https://www.cnblogs.com/jinweijie/p/1219288.html
Copyright © 2011-2022 走看看