Hi,
I am stuck on a scenerio I can not seem to figure out despite all of the solutions I have found on the web, hoping someone has come across this and can help me out!
I am using the bootstrap modal popup to change some data. However, when I exit the modal and then bring it back up, it does not update the new changed information. I have read that this has to be removed so it will update it, but for some reason I can not get that to work. The code that I am using is:
In view page having modal which is calling a partial view on a button click and button has unique id every time it clicks.
<div id="myModal" class="modal fade" style="display:none;" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Send Enquiry</h4>
</div>
<div class="modal-body">
<div class="tab-pane fade active in" id="Retirement1">
@{Html.RenderPartial("~/Views/Advisor/SendEnquiry.cshtml", new LeadsCRM.Entities.Clients());}
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
<script>
$('a.modalLink').click(function(e) {
e.preventDefault();
$('#myModal')
.removeData()
.html('loading....')
.load($(this).attr('http://localhost:49419/Advisor/GetAllAdvisors'))
.modal({show:true,backdrop:'static'});
});
</script>
</div>
</div>
</div>
Please reply as soon as possible.