Click here to Skip to main content
14,270,447 members
Rate this:
Please Sign up or sign in to vote.
See more:
How to display an image on a link button click?
Member 11332148 11-Feb-15 4:28am
nothing, i just have a link button and an image, on clicking dis link button i want my image to be displayed,, how can i do this??

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You can use a image tag that can be either ASP.NET Image or HTML Image. Make it hidden by default. Then on LinkButton Click (either in JavaScript or Server Side), just show the Image Tag.
Member 11332148 11-Feb-15 6:51am
no i dnt want to hide any image tag, I want to show an image on link button clcick, not using tags
The image should be shown on a control right? The control is a Image Tag. If you don't want to hide, then inside the click event just create a image control dynamically and assign path to it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100