天天看点

C#后台如何获取HTML单选框radio的值(在后台生成的控件)

A:"<input type=\"radio\" name=\"item_" + tid + "\" value=\"" + reid + "\"  runat=\"server\" id=\"ra_" + reid + "\">";

 后台生成的Radio控件,生成的控件ID都加了唯一标识,如何在后台取到页面选中的Radio呢?

获取方式:

string s = Request.Form["item_"+tid  ];