Sto provando a scrivere la funzione jquery che verrà visualizzata e dire che Post ha avuto successo! e se non, Post non ha avuto successo! Come potrei usare un try catch con l'inserimento di alcuni jquery?Utilizzo di jquery per verificare se il test POST ha esito positivo
@using (Html.BeginForm("Admin", "Home", "POST"))
{
<div class="well">
<section>
<br>
<span style="font-weight:bold">Text File Destination:   </span>
<input type="text" name="txt_file_dest" value="@ViewBag.GetTextPath">
<span style="color:black">   Example:</span><span style="color:blue"> \\invincible\\chemistry$\\</span>
<br>
<br>
<span style="font-weight:bold">SQL Connection String:</span>
<input type="text" name="sql_Connection" value="@ViewBag.GetSqlConnection">
<span style="color:black">   Example:</span> <span style="color:blue"> Server=-</span>
<br>
<br>
<button class="btn btn-success" type="submit" >Save Changes</button>
</section>
</div>
}
Come dovrei farlo se sto usando un post helper HTML invece di postare tramite jquery/ajax? –
Mai lavorato su HTML Helper Post. http://api.jquery.com/jQuery.ajax/ –
Quindi c'è un modo per fare ciò che sto cercando di fare? –