Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to disable NavigateUrl proeprty of HyperLink

Posted on 2008-06-13
2
Medium Priority
?
549 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 1000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

824 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