开发者

ASP .net MVC - Alert using Javascript

开发者 https://www.devze.com 2023-03-28 15:55 出处:网络
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 f

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消