NavigateUrl error when sending to samepage

D

Don

I am trying to do the following:

I have a template column with a hyperlink in it.
At runtime I want to set the navigateurl. When I try to set it back
to the same page it puts the directory in the link instead of just the
#.

During ItemDataBound
HyperLink selectLink = (HyperLink)e.Item.FindControl("selectLink");
selectLink.NavigateUrl = "#;

The page gets rendered as:

href="/directory1/directory2/#"

instead of

href="#"

I have tried this on other machines and it works properly. Wondering
if there is a setting that I am missing.

Thanks
 

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,021
Latest member
AkilahJaim

Latest Threads

Top