.NET 2.0 beginner: asp:Image click - at server

  • Thread starter Thread starter R.A.M.
  • Start date Start date
R

R.A.M.

Hello,

Could you help me please with a problem concerning handling at server
asp:Images?
I have
<asp:Image ID="DotNETImage"
ImageUrl="Images/DotNET_360x280.jpeg"
AlternateText="Microsoft .NET version 2.0"
Width="360" Height="280" runat="server" />
which I want to have handled at server when clicked. I thought I can
write:
DotNETImage.Click += new EventHandler(DotNETImage_Click);
...
private void DotNETImage_Click(object sender, EventArgs e)
{
...
}
but I got:
'System.Web.UI.WebControls.Image' does not contain a
definition for 'Click'.
Could you tell me please how to programme it?
Thank you very much!

/RAM
 
asp:image's do not have a click event. use an asp:imagebutton.

-- bruce (sqlwork.com)
 

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