vbscript ASP NETMVCEnvíopormrioAjax - Ajax.BeginForm
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript ASP NETMVCEnvíopormrioAjax - Ajax.BeginForm相关的知识,希望对你有一定的参考价值。
'Ejemplo formulario AJAX
'VISTA
@Using Ajax.BeginForm("CreateFromLanding", "Registro", Nothing, New AjaxOptions With {
.HttpMethod = "Post",
.InsertionMode = InsertionMode.Replace,
.UpdateTargetId = "js-formClient",
.OnBegin = "toggleSpinner()",
.OnSuccess = "toggleSpinner()"
}, New With {
.class = "contact-form"
})
'..Form
End Using
'CONTROLADOR
<HttpPost>
Public Function CreateFromLanding(model As SolicitudRegistro, col As FormCollection) As ActionResult
'..Do what you want to do
Return PartialView("~/Views/Account/_landing-register-ok.vbhtml")
以上是关于vbscript ASP NETMVCEnvíopormrioAjax - Ajax.BeginForm的主要内容,如果未能解决你的问题,请参考以下文章