Question

Is it possible to show a javascript alert message from controller's action in asp.net mvc(C#)?

Was it helpful?

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
scroll top