Is it possible to show a javascript alert message from controller's action in asp.net mvc(C#)?
+3
A:
You could pass a variable to the view. If it exists or is set to true, execute your javascript...
Paul
2009-10-23 15:03:22
I have used json to call the action and execute the javascript.
Prasad
2009-11-23 06:18:02
+1
A:
No, controller actions are executed on the server side. Wheras Javascript is executed on the client side.
çağdaş
2009-10-23 15:07:03