Asp.net mvc Ajax ActionLink空白页
我试图在空白的“新建”选项卡页中打开我的数据。但是,我下面的代码无法在空白页中打开 那么我想念什么呢Asp.net mvc Ajax ActionLink空白页,asp.net-mvc,Asp.net Mvc,我试图在空白的“新建”选项卡页中打开我的数据。但是,我下面的代码无法在空白页中打开 那么我想念什么呢 Ajax.ActionLink("Show","Customer", new { MusteriId = DataBinder.Eval(c.DataItem, "CustomerId") }, new AjaxOptions { //UpdateTargetId = "Customer", HttpMethod = "POST", }, new { target = "_blank" }));
Ajax.ActionLink("Show","Customer",
new { MusteriId = DataBinder.Eval(c.DataItem, "CustomerId") },
new AjaxOptions
{
//UpdateTargetId = "Customer",
HttpMethod = "POST",
}, new { target = "_blank" }));
任何帮助都将不胜感激。
Ajax.ActionLink
向服务器发出Ajax请求,并阻止链接上的任何默认操作,例如在新选项卡中打开它。如果希望target=“\u blank”
属性产生一些效果,可以使用Html.ActionLink
或者,您可以使用一些客户端库在模式对话框(如小部件)中显示结果