复选框和modalpopup扩展程序的问题 [英] problem with checkbox and modalpopup extender

查看:73
本文介绍了复选框和modalpopup扩展程序的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在gridview中有gridview和checkbox,当我点击复选框然后如何显示modalpopup extender.plz帮帮我?

I have gridview and checkbox in gridview when i click on checkbox then how to show modalpopup extender.plz help me?

推荐答案

HI,有两种方法可以跟着去吧。一个是使用代码,另一个是使用jquery。





显示后面的代码弹出窗口,使用 CheckedChanged 事件的asp:chceckbox。

然后简单(来自代码)



there are two methods to go with. one is using code behind and other is using jquery.


to show popup from code behind, use CheckedChanged event of asp:chceckbox.
then simply (from code behind)

YourModalPopupExtender.Show();





使用jquery,执行此操作





by using jquery, do this


' #myCheckBox') .click( function ()
{
var thisCheck =
('#myCheckBox').click (function () { var thisCheck =


this );
if (thischeck.is(< span class =code-string>' :checked'))
{
// show popup
(this); if (thischeck.is (':checked')) { //show popup


这篇关于复选框和modalpopup扩展程序的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆