Solved

How to disable NavigateUrl proeprty of HyperLink

Posted on 2008-06-13
2
517 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now