Picture on a button

A

Andrew Chalk

I have created a datagrid in which I place a asp:pushButton in one column.
This button displays text while I would rather it display a graphic. I don't
think I can use the asp:ImageButton instead as its evntargs do not pass the
information that I need on the datagrid row on which the button has been
pressed. Is there any way to display a graphic rather than text? Some kind
of trick?

Specifically: When the button is pressed I need to read datagrid values that
are valid in the button's column. Currently I use:

string sProdName = ((System.Web.UI.WebControls.TableCell)
e.Item.Cells[2]).Text.Trim();

I can do this with a PushButton but not an ImageButton.

Many thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top