There's nothing stopping you from working with URLs in code using standard string functions. If you want to create a URL, you should use the URL object. On the other hand, if you want to analyze a URL ...
$.ajax({ data: criteria, datatype: "application/json", type: "POST", url: "MI/DeleteItem/" + ItemID, cache: false, success: function (result) {... You've seen these ...