Question

I am trying to load local html file like this

    WebBrouser = new WebBrowser();
    WebBrouser.Navigate(new Uri("index.html?param1=foo&param2=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 ?

Was it helpful?

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
scroll top