Hi, I know I can get an imagebutton's X&Y, but how do I get it's ID?
I'd like to start by printing it to a label at first. later I would like to use it in a switch case - any different case would change the imagebutton.imageurl to a different image, but speicifically do it for the imagebutton I just clicked on.
I tried
Label1.Text = Convert.ToString((ImageButton)sender);
But this is the result
System.Web.UI.WebControls.ImageButton
As a result which isn't a lot of help, because I need the specific control's ID.
Thanks!