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/
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/