有两个RadioButton按扭。设了单选,
如下:
<asp:RadioButton ID="RadioButton1" runat="server" GroupName="rname" oncheckedchanged="RadioButton1_Click" /><asp:RadioButton ID="RadioButton2" runat="server" GroupName="rname" oncheckedchanged="RadioButton2_Click" />
请问后台如何取得这两个按扭的事件?
下面的没反应 public void RadioButton1_Click(object sender, EventArgs e)
{
if (this.RadioButton1.Checked = true)
{
}
}
如下:
<asp:RadioButton ID="RadioButton1" runat="server" GroupName="rname" oncheckedchanged="RadioButton1_Click" /><asp:RadioButton ID="RadioButton2" runat="server" GroupName="rname" oncheckedchanged="RadioButton2_Click" />
请问后台如何取得这两个按扭的事件?
下面的没反应 public void RadioButton1_Click(object sender, EventArgs e)
{
if (this.RadioButton1.Checked = true)
{
}
}
解决方案 »
- TCP 方式连接读写器异常, 很奇怪哦
- 如果想用C#把数据库文件转成PDM文件,需要怎么做,明白的请说
- Asp.net中可以改变字符对齐方式吗?
- XP 下的Raw Socket源代码,貌似不能直接搬到Win 7下,有人搞过么?
- 如何实现C#向Java窗体表单中自动填入数据?以及读取表单中的数据?
- 如何将以下vb.net代码转为c#
- 如何在webform中对treeview控件操作,包括添加,删除节点(好像和winform中不同的)。谢谢
- 如何手写wcf连接
- 【telnet协议,网络数据收发】TCP 发送后 再接受,获得的数据,前钱数据缺失了一些
- sqlite配合ef6使用时的日期问题
- c#添加excel一用
- for 循环中 webBrowser1.Url 不显示问题请教。
if (!ispostback)
{
//加载数据
}