Last post Jan 25, 2019 07:16 AM by Jenifer Jiang
Jan 24, 2019 07:28 PM|vaverbukh2|LINK
I have control asp:ImageButton in my HTML code:
<asp:ImageButton ID="Button2" runat="server" Width="16px" Height="16px" BackColor="Navy"
ImageUrl="~/EIS/MaintainEmployeeProfile/MaintainEmployeeRating/images/page_edit.gif" ToolTip="Edit Form" />
For some reason when i am running in IE browser working fine i can click on it but when i am running either in Chrome browser or Microsoft Edge browser image appear but not clickable.
Please help me to resolve this problem.
Thanks so much.
Jan 24, 2019 11:32 PM|KathyW|LINK
ImageButtons work just fine in Edge and Chrome. Nothing in your markup for the ImageButton can tell us what's going on.
Jan 25, 2019 07:16 AM|Jenifer Jiang|LINK
According to your description and code, I've tested on my side but could not reproduce your issue.
Here is my testing code.
<form id="form1" runat="server">
<asp:ImageButton ID="Button2" runat="server" Width="50px" Height="50px" BackColor="Navy" ImageUrl="Images/test6.jpg" ToolTip="Edit Form" OnClick="Button2_Click" />
protected void Button2_Click(object sender, ImageClickEventArgs e)
Response.Write("You've clicked");//to test if the button works
result in Chrome
result in Edge
The imagebutton works well on both browser.
image appear but not clickable.
I think this may be because of the click event. I suggest you should use breakpoints to debug step by step.