What is an alternative way of assign css class to an element?

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

With the help of class property of controls,we can apply the same css class as with CSSClass property as:-

<asp:Button ID="Button1" runat="server" Text="Button 1" class="button_border"/>

<input type="button" name="button" id="Button2" value = "Button 2" class="button_border" />


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response