本帖最后由 Baykermr 于 2010-04-15 11:47:15 编辑

解决方案 »

  1.   

    简单问题复杂化本来JS可以很轻松的实现,非得要postback来postback去~~~
      

  2.   

    if (!IsPostBack)            {    
                int enteid = Convert.ToInt32(Request.QueryString["id"]);                Bind_rptente();            }          
      else             {          
          Bind_rptente();    else里的绑定,把所有选中项都冲掉了,去掉Else试试if (!IsPostBack)            {    
                int enteid = Convert.ToInt32(Request.QueryString["id"]);                Bind_rptente();            }  
      

  3.   


    去掉else{}里的绑定,就成复选了。可以选多个了
      

  4.   


    js是可以实现,我要在选择后还要有操作,这操作是js不好实现的。所以我选择服务器控件
      

  5.   

    if (!IsPostBack) { BindData();}
    设置RadioButton的AutoPostBack属性为truefunction ChangeChk(ctl)
        {
          var theBox=ctl;
              var elem=form.elements;
              for(i=0;i<elem.length;i++)
              {
            if(elem[i].type=='radio')
            {
                   if(elem[i].id==theBox.id)
                   {
                      elem[i].checked=true;
                   }
                   else
                   {
              elem[i].checked=false;
                   }
                   }
                   }
            }