Jquery 破坏引导模式

Jquery 破坏引导模式,jquery,twitter-bootstrap-3,bootstrap-modal,Jquery,Twitter Bootstrap 3,Bootstrap Modal,我想在每次关闭/隐藏和重新打开新内容时销毁引导模式。我试图在.net中实现这一点。请在将此标记为副本之前阅读 在我的主页上, 模态as的标记 <div id="modal" class="modal fade"> <div class="modal-dialog" role="dialog"> <div class="modal-content" data-backdrop="static">

我想在每次关闭/隐藏和重新打开新内容时销毁引导模式。我试图在.net中实现这一点。请在将此标记为副本之前阅读

在我的主页上, 模态as的标记

<div id="modal" class="modal fade">
        <div class="modal-dialog" role="dialog">
            <div class="modal-content" data-backdrop="static">
                <div id="modalContent">
                </div>
            </div>
        </div>
    </div>
在我的aspx页面中,我有以下代码打开模式,如下所示

<a runat="server" id="lnkAssignInformed" data-modal="" class="btn btn-info hidden-print assignInformed">Assign Informed</a>&nbsp;
问题是,即使在尝试销毁隐藏事件上的模式后,当我重新打开模式时,仍然会看到第一次打开模式时显示的模式中的数据

我还尝试了以下代码,但没有发现任何区别

 $("#modal").on('hide.bs.modal', function () {
                $('#modal').data('bs.modal', null);
            });
我目前正在IE-11中尝试这一点。没有在其他浏览器中测试过


是否有任何方法可以在每次单击锚定标记时触发加载?任何帮助都将不胜感激

我自己解决了这个问题。问题在于Jquery.load()缓存结果。我能够使用以下代码销毁缓存。在此之后,对话框每次都显示新内容

 $("a[data-modal]").on("click", function (ev) {
            BlockPage("Loading Dialog");
            $("#modalContent").load(this.href,'f' + (Math.random()*1000000), function () {
                $("#modal").modal({
                    cache:false,
                    backdrop: 'static',
                    keyboard: false
                }, "show");
            });
            ev.preventDefault();
            return false;
        });          
 $("#modal").on('hide.bs.modal', function () {
                $('#modal').data('bs.modal', null);
            });
 $("a[data-modal]").on("click", function (ev) {
            BlockPage("Loading Dialog");
            $("#modalContent").load(this.href,'f' + (Math.random()*1000000), function () {
                $("#modal").modal({
                    cache:false,
                    backdrop: 'static',
                    keyboard: false
                }, "show");
            });
            ev.preventDefault();
            return false;
        });