MVC自带异步请求

@{
    Layout = null;
}





    
    MicrosoftAjax
    
    
    


    
@using (Ajax.BeginForm("GetDate", "Ajax", new AjaxOptions(){Confirm ="您是否要提交吗?",HttpMethod = "Post",InsertionMode = InsertionMode.InsertAfter,UpdateTargetId = "result",OnSuccess="afterSuccess",LoadingElementId = "loading"})) {
用户名:
密码:
}

你可能感兴趣的:(ASP.NET)