This is the way to get alert box in mvc controller in simple and easy way
in controller just write:
var script = "<script>alert('Hi');</script>";
Response.Write(script);
in controller just write:
var script = "<script>alert('Hi');</script>";
Response.Write(script);
No comments:
Post a Comment