我想让服务器控件RadioButtonList
<asp:RadioButtonList id="rdbtlColumnProperty" runat="server" Width="376px" Height="24px"></asp:RadioButtonList>
的选中项改变来控制另一个服务器控件的显示与否
<asp:DropDownList id="dpdlDept" runat="server"></asp:DropDownList>用javascript的方法怎么来实现?因为用RadioButtonList的SelectedIndexChanged 事件的话会刷新页面,这个方法不好。
<asp:RadioButtonList id="rdbtlColumnProperty" runat="server" Width="376px" Height="24px"></asp:RadioButtonList>
的选中项改变来控制另一个服务器控件的显示与否
<asp:DropDownList id="dpdlDept" runat="server"></asp:DropDownList>用javascript的方法怎么来实现?因为用RadioButtonList的SelectedIndexChanged 事件的话会刷新页面,这个方法不好。
{
if (window.event.srcElement.id== "rdbtlColumnProperty")
{
}
}
var frm=document.Form1;
for (var i=0;i<frm.elements.length;i++)
{
var e=frm.elements[i];
if ((e.name != rdbtlColumnProperty) && (e.type==RadioButtonList ))
{
}