Can ShowHelp handle a url that targets a name containing spaces?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a helpfile where there happens to be name anchors containging spaces,
e.g. <a name="name with space">

Can I pass my arguments to ShowHelp in a way that will navigate to the name?

I tried something like this:
string file= @"C:\path with space\myhelp.chm";
string topic="html/concepts.htm#concept name";
Help.ShowHelp(this, file, HelpNavigator.Topic, topic);

The file shows up with the correct page (concepts.htm", but it doesn't
navigate to the name.

I know it is bad practice to have spaces in names, but I am not in power to
change this.

Is there any way I can get the help up correctly?

Greatful for any hints.
Anna Neiderud

(Also, I am trying to do the same thing with javascript in a different
setting - any input on that would also be appreciated)
 
Hi Anna,

If your code below does not work, try substituting spaces with %20

Regards
Jouber
 
I allready tried that, but unfortunately that doesn't work with the name
containing spaces.
 
Back
Top