TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Aghil Varghese
NA
61
12.8k
How to pass model and id using ajax call
Aug 5 2015 7:41 AM
How to get the data using ajax call containing model and rowFeeId together in controller.when i am using this function i am getting the model but the rowFeeId is null.
Ajaxcall
function DeleteFee(_this) {
var par = $(_this).closest('tr');
var rowFeeId = par.find('.RowFeeId').val();
$.ajax({
url:
'@Url.Action
("DeleteInvoiceFee", "Invoice")',
dataType: "Html",
type: "POST",
traditional: true,
data:{ 'RowFeeId': rowFeeId, 'model': $('#FormSubmitInvoice').serialize() },
success: function (result) {
// alert(result);
$('#addFeedetailsSection').html(result);
},
error: function (xhr) {
alert('error');
}
//dataType :
})
}
controller
public ActionResult DeleteInvoiceFee(InvoiceViewModel model,string RowFeeId)
{
................
}
Reply
Answers (
2
)
ajax control tool kit for vs 2005
First Ajax Function Value Compare Second Ajax Function?????