Can't create fragment/JavaScript hyperlink

  • Thread starter Thread starter Axel Dahmen
  • Start date Start date
A

Axel Dahmen

Hi,

I can't create local fragment hyperlinks or JavaScript hyperlinks in
ASP.NET. It always appends the current path to any value. How can I switch
that off?

Examples:

* NavigateUrl="#highlight"

becomes:
<a href="/AppName/CurrentPath/#highlight">


* NavigateUrl="calcAndSubmit('myVal');"

becomes:
<a href="/AppName/CurrentPath/calcAndSubmit('myVal')">


TIA,
Axel
 
Dont use server controls just use html a object..Something like this;

<a href="#highlight">Test </a>
<a href="javascript:calcAndSubmit('myVal')" >Test </a>

Hope this helps...
 
Back
Top