Posted: 12/27/2011
How to Highlighting a Linkbutton onclick ? Please help.
Thanks in advance
Posted: 12/28/2011
There are many ways. Your first option would be using CSS by setting its style on click or by doing it in the code behind at Click event of the Button by setting its BackgroundColor.
Check this post: http://forums.asp.net/t/1351547.aspx/1
Thanks Vincent. I tried your link http://forums.asp.net/t/1351547.aspx/1 by doing it in the code behind at Click event of the Button.
The problem is the postback of the linkbutton. Due to postback the button back to its normal state instead of highlighting.
how to solve this problem ?
How about doing something like this:
protected void LinkButton1_Click(object sender, EventArgs e){ LinkButton1.BackColor = System.Drawing.Color.Red; }
Posted: 12/29/2011
I tried this way also but its not working.
It works for me. Can you please post your codes here both ASPX and code behind.