我的一个页面有一组连续的RadioButtonList
分别命名为RadioButtonList1到RadioButtonList30
我现在需要将从1到30的所有RadioButtonList的SelectedIndex值相加成一个字符串,并且要保证1到30的顺序不能变,我担心使用遍历Page.Controls[1].Controls会使得顺序会改变,请问还有没有什么更好的办法??
分别命名为RadioButtonList1到RadioButtonList30
我现在需要将从1到30的所有RadioButtonList的SelectedIndex值相加成一个字符串,并且要保证1到30的顺序不能变,我担心使用遍历Page.Controls[1].Controls会使得顺序会改变,请问还有没有什么更好的办法??
解决方案 »
- .net 的母板页使用问题
- sql server2005到处数据,提示出错!
- GRIDVIEW 模版列的计算问题
- 页面返回按钮的问题,求教
- user.identity.name 和 membership.getuser().name 的区别
- 为什么GridView每一行的控件ID可能存在相同的情况?
- 在VS.net中开发asp.net时遇到DataGrid控件无法显示的问题(新手)
- 使用distinct查询实现分页怎么写(order by有冲突)
- MVC 如何给RadioButton分组
- 求助 未能加载文件或程序集“vmime.NET”或它的某一个依赖项。未能验证强名称签名。此程序集可能已被篡改,或者已被延迟签名,但没有用正确的私钥进行完全签名。
- 提交后如何打印出已复选的值!!!
- 请教:关于在客户端控件动态增加一个属性的问题
RadioButtonList[] mylist={RadioButtonList1,RadioButtonList2,RadioButtonList3};
string mystring="";
for(int i=0;i<3;i++)
{
mystring=mystring+mylist[i].SelectedIndex;
}
Response.Write(mystring);
有点麻烦