Windows Phone 8 WebBrowser does not load local file, if there are get parameters
-
20-12-2019 - |
Question
I am trying to load local html file like this
WebBrouser = new WebBrowser();
WebBrouser.Navigate(new Uri("index.html?param1=foo¶m2=bar", UriKind.Relative);
It says it can not find the page. If I remove the parameters, it works. How can I pass get parameters to local html file ?
Solution
use # instead of ?
example:
browser.Navigate(new Uri("www/index.html#p=123&p2=567", UriKind.Relative));
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow