如何在服务器端为 C#/ASP.NET 中的图像控件添加单击事件

发布于 2024-10-08 21:45:22 字数 68 浏览 0 评论 0原文

我在 VS2008 中添加了工具箱中的图像,并注意到服务器端没有 onclick 事件。

我如何添加一个?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我的奇迹 2024-10-15 21:45:22

图像控件只是在网页上显示图像。 Image控件中没有onlick事件。

asp:ImageButton 控件,用于处理图像上的鼠标点击。

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 .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文