Javascript asp net mvc阻止停止关闭jQuery对话框

Javascript asp net mvc阻止停止关闭jQuery对话框,javascript,asp.net-mvc,Javascript,Asp.net Mvc,如何在提交后停止关闭javascript中的弹出窗口 当我单击Save时,它们将插入SQL,对话框关闭。如何在不关闭对话框的情况下完成此操作 index.cshtm $("#dialog-edit").dialog({ title: 'name', autoOpen: false, resizable: true, height:550, w

如何在提交后停止关闭javascript中的弹出窗口

当我单击Save时,它们将插入SQL,对话框关闭。如何在不关闭对话框的情况下完成此操作

index.cshtm

 $("#dialog-edit").dialog({
               title: 'name',
               autoOpen: false,
               resizable: true,
               height:550,
                 width: 658,
                 maxHeight: 865,
                 maxWidth: 658,
               show: { effect: 'drop', direction: "up" },
               modal: true,
               draggable: true,
               open: function (event, ui) {
                   $(".ui-dialog-titlebar-close").hide();
                   $(this).load(url);
               }
           });
控制器

public ActionResult Insert()
{
    return View();
}
视图模型

@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "infoForm" })) 
{  
    @(Html.TextAreaFor(model => model.name))</p>
    <input type="submit" value="Save" id="Submit" onclick="hideshow()"/>  
}
@使用(Html.BeginForm(null,null,FormMethod.Post,new{id=“infoForm”}))
{  
@(Html.TextAreaFor(model=>model.name))

}
您的问题需要更清楚。可能会使用更多的句子和标点符号?您的表单在对话框中吗?表单是分隔符,请给我一个简单的示例,说明如何在提交后不关闭用JavaScript创建的弹出窗口