I am new to MVC. I was using javascript alert in previous application from coding. How to give an alert from Controller?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In general, you could just have your controller set a boolean flag in ViewData and have your view render a script tag with the alert statement if that boolean flag is true.