title: Using jquery to check if POST is successful
body: <p>I am trying to write jquery function that will pop up and say Post was successful! and if not, Post was not successful! How could I use a try catch with inputting some jquery? </p>
  
  <pre><code>@using (Html.BeginForm("Admin", "Home", "POST"))
  {
  &lt;div class="well"&gt;
      &lt;section&gt;
          &lt;br&gt;
          &lt;span style="font-weight:bold"&gt;Text File Destination:&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;
          &lt;input type="text" name="txt_file_dest" value="@ViewBag.GetTextPath"&gt;
          &lt;span style="color:black"&gt;&amp;#160;&amp;#160;&amp;#160;Example:&lt;/span&gt;&lt;span style="color:blue"&gt; \\invincible\\chemistry$\\&lt;/span&gt;
          &lt;br&gt;
          &lt;br&gt;
          &lt;span style="font-weight:bold"&gt;SQL Connection String:&lt;/span&gt;
          &lt;input type="text" name="sql_Connection" value="@ViewBag.GetSqlConnection"&gt;
          &lt;span style="color:black"&gt;&amp;#160;&amp;#160;&amp;#160;Example:&lt;/span&gt; &lt;span style="color:blue"&gt; Server=-&lt;/span&gt;
          &lt;br&gt;
          &lt;br&gt;
          &lt;button class="btn btn-success" type="submit" &gt;Save Changes&lt;/button&gt;
      &lt;/section&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>}</p>