What is an alternative way of setting control's border-width in code-behind?

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

We have control's ATTRIBUTES ADD static method.In this method we have to pass style as KEY and border-width CSS property and value like thick,thin,medium or any value in pixel and so on as VALUE in it.

For Example:-
Button1.Attributes.Add("style", "border-width:thick");

Button2.Attributes.Add("style", "border-width:2px");


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response