In my project, there is css class to control the design of everything.
Now I want to change dynamically the value / properties in css class if I click buttons.
Can anyone solve my problem?
Thanks a lot :-)
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Arjunan SelvamPosted Aug 19, 2015, 5:59 AM
Asp.Net HeinPosted Aug 19, 2015, 5:50 AM
Raja TPosted Aug 6, 2015, 5:36 AM
Asp.Net HeinPosted Aug 6, 2015, 3:52 AM
Raja TPosted Aug 6, 2015, 3:27 AM
Upendra Pratap ShahiPosted Aug 6, 2015, 3:26 AM
Raja TPosted Aug 6, 2015, 3:21 AM
Asp.Net HeinPosted Aug 6, 2015, 3:01 AM
Upendra Pratap ShahiPosted Aug 6, 2015, 2:52 AM
Use this-
Ex :txtName.Style.Add("Background-color", "#ccc");
Raja TPosted Aug 6, 2015, 2:31 AM
Asp.Net HeinPosted Aug 6, 2015, 2:13 AM
Upendra Pratap ShahiPosted Aug 6, 2015, 12:56 AM
In code behind :
Syntax1:
Ex :txtName.Style.Add("Background-color", "#ccc");
Syntax2:
Ex: txtName.Attributes.Add("class", "clstest");
Amitesh VermaPosted Aug 6, 2015, 12:44 AM
Raja TPosted Aug 6, 2015, 12:14 AM