I Like to add Image buttons in a Databound ASP.NET 4.0 GridView for a Boolean field in a way that if it is true show one image and if it is false show another image.
ImageField does not give me click ability and I don’t know how to change image on buttons based on field value. With Button trigger I will run a stored procedure to change the state of Boolean field.
I’m using C# for programming
How can I achieve this?
also a very simple and straight forward solution would be to use two image fields, and hide one or the other depending upon your boolean value.