Link to home
Start Free TrialLog in
Avatar of kinton
kinton

asked on

Make Whole DIV Tag Hyper Link - ASP.NET

Is it possible to make a whole of a div tag a hyper link in asp.net?  If so what code can I insert?
Avatar of abel
abel
Flag of Netherlands image

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:


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

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of JPJ78
JPJ78
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial