Solved

How to disable NavigateUrl proeprty of HyperLink

Posted on 2008-06-13
2
527 Views
Last Modified: 2010-04-21
Greetings all

I have the following hyperliunk, which when clicked opens a url ina separate window. In order for the link to appear properly (sorry - don't know how else to put it) - ie underlined and proepr cursor (hand) when hovering, I need soemthing in "NavigateUrl.

When the user clicks on the link, it opens the url correctly. However, it also attempts to go to the content of "NavigateUrl" - which i don't want.

Is there any way around this?


In advance, thanks!!

   allanmark

<asp:HyperLink  ID="hypFeaturedSite" runat="server" style="position: relative; top: 35px;" 
          CssClass="hypLink" NavigateUrl="x" onclick="javascript:win= window.open('HTTP://www.google.com','win','left=20,top=20,width=800,height=500,scrollbars=1,toolbar=1,resizable=0');win.moveTo(100,100);
 }">Featured Site</asp:HyperLink>

Open in new window

0
Comment
Question by:allanmark
2 Comments
 
LVL 21

Accepted Solution

by:
naspinski earned 250 total points
ID: 21776819
this will take care of it for you
NavigateUrl="javascript:void()"

Open in new window

0
 

Author Closing Comment

by:allanmark
ID: 31466851
Short and sweet !!  Works like a dream!!  

Many thanks!!!!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question