I am submitting data to a classic ASP page via Ajax but the receiving page loses some of the parameter values that I have submitted. I use the url of the ajax call to pass parameters. In the ASP page I am reading the parameters from the URL via the Request method. The issue I'm having is that for one of the parameters when I do Request(), it is stripping away the special characters.
For example, if I have 'C++' or 'C&' or '10 + 10', the pluses and & don't appear in the value I am getting from Request(). I also tried doing Request.QueryString() and changing the Codepage value to 65001 but none of these methods worked.
In the ajax call, I see that the value is going in correctly with the special characters all there.
Here is my simple ajax call:
$.ajax({
url: "processUpdateComment.asp?timeIn=" + timeIn + "&computerName=" +
computerName + "&comments=" + comments,
type: "POST",
dataType: "html"
});
The parameters being passed in are just being obtained from html elements via jQuery.