Can't create fragment/JavaScript hyperlink

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
 
Y

Yunus Emre ALPÖZEN

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...
 

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,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top