C#中的动态组合框值

时间:2015-03-14 07:12:03

标签: c# asp.net combobox

这里我有一组动态组合框。

<select id='attend_1' class='form-control' name='attend_1' style='width:100px;'><option value='1'>Present</option><option value='0'>Absent</option></select>
<select id='attend_2' class='form-control' name='attend_2' style='width:100px;'><option value='1'>Present</option><option value='0'>Absent</option></select>

在C#中,获取值时,

for(int i;i<=2;i++) 
{
 response.write("attend_"+i.SelectedValue);

}

然后如何获取各个组合框的值?

0 个答案:

没有答案