I have a TextBox in a GridView ItemTemplate. I added css style to it using CssClass="txtboxAlignRight". but when i run my page, style is not applied.
I have an another TextBox in a GridView FooterTemplate. i added this style to that TextBox also. it's working properly. but TextBox in GridView ItemTemplate is not applying this style.
How can i solve this ?
Css
.txtboxAlignRight
{
text-align: right;
border: 1px solid #ccc;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
aspx page
<ItemTemplate>
<asp:TextBox ID="txt_cc" Width="150" runat="server" Text='<%# Bind("COUNT") %>'
CssClass="txtboxAlignRight"></asp:TextBox>
</ItemTemplate>
FooterTemplate.