Hi Friends.....,
Hi i Had Created One Page in That i Assigned Four Panels (Using UpdatePanel)
Panel A , Panel B , Panel C , Panel D
For Each and Every Panel There is Button For eg: If Button1 Clicks It Will Show Panel A Same as Button2 Clicks It Will Show Panel B
In Css I Had Created Hover When Placing My Mouse Pointer Its Changing Color Fine ,But Now i Need to Change Color After Button Clicked or Selected
How it Needs to Work is IF " i Click on Button1 Panel A Will be in Open at the Same time, Button1 Need to Be in Another Color "
Is their Any Code or Link For That Previously I Had Used
Button1.Attributes["onclick"] = "this.style.backgroundColor='red';";
Button1.BackColor = System.Drawing.Color.Red;
on Onclick of Button1_Click in .cs FIle
Its Not Working For Me
With Regards....,
R.V.Rajagopalan
Loading

Rajagopalan R VPosted Aug 21, 2014, 6:53 AM
{
Button1.BorderColor = System.Drawing.Color.Red;
Button1.Attributes["style"] = "border-width: double;";
Button1.Attributes["style"] = "border-style: solid;";
Button2.Attributes["style"] = "border-color: none;";
Button2.Attributes["style"] = "border-width: none;";
Button2.Attributes["style"] = "border-style: none;";
}
I Had Used This Procedure Its Highlighting the Button1 Its Creating Border For My Button1 At the Time of Selected ,
Button1.BorderColor = System.Drawing.Color.Red;
The Above one ,is Working Finely
Button1.BackColor = System.Drawing.Color.Red;
But Back Color is Not Working in Code Behind
With Regards.....,
R.V.Rajagopalan
Rajagopalan R VPosted Aug 21, 2014, 12:26 AM
Regards.....,
R.V.Rajagopalan
Ankur JainPosted Aug 20, 2014, 3:37 AM
checkout the thread it will help you...
http://jsfiddle.net/agzVt/
please mark it as answer if its help...