Friday, 30 November 2018

MVC - Visual Studio 2015 and 2017 - Fix Error - 0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'dialog'

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'dialog'

Watch this on YouTube





1. Install nuget jQuery.UI.Combined.
2. Modify layout.chtml file so it has at the top:

    <title>@ViewBag.Title - My ASP.NET Application</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/Scripts/jquery-1.12.4.min.js")
    @Scripts.Render("~/Scripts/jquery-ui-1.12.1.js")

and at the bottom:

    @Styles.Render("~/Content/themes/base/jquery-ui.css")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
</body>


No comments:

Post a Comment