Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ASP.NET
<asp:LinkButton 
	runat="server" 
	ID="btnRun" 
	ToolTip="Large String" 
	OnClick="btnRun_Click" 
	Text="<i class="fa fa-pencil-square-o" style="font-size: 24px; color: black"></i>"


What I have tried:

hi,
I have used Font awsome icon in my page it has been working fine for Chrome only but IE and Mozila is not appear i dont know why can you please share your solution if you are Facing this issuse
Posted
Updated 23-Jan-17 3:57am
v2
Comments
Kornfeld Eliyahu Peter 23-Jan-17 2:55am    
The simple you posted does not show HOW you used that font...
Please add the RELEVANT part of your HTML/CSS...
Member 11183217 23-Jan-17 3:03am    
Inside that Text. i tried to send you that but its not accept here
Kornfeld Eliyahu Peter 23-Jan-17 3:07am    
I tried to fix what you have posted...Check it - if this is your HTML, it is wrong... It has basic syntax errors...
Member 11183217 23-Jan-17 6:43am    
<asp:LinkButton runat="server" ID="btnRun" ToolTip="Large String" OnClick="btnRun_Click" Text=""
CssClass="btn btn-mini" />


this my actual code peter .if you found any mistake will you please share that .it useful for me
Kornfeld Eliyahu Peter 23-Jan-17 6:48am    
<asp:LinkButton
runat="server"
ID="btnRun"
ToolTip="Large String"
OnClick="btnRun_Click"
Text="<i class="fa fa-pencil-square-o" style="font-size: 24px; color: black"></i>"
CssClass="btn btn-mini" />

1 solution

The following markup displays the pencil icon in the web browser
XML
<asp:LinkButton
    runat="server"
    ID="btnRun"
    ToolTip="Large String"
    OnClick="btnRun_Click"
    Text='<i class="fa fa-pencil-square-o" style="font-size: 24px; color: black"></i>'>
</asp:LinkButton>

<asp:LinkButton
    runat="server"
    ID="btnRunA"
    ToolTip="Large String"
    OnClick="btnRun_Click">
    <i class="fa fa-pencil-square-o" style="font-size: 24px; color: black"></i>
</asp:LinkButton>
Tested in chrome, firefox and internet explorer (11).

Note how in the first asp:LinkButton the Text attribute is using single quotes.
And the second asp:LinkButton is not using the Text attribute.

Using Font Awesome 4.3.0
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900