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

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

php - HTTP_REFERER woes: How can I allow access to a specific page, only when a visitor has visited another specific page beforehand? -