In my ASP.NET MVC Partial View I am using a Bootstrap Modal by showing some DropdownList. In same PartialView I am creating some buttons dynamically according to the data fetch with same name. On Button click I am calling a javascript function, inside that function I showing modal like:
$("#MyModal").show();
My problem is when I click on the first button modal shows correctly but without refreshing the page when I click on the some other button Modal disappears and blank screen will appears and we cannot do anything at that time. How to show the same modal on each button click? Please help me to fix this issue.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…