I am having issues in passing the Parameters to my Webservice. I am passing two parameters that my WS is expecting in the code as:
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "http://localhost/ws/MobileWS.asmx/GetMenuItems",
dataType: "json",
contentType: 'application/json; charset=utf-8',
data:
}
q: { 'MenuID': '5', 'VersionID': '2' }
}
}
},
The parameters are passed with special characters as:
http://localhost/ws/MobileWS.asmx/GetMenuItems?q%5BMenuid%5D=5&q%5BVersionID%5D=2
How can I clean it up to get it as:
http://localhost/ws/MobileWS.asmx/GetMenuItems?Menuid=5&VersionID=2
Thanks,
Chandu
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "http://localhost/ws/MobileWS.asmx/GetMenuItems",
dataType: "json",
contentType: 'application/json; charset=utf-8',
data:
}
q: { 'MenuID': '5', 'VersionID': '2' }
}
}
},
The parameters are passed with special characters as:
http://localhost/ws/MobileWS.asmx/GetMenuItems?q%5BMenuid%5D=5&q%5BVersionID%5D=2
How can I clean it up to get it as:
http://localhost/ws/MobileWS.asmx/GetMenuItems?Menuid=5&VersionID=2
Thanks,
Chandu