Named link in HtmlAnchor control

G

Greg Allen

I have an HtmlAnchor control that I am trying to use as a "local" link on
the page, like
this:

Dim ChartLink As New HtmlAnchor()
ChartLink.HRef = "#" & ChartAnchor.ClientID
ChartLink.InnerText = "(see graph)"
NameCell.Controls.AddAt(1, ChartLink)

However, when the page is rendered, the path to the parent control is being
prepended. I assume this is somehow using the TemplateSourceDirectory and
ResolveURL when it is rendered.

It comes out like this:

<a href="/Voyager/Assessment/Controls/#_ctl0_27">


But I want to shut it off! I want to get it to come out like this:

<a href="#_ctl0_27">

Any ideas? I've tried using a Hyperlink control, but the same issue
occurs...

Thanks,

-- Greg Allen
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top