URL parameter value truncated

Here i pass the URL to load the xml

gridQString = “load.asp?file_name=C:\Inetpub\wwwroot\abc\testdata2.txt”; mygrid.loadXML(gridQString);

In the load.asp, I debug the Request.Querystring(“file_name”) variable and it shows as C:Inetpubwwwrootabcestdata2.txt

Why this URL parameter being tryncated?

This is default URI behavior, change your code as

gridQString = "load.asp?file_name="+encodeURIComponent("C:\Inetpub\wwwroot\abc\testdata2.txt");

Hi Stanislav,

I tried using gridQString = “load.asp?file_name=”+encodeURIComponent(“C:\Inetpub\wwwroot\abc\testdata2.txt”);

but still the “backward slash” are truncated.
This is the output “C:Inetpubwwwrootabc estdata2.txt” with one space in between.

Appreciate your help.

It may be caused by some processing logic on server side, because encodeURIComponent ensures that all data will be transfered to server without modifications.

The only alternative which I can see - replace back-slash chars with some other chars before sending to the server side.