Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Symbol font doesn't display in FireFox 1

Status
Not open for further replies.

markros

Programmer
May 21, 2007
3,150
US
Hi everybody,

I'm working on ASP.NET application. I have a GridView and one of its columns has checkboxes (they are used to set Approve status). I wanted to save the space and tried to set Header attributes to use special character for selected (sort of square root character).

Here is the definition in my ASPX file
Code:
<asp:TemplateField HeaderText="Ö" SortExpression="Approved">
                                                     <%-- <HeaderTemplate>
                                                        <asp:CheckBox runat="server" ID="HeaderLevelCheckBox" />
                                                     </HeaderTemplate>--%>
                                                    <EditItemTemplate>
                                                        <asp:CheckBox ID="chkApproved" runat="server" Checked='<%# Bind("Approved") %>' />
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chkApproved" runat="server" Checked='<%# Bind("Approved") %>' />
                                                    </ItemTemplate>
                                                     <HeaderStyle Font-Names="Symbol" />
                                                </asp:TemplateField>

It displayes properly in IE, but doesn't display in FireFox. Is there anyway to make some character that would be appropriate for showing a checkbox?

Thanks a lot in advance.
 
Well done, you've posted code to the HTML forum that doesn't include a single line of HTML. If you want to ask questions about asp, and post asp code, you should try forum333 or forum855 .

If you have an HTML question, you need to view your page in a browser, do a "view source", and cut & paste the HTML that the browser sees. ASP stuff is no use to us here.

If your question boils down to "How do I display a square root sign in HTML?", the answer's simple, and doesn't require any symbol fonts. Just do this:
Code:
<p>This is a square root sign: &#8730;</p>
<p>So is this: &radic;</p>
Either the numeric or the text style character entity (radic is short for "radical", dunno why they didn't make it &root;) works the same way.

There's a complete list of character entities here:
-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top