Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 单击“上一步”按钮时出现引导模式_C#_Asp.net_Twitter Bootstrap_Bootstrap Modal - Fatal编程技术网

C# 单击“上一步”按钮时出现引导模式

C# 单击“上一步”按钮时出现引导模式,c#,asp.net,twitter-bootstrap,bootstrap-modal,C#,Asp.net,Twitter Bootstrap,Bootstrap Modal,我正在使用C#ASP.NET4.5开发一个Web表单 我的modal在大多数情况下工作得很好。我有一个名为CustomerLookup.aspx的页面,它使用引导模式。但是当我关闭模式时,导航到我的站点主页,然后单击“上一步”按钮返回到我的CustomerLookup.aspx页面-模式出现 我不知道这是否有区别,但这两页使用不同的母版页 我正在使用Bootstrap3.0.0 这是我的站点中的JS代码 function openModal() { $('

我正在使用C#ASP.NET4.5开发一个Web表单

我的modal在大多数情况下工作得很好。我有一个名为CustomerLookup.aspx的页面,它使用引导模式。但是当我关闭模式时,导航到我的站点主页,然后单击“上一步”按钮返回到我的CustomerLookup.aspx页面-模式出现

我不知道这是否有区别,但这两页使用不同的母版页

我正在使用Bootstrap3.0.0

这是我的站点中的JS代码

function openModal() {            
        $('#uxModal').modal('show');
    }
以下是按钮单击事件中的我的代码,以弹出我的模式:

protected void uxTestButton_Click(object sender, EventArgs e)
    {
        ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "openModal();", true);
    }

当我使用HTML按钮控件时,我没有遇到同样的问题-仅与asp:button服务器控件一起使用。我要完全摆脱服务器控件,就像我应该做的那样。

请分享显示模式对话框的代码。