dizzycat
asked on
Make an image hyperlink
Hi guys
Using visual web developer 2008 express, how can i make an image or an image button into a hyperlink to navigate to another of my websites pages, i have looked at all the controls in the toolbox and all of the properties of each control but cannot achieve this.
Using visual web developer 2008 express, how can i make an image or an image button into a hyperlink to navigate to another of my websites pages, i have looked at all the controls in the toolbox and all of the properties of each control but cannot achieve this.
Hi,
Hope this helps
http://blogs.silverlight.net/blogs/msnow/archive/2010/04/15/111327.aspx
Thanks
Proton
Hope this helps
http://blogs.silverlight.net/blogs/msnow/archive/2010/04/15/111327.aspx
Thanks
Proton
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
By the way... if you want to use an ImageButton (which I wouldn't recommend for SEO Reasons) you'd place your ImageButton and put the following code into the OnClick Event:
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
Response.Redirect("http://example.com");
}
But please note, that the link target won't be visible to anyone until they have clicked the button and are being redirected to that page.
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
Response.Redirect("http://example.com");
}
But please note, that the link target won't be visible to anyone until they have clicked the button and are being redirected to that page.
ASKER
Great!
Thanks for your help.
Thanks for your help.
You can wrape your image tag like this
<a href="target site"><img src="myimg.jpg"/></a>
Regards,
Chinmay