Giter Site home page Giter Site logo

Comments (3)

RickTheHat avatar RickTheHat commented on September 6, 2024

The code that does the redirect is in "wwwroot/js/site.js" so if you're creating a new project, you will want to add this as the "return this.RedirectToPageJson("Index");" uses it to do the redirect.

See pic below...

CapturFiles-20210124_082334

from contosouniversitydotnetcore-pages.

RickTheHat avatar RickTheHat commented on September 6, 2024

Take note that bootstrap was updated to v4 in this latest code so classes like "has-error" are gone and I now get flashing for validation but I just comment out the @Html.ValidationDiv() and go back to the original validation.

As I work my way thru learning this new architecture (which I like very much!!!) ... I'll see if I an fix it and make a PR for others running into this issue.

This works for me for now

<div asp-validation-summary="ModelOnly" class="text-danger"></div>
@* @Html.ValidationDiv() *@

from contosouniversitydotnetcore-pages.

cdgipson avatar cdgipson commented on September 6, 2024

Something in this method or sub-methods was throwing an error stating that it could not find _.reject(). I found this by adding the alert statement to the catch.

var highlightErrors = function (xhr) {
    try {
        var data = JSON.parse(xhr.responseText);
        highlightFields(data);
        showSummary(data);
        window.scrollTo(0, 0);
    } catch (e) {
        alert(e);
        // (Hopefully) caught by the generic error handler in `config.js`.
    }
};

To fix this, I had to replace the following.

<script src="~/lib/lodash/dist/core.js"></script>

with this

<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>

Hope this helps.

from contosouniversitydotnetcore-pages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.