http://www.txyxzx.com/Untitled-1.html这个是我要实现的效果连接。 先说说要做什么吧。我里面放的是一个datalist 控件。。里面数据就是那些。。但是我现在到外面放的有一个按钮 ,当我点了单选按钮的时候。我在下面的按钮事件中怎样或的值。。主要的是我不明白怎样或的三组check中哪组被选中了选中的值是什么。。也可以只选择其中一组但是不能一组不选。。看看我自己都说浑了。。不太明白的地方。指出来在说说。。帮帮忙在线等效果绝非是打广告。
解决方案 »
- 那个控件是一个html控件,input type="File",是用来上传图片的,已经加上runat="server"标签转为服务器控件,上传BUTTON失效了
- 无数据库代码,怎样能监控到信息更新了?
- asp.net有什么好的加密混淆工具?
- iframe页面跳转问题?
- 看下这个语句错在哪
- 寻:远程投审稿系统
- 象动网这样,鼠标悬停显示提示信息的样式用什么方法改一下?
- 求这种jquery图片滚动的代码或者各种。。
- TreeView问题
- DataGrid控件
- Coolite的GridPanel数据显示不能用SqlDataReader来操作???
- UpdatePanel + UpdateProgress +gridview导出Excel!!! 求解!!
直接table画不行么?
你如果判断必选什么的 用JS做验证..
然后看不明白你在说什么...
接下去的就是 判断 checkbox 是否选中了
<ItemTemplate>
<asp:RadioButton ID="RadioButton1" runat="server" Text="a" />
<asp:RadioButton ID="RadioButton2" runat="server" Text="a1" />
</ItemTemplate>
</asp:DataList>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
protected void Button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < DataList1.Items.Count; i++)
{
RadioButtonList rbl = DataList1.Items[i].FindControl("DataList1") as RadioButtonList;
string value = rbl.SelectedValue;
}
}