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

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

We have control's ATTRIBUTES ADD static method.In this method we have to pass style as KEY and border-style CSS property and value like solod,dotted,dashed,groove and so on as VALUE in it.
For Example:-
Button4.Attributes.Add("style", "border-style:dotted");


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response