One of my image buttons is not working in Chrome, but the other button is (they both work in IE 9):
Not working
<asp:ImageButton ID="lblCustomer"
ImageUrl="~/images/Customer.jpg"
runat="server"
onmouseover="this.src='images/Customer.jpg';"
onmouseout="this.src='images/Customer.jpg';"
AlternateText="Customer"
CausesValidation="false"
OnClick="ibtnCustomer_Click"
ToolTip="Customer" />
Working:
<asp:ImageButton ID="ibtnUnRegisteredVendor"
ImageUrl="images/VendorButton.jpg"
runat="server"
onmouseover="this.src='images/VendorButtonHover.jpg';"
onmouseout="this.src='images/VendorButton.jpg';"
AlternateText="Vendor"
CausesValidation="false"
OnClick="btnUnRegisteredProvider_Click"
ToolTip="" />
The Customer button is not clickable in Chrome.
Any idea why the Customer button would not work in Chrome?
Update:
The rendered HTML from Chrome is:
<div id="Customer" style="width: 100%; left: 5px;">
<input type="image" name="Master$cphMainContent$lblCustomer" id="cphMainContent_lblCustomer" title="Customer" onmouseover="this.src='images/Customer.jpg';" onmouseout="this.src='images/Customer.jpg';" src="images/Customer.jpg" alt="Customer" />
</div>
<div id="VendorsButton">
<input type="image" name="Master$cphMainContent$ibtnVendor" id="cphMainContent_ibtnVendor" title="Vendor log in, registration or access without registration" onmouseover="this.src='images/VendorsButtonHover.jpg';" onmouseout="this.src='images/VendorsButton.jpg';" src="images/VendorsButton.jpg" alt="Vendors" />
<div id="VendorFeaturesContainer">
Probably because you have a different path to both of them. Try changing the first one's ImageUrl
to "images/Customer.jpg"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With