Link to home
Start Free TrialLog in
Avatar of aasaif00
aasaif00

asked on

Changing a imageurl in a datagrid when clicked on

I have a datagrid column where an imagebutton exists.  I want to be able to when a user clicks on that image button I change the imageurl to a different image.  I do not know how to declare in the code behind file a imagebutton in a datagrid.
Avatar of Praesidium
Praesidium
Flag of United States of America image

A single image button?  Or multiples?  Static?
Avatar of aasaif00
aasaif00

ASKER

a single image button which contains a imageurl set to a image in my project
it belongs to a column in a datagrid
ASKER CERTIFIED SOLUTION
Avatar of zulu_11
zulu_11

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
However it is possibe to find a imagebutton control within a Datagrid right, if i can do that it would be so much easier
ImageButton Btn1      =(ImageButton)e.Item.FindControl("ImageButton1");

i got it thanks