dotnettraine: alert box in controller

Search This Blog

Sunday 7 December 2014

alert box in controller

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);

No comments:

Post a Comment