Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc Ajax ActionLink空白页_Asp.net Mvc - Fatal编程技术网

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

或者,您可以使用一些客户端库在模式对话框(如小部件)中显示结果