Simple ASP.net ToolTip (for FireFox)

I have an ImageButton in ASP.Net on my site populated with the ToolTop property:

<asp:ImageButton CausesValidation="false" Enabled="false" ID="imgHelp" ImageUrl="Images/Icons/help.png" Width="15px" Height="15px"
                            runat="server" ToolTip="Die Referenz der Anfrage, z.B.: Bieter- oder Auktionsnummer"  />

But in FireFox ToolTip is not displayed.

Anyone, an Idea that requires OR, maybe it's good to use ToolTip-UC?


This is the generated code:

<input type="image" name="ctl00$ContentPlaceHolder1$imgHelp" id="ctl00_ContentPlaceHolder1_imgHelp" disabled="disabled" title="Die Referenz der Anfrage, z.B.: Bieter- oder Auktionsnummer" src="Images/Icons/help.png" style="height:15px;width:15px;border-width:0px;" />

Good. I see my problem when ImageButton is turned on, the tooltip works, but the user can click on it (which I don't want). Any ideas?

+3
source share
4 answers

I assume that it will not work in Firefox because you have the enabled enabled property set. If you set to true, will this fix the problem?

- Firefox. , - JavaScript.

2:

asp: Image:

<asp:Image runat="server" ID="the Id" 
   ToolTip="Die Referenz der Anfrage, z.B.: Bieter- oder Auktionsnummer"  
   ImageUrl="TheImage.jpg" 
   AlternateText="Some alt here" />
+3

ASP.NET, , HTML , Firefox.

+1

"onclick = return (false)"; . css , clickable.

+1

CSS
ToolTip = "Die Referenz der Anfrage, z.B.: Bieter-oder Auktionsnummer"

0

Source: https://habr.com/ru/post/1721689/


All Articles