开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜