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


  • 相关阅读:
    ACM-ICPC ShangHai 2014
    DEBUG感想
    WireShark 使用日记
    C++ 备忘录
    BZOJ 1022 [SHOI2008]小约翰的游戏John
    高斯消元
    BZOJ3236 [Ahoi2013]作业
    BZOJ P3293&&P1045
    ZKW费用流的理解
    BZOJ 几道水题 2014-4-22
  • 原文地址:https://www.cnblogs.com/jinweijie/p/1219288.html
Copyright © 2011-2022 走看看