ImageButton not aligning to center.

Posted by ProfK on Stack Overflow See other posts from Stack Overflow or by ProfK
Published on 2010-05-06T19:24:04Z Indexed on 2010/05/06 19:28 UTC
Read the original article Hit count: 157

Filed under:
|

Given the following markup for a GridView column, why are my image buttons showing up as left aligned?

                    <ItemStyle HorizontalAlign="Center" Width="55px" />
                    <ItemTemplate>
                        <asp:ImageButton ID="removeButton" runat="server" ImageUrl="~/Images/Icons/x-m.png" CommandArgument='<%# Eval("ResourceId") %>' AlternateText="Remove Button" 
                            onclick="removeButton_Click" />
                    </ItemTemplate>

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about web-development