Skip to content
Advertisement

Call Partial View with Modal using onClick in a button ASP.NET mvc

I want from a button to call a partial view using that has a modal using onClick for some reason it’s not working the function.

Let me know what I can change to make it work!.

Button

JavaScript

Script

JavaScript

Controller

JavaScript

View with Modal

JavaScript

Advertisement

Answer

Example:

JavaScript

Then function

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement