As mentioned in the comment since you are not passing the parameter to server, it is failing with 500 Internal Error . In order to send the parameter from client side you have two ways:-
1) Either send the parameter as route value in Action
method like this:-
read.Action("_AdvancedSearchResult", "ContactList", new { cont = 2 }) //Send param
2) You can use the Data
method to send params:-
read.Action("_AdvancedSearchResult", "ContactList").Data("additionalData")
and return the data from JS like this:-
function additionalData{
return {
cont: 2
};
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.