如何去除页面自动生成的ViewState.docVIP

  • 0
  • 0
  • 约4.6千字
  • 约 5页
  • 2018-05-25 发布于河南
  • 举报
如何去除页面自动生成的ViewState

这是一个朋友的想法,刚开始我第一感觉是截留HtmlTextWriter的RenderBeforeTag事件 不过发现Input Type=Hidden都不影应这个事件,郁闷 Reflector查看RegisterHiddenField发现它们都存在于一个私有成员中 最后没办法,只有使用页面过滤器了 因为是一个简单的示例,所以两个类文件写在一起了,编译后生成的dll文件名为Blackant.Controls.dll using System; using System.Collections.Generic; using System.Text; using System.Web; using System.Web.Security; using System.Xml; using System.Text.RegularExpressions; using System.IO; namespace Blackant.Controls ...{ ?? ??? /**//// summary ??? /// Summary description for HiddenInputFilter ??? /// /summary ??? public class HiddenInputHttpModule : IHttpModule ??? ...{ ???? ??????? IHttpM

文档评论(0)

1亿VIP精品文档

相关文档