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.
views:
200answers:
1
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
2010-03-01 12:52:05
Thanks. My problem is resolved with unescape() function.
Vijay Balkawade
2010-03-05 07:16:45