可以用runat,这样就服务端就能读了,或改为服务器的CheckBox

解决方案 »

  1.   

    <input type="checkbox" name="chkStaffId"  onclick="change();" value="1"><script>
    function change()
    {
    document.all.chkStaffId.value="2";
    }
    </script>
      

  2.   

    因为
    <input type="checkbox" name="chkStaffId" value="1">
    这句是服务端向某个标签上输出的啊~~
      

  3.   

    aspx:
    <input type="checkbox" name="chkStaffId" value="1" id='1'>
    <input type="checkbox" name="chkStaffId" value="1" id='2'>
    cs:
    for(int i=0;i<Request["chkStaffId"].GetValues[i].GetValue(i).ToString();i++)
    {
      //处理选中的。
    }
      

  4.   

    呵呵,打错字了,应该是:
    for(int i=0;i<Request.From.GetValues("chkStaffId").GetValue(i).ToString();i++)
    {}
      

  5.   

    或者是:
    for(int i=0;i<Reqest.QueryString.GetValues("chkStaffId").GetValue(i);i++)
    {
    }