I have a table on my aps.net page. Each cell (td) has a asp link button contol in it and the table cells have an id and it is set to runat = server.
I want to be to click on a link button and change the background color of the cell that the link button is associated with to blue and to change the rest of the cells to a white background.
I am currently using this code.
private void tblLinksColorChange(string sColor)
tableLinks.BgColor = sColor;
lbtnAll.ForeColor = System.Drawing.Color.Blue;
lbtnPendingApproval.ForeColor = System.Drawing.Color.Blue;
lbtnPendingINE.ForeColor = System.Drawing.Color.BlueViolet;
lbtnClosed.ForeColor = System.Drawing.Color.Blue;
lbtnRejected.ForeColor = System.Drawing.Color.Blue;
protected void lbtnAll_Click(object sender, EventArgs e)
tdAll.BgColor = "Black";
lbtnAll.ForeColor = System.Drawing.Color.White;