2.0: <asp:Image> click at server

R

R.A.M.

Hello,
Could anyone help me to handle <asp:Image> click in behind code?
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 need to handle when clicked. I tried:

protected void Page_Load(object sender, EventArgs e)
{
DotNETImage.Click += new EventHandler(DotNETImage_Click);
}
private void DotNETImage_Click(object sender, EventArgs e)
{
....
}

but it doesn't work of course because there's no Click event for
asp:Image.
Could you help me plase? I cannot find a solution in Internet.
Thank you very much!

/RAM/
 
B

brian.f.oneil

I believe ImageButton does not allow Transparency of the image?
INPUT TYPE of Image draws opaque. What a mess.
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top