title: MVC 4 razor alert box
body: <p>When i m showing alert, page dissapears. How can i prevent page to be dissapeared while showing alertbox.
  I m printing alert as follows:</p>
  
  <pre><code>    @{
          if (ViewData["result"] == "false")
          {
              ViewData["result"] = null;
              &lt;script type="text/javascript" language="javascript"&gt;
                  alert("Invalid user name or password");
              &lt;/script&gt;
          }
      }
  </code></pre>