开发者

How to add an on click event in server side for an Image control in C#/ASP.NET

开发者 https://www.devze.com 2023-01-31 19:50 出处:网络
I have added an image from 开发者_如何转开发toolbox in VS2008, and noticed that there isn\'t an onclick event in server side.

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

精彩评论

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