Reputation: 1423
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?
Upvotes: 1
Views: 18735
Reputation: 2207
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 .
Upvotes: 9
Reputation: 23561
Use the ImageButton control: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.imagebutton.aspx
Upvotes: 0