How will i apply CSS class from Code behind?

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

Suppose i have a CSS class named Body_bk_color defined or written on page,then on code behind we will write as:

bdy.Style["Background-Color"] = "Body_bk_color";


Where bdy is our ID of the Body.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response