Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Make Whole DIV Tag Hyper Link - ASP.NET

Posted on 2009-04-17
Medium Priority
Last Modified: 2012-05-06
Is it possible to make a whole of a div tag a hyper link in asp.net?  If so what code can I insert?
Question by:kinton
LVL 39

Expert Comment

ID: 24167618
what do you mean by making a div tag a hyperlink? A hyperlink is a <a href... /> tag, and a div tag is, well, a <div> tag. You can put an <a> tag around a div tag, and you can put an <a> tag inside a <div> tag:

   <a href="http://mylinkhere">the content of the div here</a>

Open in new window

LVL 10

Accepted Solution

JPJ78 earned 1000 total points
ID: 24167646

<div onclick="document.location.href='myNewPage.html';">yada yada yada </div>

Open in new window


Featured Post

Independent Software Vendors: 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

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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month11 days, 19 hours left to enroll

564 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