if you don't put them inside a <form>, their name/value pairs are not transmitted back to the server side when you post/submit the form, so the server side code cannot process what you are doing

解决方案 »

  1.   

    如果checkbox,listbox,DropDownList,button
    都是runat=server的话,控件中的数据必须post到服务器上处理,所以要在form里
    如果不是runat=server,就没有关系了
      

  2.   

    checkbox,listbox,DropDownList,button等控件的数据要到服务器处理的话..都是通过form的..如果不这样的话就没办法处理这些数据!~
      

  3.   

    checkbox,listbox,dropdownlist,button里都需要post到server上去处理,而form相当于一辆客车把你载到服务器