从代码隐藏和浏览器返回,转发的bootstrap模式 [英] bootstrap modal from code-behind and browser back,forward
问题描述
嗨
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屋!