【发布时间】:2012-08-23 11:16:45
【问题描述】:
如何从 actionlink 调用 jquery 函数。我的 this.href 结果: "localhost:54678/Customer?param=1" 但我需要 this.href: “本地主机:54678/Customer/EditCustomer/?param=1” 客户是控制器,EditCustomer 是操作。
查询:
$('#mylink').click(function (e) {
jQuery('#dialog').dialog('open');
var iframe = $('#frame');
alert(this.href);
$(iframe).attr('src', this.href);
e.preventDefault();
});
查看:
<%= Html.ActionLink(
"Click",
"Index",
new { param = 1 },
new { id = "mylink" })
%>
localhost:54678/Customer/EditCustomer/?param=1 这个怎么调用?
【问题讨论】:
标签: c# jquery asp.net-mvc asp.net-mvc-3 jquery-ui