ASP.Net Bootstrap


  • Dear folks,

    I am trying to build a new web form application whose master page will be based on Bootstrap framework, 

    so for that reason in the the bundleConfig.cs file I have written the following code

    bundles.Add(new ScriptBundle("~/Scripts/Bootstrap").Include(

    Furthermore in the Globax.asax.cs file I have created a new Script Manager definition by writting

    ScriptManager.ScriptResourceMapping.AddDefinition("Bootstrap", new ScriptResourceDefinition
                    Path = "~/Scripts/bootstrap.min.js",
                    DebugPath = "~/Script/bootstrap.js",
                    CdnPath = "",
                    CdnDebugPath = ""

    and in the master page in the Script Manager I have created rendered the following code:

    <%--Site Scripts--%>     
                <asp:ScriptReference Name="Bootstrap" />      

    However, when I run my project I receive the following error:

    The name Bootstrap must end in .js. Do you know why? Do i have to create somewhere a WebResource that is named Bootstrap?

    Thanks in advance

    Thursday, June 6, 2013 8:58 AM

All replies