Solved

How to disable NavigateUrl proeprty of HyperLink

Posted on 2008-06-13
2
532 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

749 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