0
我正在使用C#ASP .NET 4.5进行webform工作。当我单击后退按钮时出现Bootstrap模式
我的模式在很大程度上工作得很好。我有一个名为CustomerLookup.aspx的页面,它使用引导模式。但是,当我关闭模式,导航到我的网站的主页,然后单击返回按钮返回到我的CustomerLookup.aspx页面 - 模式出现。
我不知道它是否有所作为,但这两页使用不同的母版页。
我使用的引导3.0.0
这里是我的Site.Master
function openModal() {
$('#uxModal').modal('show');
}
这里的JS代码是我的代码隐藏按钮单击事件弹出我的模式:
protected void uxTestButton_Click(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "openModal();", true);
}
请分享显示模态对话框的代码。 –