How will i apply CSS class from Code behind?

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

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