Reputation: 23
I am trying to learn how to use twitter bootstrap with ASP.Net Controls like DropDown and Buttons and all other asp controls?
Is it Possible to do something like this?
Upvotes: 2
Views: 9140
Reputation: 34846
Read the Bootstrap documentation and samples for buttons for a visual display of the out-of-the-box Bootstrap button styles.
Reference the bootstrap.css
file in your page or master page, like this:
<link href="bootstrap.css" rel="stylesheet" type="text/css" />
Note: You can reference the human-readable bootstrap.css
file or the barely readable minified version called bootstrap.min.css
, for deployment make sure to use the minified version.
You can then apply Bootstrap CSS class names to ASP.NET Button
controls, like this:
<asp:Button id="Button1"
runat="server"
CssClass="btn btn-primary"
Text="Bootstrap Button" />
The concept can be applied to the other ASP.NET server controls as well.
Upvotes: 5