views:

200

answers:

1

I have a sample application, in which I am trying to load a text file in WebBrowser control. I have a html file through which I am calling Javascript function to open text file. But it is showing me error like;
Cannot find 'file:///C:/temp/test%2520page.txt'. Make sure the path or Internet address is correct.
File exist at this location and its name is; test page.txt.
I am not getting what is happening. Please help me to resolve this issue. Thanks in advance.

A: 

You are trying to open the wrong fil. %25 translates to the '%' character. So it looks like you are trying to escape the % of %20 somehow. The file you want to open is 'file:///C:/temp/test%20page.txt'

Roald van Doorn
Thanks. My problem is resolved with unescape() function.
Vijay Balkawade