What is an alternative way of setting background color of an Asp.Net element or controls?

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

We have control's BackColor in-built property which achieves the same functionality as background-color style property.

For Example:-
<asp:Button ID="btn_go" runat="server" Text="Click Me" BackColor="YellowGreen"/>

<asp:Label ID="lbl_name" runat="server" Text="Name" BackColor="YellowGreen"></asp:Label>

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response