1

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

2 Answers 2

4

You could pass a variable to the view. If it exists or is set to true, execute your javascript...

Sign up to request clarification or add additional context in comments.

1 Comment

I have used json to call the action and execute the javascript.
1

No, controller actions are executed on the server side. Wheras Javascript is executed on the client side.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.