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

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
 
B

Bruce Barker

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top