How to run a function when text is clicked?

  • Thread starter Thread starter Shapper
  • Start date Start date
S

Shapper

Hello,

I have an Asp:Image inside a datagrid:

<asp:ImageButton runat="server" ImageUrl="img.jpg" CommandName='<%#
DataBinder.Eval(Container.DataItem, "product_id") %>'
OnCommand="Change_Product" Width="50"></asp:ImageButton>

When the image is clicked the function Change_Product runs and uses the
value of product_id.

I want to do something similar but instead of displaying an image that
can be clicked I want to display some text. Is this possible?

I was looking at asp:abel properties but I couldn't find a way to do
this.

Can someone help me?

Thanks,
Miguel
 
Thanks. That what exactly what I was looking for.

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message REMOVE @ REMOVE openmymind REMOVEMETOO .
ANDME net:
 

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

Back
Top