title: How to show an Alert Box in controller after performing some mathematical operation.
body: <p>I want to display <code>Alert Box</code> after performing some mathematical operation inside <code>controller</code>.<br>
  I want to code it into controller, but how to do... till now i tried with:</p>
  
  <pre><code>return Content("&lt;script language='javascript' type='text/javascript'&gt;alert('Total of Debit and Credit balance does not Tally');&lt;/script&gt;");
  return JavaScript("&lt;script&gt;alert(\"some message\")&lt;/script&gt;");
  return JavaScript("&lt;script&gt;alert(\"some message\")&lt;/script&gt;");
  return Content("&lt;script language='javascript' type='text/javascript'&gt;alert('Hello world!');&lt;/script&gt;");
  return Content("&lt;script language='javascript' type='text/javascript'&gt;alert('Data Already Exists');&lt;/script&gt;");
  return RedirectToAction("");
  ViewBag.DataExists = true;
  return RedirectToAction("");
  </code></pre>
  
  <p>All alternatives i tried...</p>