关于EnableViewState的问题
 ---------------------.aspx   
                       <asp:Panel   id= "strStatus "   runat= "server "   EnableViewState= "true ">  </asp:Panel>    
 ---------------------.cs   
                         if   (this.IsPostBack) 
                         { 
                                     ControlCollection   cc   =   strStatus.Controls; 
                                     strStatus.Controls.Add(new   LiteralControl( "test ")); 
                         }   
 为什么当前台页面第二次提交后,cc   并不能获取到 "test "
------解决方案--------------------把 .IsPostBack 去掉 你提交后不执行下面代码 还能获得吗
------解决方案--------------------改成: 
 ControlCollection cc = strStatus.Controls; 
 strStatus.Controls.Add(new LiteralControl( "test "));   
 去掉if (this.IsPostBack),加了这个只会在第一次执行,所以在第2次的时候就不会出现了,这跟EnableViewState没什么关系。 
------解决方案--------------------去掉if (this.IsPostBack)