troubleshooting Question Image in button control

Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland asked on
1 Comment1 Solution11 ViewsLast Modified:

I have an site that has been worked on by a css designer.In my GridView there is a button
<asp:LinkButton ID="ButtonQuestion"
I have been asked to add an image to this. Is that something that is possible? Or do I need to know more about the css styling?

 <div class="row">
                                <div class="col-12 results-table-wrapper mb-4">
                                    <asp:Panel ID="Panel4" runat="server" Visible="False">
                                        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False" CssClass="table results-table" GridLines="None">
                                                <asp:TemplateField HeaderText="ID" SortExpression="ID" >
                                                        <asp:Label ID="lblID" runat="server" Text='<%# Bind("[ID]")%>' ToolTip="ID"></asp:Label>
                                                <asp:TemplateField ControlStyle-Forecolor="Gray" HeaderText="Chat" ItemStyle-HorizontalAlign="Center"  >
                                                        <asp:LinkButton ID="ButtonQuestion"  CssClass="btn btn-sm btn-secondary" runat="server" CommandArgument="<%# CType(Container, GridViewRow).RowIndex %>" CommandName="btnQuestion" Text="<i class='far fa-envelope'></i>" />
                                                    <ControlStyle ForeColor="#FFFFFF" />
                                                    <ItemStyle HorizontalAlign="Center" />
David H.H.Lee
Digital Marketing (Hospitality)

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros