这里我有一组动态组合框。
<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);
}
然后如何获取各个组合框的值?