Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 23rd, 2009, 08:07 AM
Friend of Wrox
Join Date: Apr 2005
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding Hyperlink to Image

Hi All,

I have a asp.net page which has a <asp:image> control. I want to add a dynamic Hyperlink to it.

I have used:

<a href='<%#eval("link")%>' target="_blank"><asp:Image Id="Image3"></a>

where <%#eval("link")%> gives the url link from database

But this doesn't work.

Can anyone help me out.

Thanks in advance !!
Old January 6th, 2010, 04:07 PM
Friend of Wrox
Join Date: May 2006
Posts: 107
Thanks: 1
Thanked 8 Times in 7 Posts

Try using an imagebutton.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding new row, hyperlink and sheet with a button Shaolin1976 Excel VBA 0 May 8th, 2008 09:01 AM
adding varchar string to hyperlink dgreep PHP Databases 1 February 19th, 2007 05:56 AM
hyperlink image won't resize chowdn ASP.NET 2.0 Basics 0 October 23rd, 2006 01:19 PM
adding an image {$photo_server} Aaron_j XSLT 1 July 29th, 2005 11:13 AM
Adding Hyperlink or Button to DataGrid koneruvijay VS.NET 2002/2003 3 November 13th, 2003 12:55 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.