How to create an ASP.Net MVC 5 site using bootstrap free templates?

Here are the steps in making a beautiful bootstrap site using ASP.NET MVC 5.

1. Download a free template or you can buy a premium template if you want.  For our example, we will be using the free Grayscale template of StartBootstrap.  After downloading, you should get the following files:


2. Open Visual Studio 2013 and create an ASP.NET Web Application.


In configuring, the application must be MVC.

I included Web API because I used them a lot in my application.

And lastly, it must have an Authentication, I normally use the Individual User Accounts.

The last part is very important, because it’s very hard to add an authentication module once the project has been created, trust me, based on experience.


3.Once the project has been created, the next thing that we should do is to copy the files from our downloaded template to our project.  Make sure to overwrite any directories of the same name.


4. Open the BundleConfig.cs file in the App_Start directory and comment all contents in the RegisterBundles method as shown in the image below:


5. Now we will modify the Views.  In modifying the Views, all you need to do is to open the Index.html file included in the template and copy it to the corresponding Views.

The first View that will modify is the _Layout.cshtml, which is located in the Views\Shared folder.  Delete all the content and replace it with the code below.

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Grayscale - Start Bootstrap Theme</title>
    <!-- Bootstrap Core CSS -->
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="/css/grayscale.css" rel="stylesheet">
    <!-- Custom Fonts -->
    <link href="/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href=",700,400italic,700italic" rel="stylesheet" type="text/css">
    <link href=",700" rel="stylesheet" type="text/css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src=""></script>
        <script src=""></script>

<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">


6. Next, is to modify the Index.cshtml, which is located in Views\Home.  Delete all the content and replace it with the code below.

    ViewBag.Title = "Home Page";

    <!-- Navigation -->
<nav class="navbar navbar-custom navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse">
                <i class="fa fa-bars"></i>
            <a class="navbar-brand page-scroll" href="#page-top">
                <i class="fa fa-play-circle"></i>  <span class="light">Start</span> Bootstrap
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-right navbar-main-collapse">
            <ul class="nav navbar-nav">
                <!-- Hidden li included to remove active class from about link when scrolled up past about section -->
                <li class="hidden">
                    <a href="#page-top"></a>
                    <a class="page-scroll" href="#about">About</a>
                    <a class="page-scroll" href="#download">Download</a>
                    <a class="page-scroll" href="#contact">Contact</a>
        <!-- /.navbar-collapse -->
    <!-- /.container -->
<!-- Intro Header -->
<header class="intro">
    <div class="intro-body">
        <div class="container">
            <div class="row">
                <div class="col-md-8 col-md-offset-2">
                    <h1 class="brand-heading">Grayscale</h1>
                    <p class="intro-text">A free, responsive, one page Bootstrap theme.<br>Created by Start Bootstrap.</p>
                    <a href="#about" class="btn btn-circle page-scroll">
                        <i class="fa fa-angle-double-down animated"></i>
<!-- About Section -->
<section id="about" class="container content-section text-center">
    <div class="row">
        <div class="col-lg-8 col-lg-offset-2">
            <h2>About Grayscale</h2>
            <p>Grayscale is a free Bootstrap 3 theme created by Start Bootstrap. It can be yours right now, simply download the template on <a href="">the preview page</a>. The theme is open source, and you can use it for any purpose, personal or commercial.</p>
            <p>This theme features stock photos by <a href="">Gratisography</a> along with a custom Google Maps skin courtesy of <a href="">Snazzy Maps</a>.</p>
            <p>Grayscale includes full HTML, CSS, and custom JavaScript files along with LESS files for easy customization.</p>
<!-- Download Section -->
<section id="download" class="content-section text-center">
    <div class="download-section">
        <div class="container">
            <div class="col-lg-8 col-lg-offset-2">
                <h2>Download Grayscale</h2>
                <p>You can download Grayscale for free on the preview page at Start Bootstrap.</p>
                <a href="" class="btn btn-default btn-lg">Visit Download Page</a>
<!-- Contact Section -->
<section id="contact" class="container content-section text-center">
    <div class="row">
        <div class="col-lg-8 col-lg-offset-2">
            <h2>Contact Start Bootstrap</h2>
            <p>Feel free to email us to provide some feedback on our templates, give us suggestions for new templates and themes, or to just say hello!</p>
                <a href=""></a>
            <ul class="list-inline banner-social-buttons">
                    <a href="" class="btn btn-default btn-lg"><i class="fa fa-twitter fa-fw"></i> <span class="network-name">Twitter</span></a>
                    <a href="" class="btn btn-default btn-lg"><i class="fa fa-github fa-fw"></i> <span class="network-name">Github</span></a>
                    <a href="" class="btn btn-default btn-lg"><i class="fa fa-google-plus fa-fw"></i> <span class="network-name">Google+</span></a>
<!-- Map Section -->
<div id="map"></div>
<!-- Footer -->
    <div class="container text-center">
        <p>Copyright &copy; Your Website 2014</p>
<!-- jQuery -->
<script src="/js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="/js/bootstrap.min.js"></script>
<!-- Plugin JavaScript -->
<script src="/js/jquery.easing.min.js"></script>
<!-- Google Maps API Key - Use your own API key to enable the map feature. More information on the Google Maps API can be found at -->
<script type="text/javascript" src=""></script>
<!-- Custom Theme JavaScript -->
<script src="/js/grayscale.js"></script>

Now run your project.  You should get this beautiful page in your localhost 🙂


For the complete source code, you can download it in GitHub.

That’s it.  Happy coding and if you find this blog helpful, you can make the donation by clicking the Paypal button below.


3 thoughts on “How to create an ASP.Net MVC 5 site using bootstrap free templates?

  1. it really a great and very helpful post for me….I have created the same themes and applying my changes to this themes for my learning.. thanks a ton.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s