由于在容器中的RadioButton的GroupName 会变,会自动加上序号,所以点选失效。
我们可以自己手动输出<input>实现点选


模版列中加以个label,id为lblradio  
  在ItemDataBound绑定事件中写  
  Label   lblradio=   (Label)e.Item.FindControl("lblradio");  
  lblradio.Text   =   "<input   type=radio   name='myradiogroup'   value="   +   e.Item.Cells[1].Text   +   ">";  
   
  接收选择的值  
  string   str   =   Request.Form["myradiogroup"];    

相关文章:

  • 2022-12-23
  • 2021-09-14
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
猜你喜欢
  • 2021-12-14
  • 2022-03-02
  • 2021-10-08
  • 2021-11-24
相关资源
相似解决方案