Posted on: 10/23/2013 3:00:12 AM | Views : 736

Hi, I am trying to add a class to my linkbutton upon clicking by adding lnkBtn.CssClass = "PageActive" in the click handler however it isn't working, can someone please kindly advice. Thanks.
protected void uiPageChange_Click(object sender, System.EventArgs e) { if (sender is LinkButton) { LinkButton lnkBtn = (LinkButton)sender; int page; int.TryParse(lnkBtn.Text, out page); PageCurrentPage = page; lnkBtn.CssClass = "PageActive"; LoadGrid(page, PageActiveCount); } }

Go to the complete details ...