How to add border-style through CSSStyleCollection in code-behind?

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

We have control's Style attribute as CSSStyleCollection sealed class.Through which we can set border-style as shown:-

Button4.Style["border-style"] = "dashed";

Button5.Style["border-style"] = "dotted";


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response