user532104
user532104

Reputation: 1423

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?

Upvotes: 1

Views: 18735

Answers (2)

Shaitender Singh
Shaitender Singh

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

Related Questions