Asp.Net MVC 응용 프로그램에서 작업 할 때 응용 프로그램에서 양식을 제출하기 위해 jQuery.POST
메서드를 사용하고 있습니다.jQuery.POST - Form.Serialize()로 다른 매개 변수 전달 - Asp.net MVC 3
예컨대 위의 코드에서
jQuery.post('/Product/Save', jQuery(document.forms[0]).serialize(),
function (data) { alert('Product Added Successfully.); }
);
, 나는 .. 다른 매개 변수를 전달 ..의 말
ProductID
을 수 있도록합니다.
그래서, 아이디어, 난 jQuery.POST method
모두 jQuery(document.forms[0]).serialize()
및 ProductID variable
을 전달하려는, 그래서 난 내 controller's action method
모두 Form and ProductID
를 얻을 수 있습니다.
아무도 내가 이것을 할 수 있다고 알려주시겠습니까?
미리 감사드립니다.