as long as 1. You didn't set EnableViewState= false2. upon postback, call LoadControl again in Page_Load or beforethe viewstate will be there

解决方案 »

  1.   

    我的default页的结构Page----UserFrame ServerControl--
                                     |
                                      ----LoadControl("header.ascx")header.ascx------
                     |
                     ------TextBox
                     |
                     ------Button其中UserFrame ServerControl是我的一个自定义控件,能根据属性值加载一组用户控件(”header.ascx“),整个default只有一个UserFrame控件
    问题出现了:点击Button刷新页面,TextBox的值不断自动的添加,页面:http://202.200.225.86/newblog/default.aspx
      

  2.   

    UserFrame 的源码见:http://community.csdn.net/Expert/topic/3203/3203809.xml?temp=.6834986
    一起结帖