show javascript alert from controller's action in asp.net mvc
-
06-07-2019 - |
Question
Is it possible to show a javascript alert message from controller's action in asp.net mvc(C#)?
Solution
You could pass a variable to the view. If it exists or is set to true, execute your javascript...
OTHER TIPS
No, controller actions are executed on the server side. Wheras Javascript is executed on the client side.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow