473,473 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using a HelpProvider, go to a specific anchor tag on a page.

Hello,

So far I have my .CHM file working with my application through a
HelpProvider. But, I would like to display certain locations on a page
immediately. For instance, I have a page 'DataEntry.htm' in my helpfile
'DataEntry.chm' with a paragraph about a subject called "Supplementary
Data". I have marked that paragraph with an anchor tag <a
name="#SupplementaryData">.

In a web browser, going to that location works just fine: the location
file://DataEntry.htm#SupplementaryData takes me to that page and goes right
to the paragraph. However, referring to it with the HelpProvider.SetKeyword
method doesn't work:

hlpDataEntry.HelpNamespace = "c:\\DataEntry.chm";
hlpDataEntry.SetHelpNavigator(txtSupplementaryData , HelpNavigator.Topic);

hlpDataEntry.SetHelpKeyword(txtSupplementaryData,
"DataEntry.htm#SupplementaryData");

These lines of code take me to the 'DataEntry.htm' page, but don't jump to
the specified paragraph. Is there a way to achieve this?

With regards,
Marcel Brekelmans
Nov 17 '05 #1
2 4271
Marcel,
So far I have my .CHM file working with my application through a
HelpProvider. But, I would like to display certain locations on a page
immediately. For instance, I have a page 'DataEntry.htm' in my helpfile
'DataEntry.chm' with a paragraph about a subject called "Supplementary
Data". I have marked that paragraph with an anchor tag <a
name="#SupplementaryData">.


Here's a discussion in the Help & Manual forums that may help:

http://helpman.it-authoring.com/viewtopic.php?t=2506

--
Pete (Microsoft Help MVP)

Nov 17 '05 #2
Thanks, Pete

The article you mentioned put me on the right track. Not the solution
in itself, I was on the right track. But I made the mistake to put the
'#' sign inside the <a> tag. It should read :<a name
="SupplementaryData">. And that made it work. Thanks!
PD*****@btinternet.com wrote:
Marcel,
So far I have my .CHM file working with my application through a
HelpProvider. But, I would like to display certain locations on a page
immediately. For instance, I have a page 'DataEntry.htm' in my helpfile
'DataEntry.chm' with a paragraph about a subject called "Supplementary
Data". I have marked that paragraph with an anchor tag <a
name="#SupplementaryData">.


Here's a discussion in the Help & Manual forums that may help:

http://helpman.it-authoring.com/viewtopic.php?t=2506

--
Pete (Microsoft Help MVP)


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ramon M. Felciano | last post by:
Helo all -- I'm trying to gain a deeper understand for what type of semi-declarative programming can be done through XML and XPath/XSLT. I'm looking at graph processing problems as a testbed for...
6
by: june | last post by:
Hi, I don't know if this is even possible but I thought I'd throw the question out there anyway... I was wondering if it is possible to make only certain portions of a page print. For...
5
by: Ric Castagna | last post by:
Greetings, all... I've got a (for me) stumper... I need to attach what will amount to a float:right; sidebar to a specific location on a page. Not an absolute position, mind you, but to a...
0
by: Rob Oeffner | last post by:
Hi, This is not a solution in search of a problem but I think I found if not a bug then at least a serious deficiency in the HelpProvider class. I use it on a form in VB where I have assigned its...
0
by: Chris | last post by:
Hi, I dragged a Helpprovider-control on the form namespace-property is set to a help-file : "myhelp.htm" (I have set an anchor in this file <a name="Form">) then, setting the help-properties...
0
by: Chris | last post by:
Hi, I dragged a Helpprovider-control on the form namespace-property is set to a help-file : "myhelp.htm" (I have set an anchor in this file <a name="Form">) then, setting the help-properties...
1
by: Joey | last post by:
I have noticed that the grid's Select linkbutton is rendered as an HTML anchor tag on the client. I would really like to be able to get a "class" attribute in it, either through CssClass on the...
8
by: Jeff Higgins | last post by:
Hi, In the variable "anchor" I would like to, (I think), use the value of the variable "text" in the predicate of the select expression. Is this possible? Is there a better way of doing...
0
by: Rick | last post by:
VS.2005 pro I have a helpprovider on a winform. The helpNamespace is set to the html help file. On a control I have helpkeyword set to "myAnchor" (no quotes) and the HelpNavigator set to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.