allanmark
asked on
Programmatically add a url to an image
Greetings all
I have an image (asp:Image) on my page. When the user clicks on it I would like them to be redircted elsewhere (preferably in another window).
1. How do I programmatically add a url to the image?
2. If there is no url available, do I disable the image, or is it ok to just leave it like that, knowing that clicking
will do nothing?
In advance, thanks!
allanmark
I have an image (asp:Image) on my page. When the user clicks on it I would like them to be redircted elsewhere (preferably in another window).
1. How do I programmatically add a url to the image?
2. If there is no url available, do I disable the image, or is it ok to just leave it like that, knowing that clicking
will do nothing?
In advance, thanks!
allanmark
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER