ASP.NET MVC 4 and Twitter Bootstrap


How to use twitter bootstrap in an mvc4 application. please provide proper guideline step by step.


There are no guildlines per say. Its a framework, not a template. With that said, you would grab one of the example pages, and copy the source into your site master or master template.

Basic HTML template

When creating the menu, I'd create a custom user control (ascx) file with the following starter code:

    <ul class="nav">
            <li><a href="<%# Url.Content("~/home") %>">Home</a> </li>
            <li><a href="<%# Url.Content("~/contact") %>">Contact</a> </li>

When using Bootstrap, cutomize the colors and plugins here and save a lot of time:

Customize and download

This article has been dead for over six months: Start a new discussion instead
Start New Discussion
Tags Related to this Article