I have this button calenders i created using btn-group, now i have users posts dates that i want to display on the button calander using btn btn-primary, so if MIK posted on 2018-02-01 and 2018-02-04 which is january and Apr i want the calander button on january and Apr to change to btn btn-primary. On default all buttons are btn btn-default. TABLE
ID USERNAME POSTDATE COUNT
1 MIK 2018-02-01 17:05:52.000 1
1 TT33 2018-02-02 17:05:52.000 1
1 MIK 2018-02-04 17:05:52.000 1
HTML
<asp:DataList ID="GetMergedAll" runat="server" DataKeyName="Id" OnItemDataBound="GetMergedAll_ItemDataBound" OnDataBound="GetMergedAll_DataBound" Font-Bold="True" Width="100%">
<ItemTemplate>
<asp:DataList ID="GetCALENDER" runat="server" DataKeyName="Id" OnItemDataBound="GetCALENDER_ItemDataBound" OnDataBound="GetCALENDER_DataBound" Font-Bold="True" Width="100%">
<ItemTemplate>
<div class="btn-group" >
<button type="button" class="btn btn-primary" >Jan</button><button type="button" class="btn btn-primary">Feb</button><button type="button" class="btn btn-primary">Mar</button><button type="button" class="btn btn-default">Apr</button><button type="button" class="btn btn-success">May</button><button type="button" class="btn btn-default">Jun</button><button type="button" class="btn btn-default">Jul</button><button type="button" class="btn btn-default">Aug</button><button type="button" class="btn btn-default">Sep</button><button type="button" class="btn btn-default">Oct</button><button type="button" class="btn btn-default">
<asp:Label ID="Label105" runat="server" Text="" CssClass=" glyphicon glyphicon-plus"></asp:Label></button>
</div>
</ItemTemplate>
</asp:DataList>
</ItemTemplate>
</asp:DataList>