ASP .net MVC - Alert using Javascript
I am new to MVC. I was using javascript alert in previous applicati开发者_如何学运维on from coding. How to give an alert from Controller?
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.
精彩评论