已检查radiobuttonlist中的问题 [英] problem in radiobuttonlist checked
本文介绍了已检查radiobuttonlist中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
protected string GMap1_Click1(object s, GAjaxServerEventArgs e)
{
if (RadioButtonList1.SelectedIndex==0)
{
return "radio first checked";
}
else if (RadioButtonList1.SelectedIndex == 1)
{
return "radio second checked";
}
else
{
return "no Selected";
}
}
当我使用按钮点击时
事件比它会返回真值但当我使用gmap_click事件时它将只返回没有选择
plz帮助我
when i using button click event than it will return true value but when i using gmap_click event than it will return only no selected
plz help me
推荐答案
执行你的以这种方式行动
Perform Your action in this way
<radiobuttonlist id="rblcat" runat="server">
<asp:listitem text="Circle" value="0" xmlns:asp="#unknown">
<asp:listitem text="Polygon" value="1">
现在开.cs文件jst do
now on .cs file jst do
if(convert.tostring(rblcat.selectedvalue)=="0")
{
return Circle
}
else if(convert.tostring(rblcat.selectedvalue)=="1")
{
return Polygon
}
试着让我知道
这篇关于已检查radiobuttonlist中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文