Posted on: 4/1/2014 7:23:35 AM | Views : 396

hi,
i want to change button color.
when i click to active its show button color green. and when i click on i active button color show red.
this is my html and cs coding.
<asp:TemplateField HeaderText="Mark Active/Inactive"> <ItemTemplate> <asp:LinkButton ID="lnkChangeStatus" runat="server" OnCommand="lnkChangeStatus_Click" CommandArgument='<%# Eval("QuestionnaireID")+ ";" + Eval("Status")%>' Text='<%# Eval("Status")%>' CssClass="radius button" Style="font-weight: bold;"></asp:LinkButton> </ItemTemplate> <ItemStyle Width="20%" HorizontalAlign="Center" /> </asp:TemplateField>

and this is my cs coding
protected void lnkChangeStatus_Click(object sender, CommandEventArgs e) {
string[] param = new strin ...

Go to the complete details ...