日期:2014-05-17 浏览次数:20581 次
<asp:HiddenField ID="hdn_chklist" runat="server" />
<asp:RadioButtonList ID="chkList" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
<asp:ListItem Text="平均" Value="平均">平均</asp:ListItem>
<asp:ListItem Text="随机" Value="随机">随机</asp:ListItem>
<asp:ListItem Text="备注" Value="备注">备注</asp:ListItem>
</asp:RadioButtonList>
<td sizset="1" nodeIndex="7" sizcache05861207381041069="38"> //在第7列中
<input name="ctl00$head$GridView1$ctl02$hdn_chklist" id="ctl00_head_GridView1_ctl02_hdn_chklist" type="hidden" value="备注"/>
HiddenField dd = GridView1.Rows[i].Cells[7].FindControl("hdn_chklist") as HiddenField;
ProductsColor = dd.Value; //取到的值是空的