模态弹出单片机
我在网络应用程序上工作是基于母版页所以我在主页上有我的面板和一个虚拟按钮但我需要知道的是如何让modalpopup从检查一个单选按钮获得显示?
i尝试了这个但现在无线电按钮不起作用!
我的modalpopupextender正在使用一个虚拟按钮
im working on a web app is based on masterpage so i have my panel on the masterpage and a dummy button but what i need to know is how can i make the modalpopup get display from checking a radiobutton??
i tried this but now the radiobutton dont work!
and my modalpopupextender is using a dummybutton
<asp:RadioButton ID="rbtn_si1" runat="server" Style="position:absolute; top: 36px; left: 410px;" Text="Si" OnClick="ShowPopUp(this)"/>
<script lang="javascript" type="text/javascript">
function ShowPopUp(obj) {
if (obj.checked) {
$find('ModalPopupExtender2').show();
}
}
</script>
find(' ModalPopupExtender2')。show();
}
}
< / script >
find('ModalPopupExtender2').show(); } } </script>
没有即时通讯使用ajax modalpopupextender,我之前用过但是现在用一个按钮不知道如何把它放在
no im using ajax modalpopupextender, i have used before but with a button now with the radiobutton dont know how to put it
单选按钮仍然是按钮。看起来你从某人的代码示例中机械地执行了弹出窗口,但没有理解。现在,是时候带上旧代码并真正理解它是如何工作的,这将解决您的新问题。单选按钮的工作方式完全相同。您可能只需要知道单选按钮的已检查状态。例如,请参阅: http://stackoverflow.com / questions / 3869535 /如何获取所选择的单选按钮 - 值使用-js [ ^ ]。
Radio button is still a button. It looks like you did the popup mechanically, from someone's code sample, without understanding. Now, it's the time to take you old code and really understand how it works, that will solve your new problem. Radio button will work exactly the same way. You may only need to know the checked status of the radio button. See, for example: http://stackoverflow.com/questions/3869535/how-to-get-the-selected-radio-button-value-using-js[^].