Click here to Skip to main content
15,894,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have an griview with columns sno,name,contact number,edit,delete,and active/inactive respectively.how to change the image of image button when i click on that active/inactive button click.for suppose if it is in active state when i click on that it will change to inactive button image how can i do that,can any one pls help me.
Posted

1 solution

VB
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
    ImageButton1.ImageUrl = "~\Images\abstract-green-background-2560x1600.jpg"
End Sub
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900