如何在每次回发时停止隐藏模态弹出窗口 [英] How to stop hide a modal popup on every postback

查看:62
本文介绍了如何在每次回发时停止隐藏模态弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个ajax basex模式弹出窗口,有两个girdview,可以更新和删除记录,并有取消按钮。我想隐藏模态弹出窗口,只需单击取消按钮。但是当我点击gridview上的更新或删除按钮时自动消失。

I have developed a ajax basex modal popup having two girdview which can update and delete records and have cancel button.I want to hide the modal popup only click on the cancel button.But when i click on update or delete button on gridview the disappear automatically.

推荐答案

使用ajax(jquery)发布数据以便删除和更新...



Use ajax(jquery) to post the data for deleting and updating...


.ajax({
url:yoururl,
type: ' POST'
data:
.ajax({ url: yoururl, type: 'POST', data:


' #your form Id')。serialize(),
async: false
成功: function (结果){
if (result.Success ){

// 写下您的保存后事件

}

}
});
('#your form Id').serialize(), async: false, success: function (result) { if (result.Success) { // write your after save event } } });





序列化,你必须使用json2。



for serializing, you have to use json2.


这篇关于如何在每次回发时停止隐藏模态弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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