Closed sinanbozkus closed 5 years ago
If I use a bootstrap modal with jquery load, there is no problem. The problem is because of the eModal.
I have same problem - it works after refresh page but after I go to other page and back (with hashtag) it doesn't work any more.
I not sure about all implementation, but regarding what I can see, we are attaching to the element that will be replaced when refresh!
var btnSample= $("#txtBtnSample");
btnSample is not in the dom anymore!
I'm using eModal with a Partial View (ASP.NET Core). And I'm calling the partial view like that.
My main page:
I have some javascript codes at the end of the partial view. (sending an ajax request etc.) These codes are generally working at the first request. If I refresh the page and open the modal again, these codes don't work anymore.
My partial: