javascript - XmlHttpRequest with asp.net -
i try send request ashx file.but have character problem.
problem when send request firefox or crome no problem when try send ie cant
send. send "Ç" character on server side cant it.
myrequest.open("get", "/search.ashx?searchtext=" + search + "", true); myrequest.setrequestheader("content-type", "application/x-www-form-urlencoded"); myrequest.send(null);
it seems haven't encoded 'search' string encodeuricomponent function using javascript. on ashx side, can use httputility.htmldecode method decode string.
Comments
Post a Comment