none
ASP.Net Bootstrap

    Question

  • 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(
                    "~/Scripts/bootstrap.min.js"));

    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 = "http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.js",
                    CdnDebugPath = "http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"
                });

    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 06, 2013 8:58 AM

All replies