I am getting jquery error when i am passing # contain
var url = "/CheckVol/SaveItem?status=" + status + "&name=" + name ;
$.post(url, function(data) {
});
here name contain ‘my name # pankaj # lohani # india’ , which is creating error.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you use spaces, #, or ? and some other character too. In a querystring value then they must be encoded. the # character can be encoded uisng %23. However Nick’s comment is right on. Your already doing a post. Why not just include your Querystring in your posted data?
You need to encode the # using %23
something like this