从代码隐藏和浏览器返回,转发的bootstrap模式 [英] bootstrap modal from code-behind and browser back,forward

查看:88
本文介绍了从代码隐藏和浏览器返回,转发的bootstrap模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i来自代码隐藏的bootstraps模式,我的代码:



hi
i call bootstraps modal from code-behind,my code:

Page.ClientScript.RegisterStartupScript(this.GetType(), "myScript", "initMyModal('" + timeRemain + "');", true);

<在aspx页面中








in aspx page:

function initMyModal(timeRemain) {
        $(".modal-body").html(timeRemain);
        $('#myModal').one().modal('show');
}





我的问题是当用户在浏览器中点击按钮然后点击转发模式

再次显示。



当用户点击浏览器中的前进按钮时,如何才能显示模式



感谢您的帮助



my problem is when user click on button back in browser and then click forward the modal
displayed again.

how can perevent of display modal when users click on forward button in browser

thanks for your help

推荐答案

。 modal-body)。html(timeRemain);
(".modal-body").html(timeRemain);


' #myModal')。one()。modal(' show');
}
('#myModal').one().modal('show'); }





我的问题是当用户在浏览器中点击按钮然后点击转发模式

再次显示。



当用户点击浏览器中的前进按钮时,如何才能显示模式



感谢您的帮助



my problem is when user click on button back in browser and then click forward the modal
displayed again.

how can perevent of display modal when users click on forward button in browser

thanks for your help


这篇关于从代码隐藏和浏览器返回,转发的bootstrap模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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