后台事件怎么获得不是aps.net控件的radiobutton的值?
我有三个控件,
一个是单选按钮:
<input name= "radiobutton1 " type= "radio " value= "radiobutton "
onclick= "changeAuctionType( 'a ') " checked= "checked " /> 一口价
第二个是asp控件的RadioButton:
<asp:RadioButton ID= "RadioButton2 " runat= "server " GroupName= "money " Text= "交易类型 " />
第三个是提交按钮:
<asp:Button ID= "ButtonSummit " runat= "server " CssClass= "button " Text= "确认无误,提交 " Width= "107px " OnClick= "ButtonSummit_Click " />
现在我要在ButtonSummit_Click事件中获得radiobutton1的值,却不知道怎么调用?
获得asp控件RadioButton2的值很简单,如bool bb=RadioButton2.Checked;
可是怎么获得单选按钮radiobutton1的值呢?
------解决方案--------------------因为这是客户端控件,你需要使用Request.Form[ "radiobutton1 "],如果它的值等于radiobutton,就表示checked了