05 2011 档案

摘要:If you are anything like me (and I fear that you are) then this is your experience with JSON so far:Two months ago you'dneverheard of JSONOne month ago you'd heardtheterm but paid no attentionOne week ago you'd heard it mentioned a few times and started to think,right... some more crap t 阅读全文
posted @ 2011-05-27 08:04 cnbwang 阅读(274) 评论(0) 推荐(0)
摘要:在ASP.NET的生命周期走到Render阶段,Page.ProcessMain方法会调用Page的RenderControl方法,RenderControl方法会调用RenderControlInternal,RenderControlInternal根据该空间否是有ControlAdapter调用不同的呈现方法。RenderControlInternal的方法原型如下: privatevoidRenderControlInternal(HtmlTextWriterwriter,ControlAdapteradapter){if(adapter!=null){adapter.BeginRen 阅读全文
posted @ 2011-05-20 08:03 cnbwang 阅读(1254) 评论(3) 推荐(0)
摘要:publicclassCompressPageStatePersister:PageStatePersister{privatestringpagestateKey="__VIEWSATE";publicCompressPageStatePersister(Pagep):base(p){}publicoverridevoidSave(){if(!Page.EnableViewState){this.ViewState=null;}if(this.ViewState!=null||this.ControlState!=null){Pairstate=newPair(ViewS 阅读全文
posted @ 2011-05-03 08:46 cnbwang 阅读(332) 评论(9) 推荐(0)