How to open a local html file using NavigationWindow when path contains URL fragment?

I am using NavigationWindow to display html files, it worked fine until path does not contain any # or illegal characters.

I just wanted to know is there a way to open html file when the path contains URL fragment, for example: an anchor # like below..


Currently i am getting the following exception...

Could not find file 'c:\MyFile.Html#tips'
System.Net.WebException was unhandled 



The problem is with the creation of the URI, it seems there is some bug with the URI class.

The URI generated by the following are different,

var filePath = @"c:\MyFile.Html#tips";   
var uri = new Uri(filePath);
var uri2 = new Uri("file://" + filePath);

Fragment part of the uri is empty, but uri2 has correct fragment part as "#tips".

The same kind of problem is with the query even after creating URI as uri2, the reported bug for query string can be found here, Why doesn't System.Uri recognize query parameter for local file path? and Uri class does not parse filesystem URL with query string

Need Your Help

FLIR: avoiding ugly page loads

javascript sifr loading flir

I'm building a site that makes extensive use of FLIR to allow the use of non-websafe fonts. However, pageloads are an ugly process, as first the HTML text version of each field loads and then (a few

Neural Networks in Python without using any readymade libraries...i.e., from first!

python scipy neural-network

I am trying to learn programming in python and am also working against a deadline for setting up a neural network which looks like it's going to feature multidirectional associative memory and recu...