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 -

monitor web browser programmatically in Android? -

c# - Using multiple datasets in RDLC -