How to add an on click event in server side for an Image control in C#/ASP.NET
I have added an image from 开发者_如何转开发toolbox in VS2008, and noticed that there isn't an onclick event in server side.
How do I add one on?
Image control is just to display an image on the Web page. There is no onlick event in Image control.
asp:ImageButton Control that handles mouse clicks on images .
Use the ImageButton control: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.imagebutton.aspx
精彩评论