首页 > 解决方案 > 这里我有cshtml和js ajax ..我有两个站点..第一个站点打开了弹出模式...另一个站点没有打开弹出模式

问题描述

在这里我有cshtml和js ajax ..我有两个站点..第一个站点打开了弹出模式...另一个站点没有打开弹出模式为什么?

<div class="modal fade bs-example-modal-lg" id="addNote" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-large">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title"> Notes for <span id="noteTitle">@Model.TitleName</span></h4>
            </div>
        </div>
   </div>

 <span class="float-right btn" id="btnnote" onclick="openAuthNotePopup();" style="padding:0px;"><img title="Add Note" width="25" height="25" alt="Add Note" src='@Url.Content("~/Content/images/sticky-note2.png")' /></span>   


 function openAuthNotePopup() {
    var memberNotesUrl = '@(Url.Action("CreateNote", "Notes", new { area = AreaName.Notes}))' + "?modulePageID=" + '@((int)Enums.Page.NoteAuthorizations)' + "&id=" + '@(Model.AuthorizationID)' + "&memberOrProviderID=" + '@(Model.MemberID)' + "&titleName=" + '@(titleName)';
    $("#divNotes").html("");
    $.ajax({
        type: 'GET',
        url: memberNotesUrl,
        success: function (data) {
            $("#divNotes").html(data);
            $('#addNote').modal()
            $('#addNote').modal('show')
        }
    });
}   

标签: c#ajaxasp.net-mvcapibootstrap-4

解决方案


推荐阅读