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

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -