Thursday, January 23, 2014

how to show alert message in mvc?

 if (null != ViewBag.AlertMessage)
   {
      <script type="text/javascript">
          alert("@ViewBag.AlertMessage");
      </script>
   }


Value in ViewBag.AlertMessage are  assign in controller.

No comments:

Post a Comment