How to remove underline and disable a Linkbutton in ASP.Net after clicking and maintain this status across postbacks?
Posted on 2009-05-06
I'm using a Multiview control having 6 views. I'm also using 6 LinkButtons named as 1 2 3 4 5 6. Each of the LinkButton when clicked causes a postback and sets the corresponding ActiveIndexView property of the Multiview control.
I would like to remove the underline and disable the Linkbutton which is clicked at any point and keep the remaining five active. Also, each of the views have controls like dropdown which also cause postback. So, its important for me to persist the disabled state of the most recent clicked Linkbutton and keep the remaining five active. I'm using ASP.Net 2.0 with C# as the code-behind.