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)

Re: Can ShowHelp handle a url that targets a name containing spaces? by Joubert

Joubert
Mon Nov 15 07:00:01 CST 2004

Hi Anna,

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

Regards
Jouber


"Anna Neiderud" <AnnaNeiderud@discussions.microsoft.com> wrote in message
news:4016937F-2097-41E1-85FE-2FA91E0CB74B@microsoft.com...
> 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)



Re: Can ShowHelp handle a url that targets a name containing space by AnnaNeiderud

AnnaNeiderud
Mon Nov 15 07:13:03 CST 2004

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


"Joubert" wrote:

> Hi Anna,
>
> If your code below does not work, try substituting spaces with %20
>
> Regards
> Jouber
>
>
> "Anna Neiderud" <AnnaNeiderud@discussions.microsoft.com> wrote in message
> news:4016937F-2097-41E1-85FE-2FA91E0CB74B@microsoft.com...
> > 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)
>
>
>