What is an alternate way of calling CSS class at run-time?

 Posted by vishalneeraj-24503 on 5/5/2014 | Category: ASP.NET Interview questions | Views: 1127 | Points: 40

With the help of Attributes property of Controls we can call CSS class dynamically as:-
lbl_name.Attributes.Add("class","your class name");

txt_name.Attributes.Add("class","your class name");

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response