Is there a way to easily apply bootstrap classes to all asp .net controls in my application at once? Here is an example of how I formatted my menu control using bootstrap.
I am looking for a solution where I can apply the bootstrap theme commonly to all menus, buttons, textboxes, and other controls without having to do it individually for each one. It gets tedious to format each control separately. Is there a more efficient way to achieve this?
<div class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"
aria-expanded="false">
<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span
class="icon-bar"></span><span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="Mycompanylink">My Company</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" RenderingMode="List"
IncludeStyleBlock="false" StaticMenuStyle-CssClass="nav navbar-nav"
DynamicMenuStyle-CssClass="dropdown-menu" OnMenuItemClick="Menu1_MenuItemClick">
<Items>
<asp:MenuItem Text="Home" Value="0"></asp:MenuItem>
<asp:MenuItem Text="Careers" Value="1"></asp:MenuItem>
<asp:MenuItem Text="About Us" Value="2"></asp:MenuItem>
</Items>
</asp:Menu>
</div>
</div>
</div>