Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
5
Reply
How to apply css to a button after on click in repeater
Himanshu Tyagi
Dec 20 2017 2:50 AM
158
Reply
I am using a button inside repeater. How to aplly css to clicked button and i click on another button then css should be add on the clicked button and removed from the first clicked button?
<asp:Repeater ID="rptrQtyVariant" runat="server" OnItemCommand="rptrQtyVariant_ItemCommand" OnItemDataBound="rptrQtyVariant_ItemDataBound">
<ItemTemplate>
<asp:Label ID="lblItemId" Visible="false" runat="server" Text='<%#Eval("ITEM_ID") %>'></asp:Label>
<asp:Label ID="lblSku" Visible="false" runat="server" Text='<%#Eval("SKU") %>'></asp:Label>
<asp:LinkButton ID="lnkQtyVariant" CssClass="product-variant__btn pdp-btn" OnClick="lnkQtyVariant_Click1" CommandName="ItemQty" runat="server">
<asp:Label ID="lblQty" runat="server" Text='<%#Eval("ITEM_QTY") %>'></asp:Label><br />
</asp:LinkButton>
</ItemTemplate>
</asp:Repeater>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
commission rate display wrong when write commission textbox1
Input string was not in a correct format.