ActionLink asp.net MVC 3에서 jquery 함수를 호출하는 방법?
actionlink에서 jquery 함수를 호출하는 방법. 내 this.href 결과 : "localhost : 54678/Customer? param = 1"하지만 this.href : "localhost : 54678/Customer/EditCustomer /? param = 1" 고객이 컨트롤러이고 EditCustomer가 동작입니다.
JQuery와 :
$('#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" })
%>
로컬 호스트 : 54678/고객/EditCustomer/PARAM = 1이 어떻게 호출하려면?