Ajax request when background jump front page does not update pit record

Source: Internet
Author: User

Pit environment: Front end: Ajax POST request, JSON type data, backend C#+mvc, the front and back end of normal communication, but when the background verification permission does not pass redirecttoaction jump to the login page, the result is the background normal execution of the login page rendering, After rendering is complete, the front end Ajax enters error and the page does not refresh.

The check page does not jump because the background render the page as a string return, by Ajax received, because the front-end set JSON format so enter the error, it seems to need to return to the background status and URL, front-end JS to page jump, but always feel so inconvenient, Continue to study whether to achieve background jump, there is a plan to update the content.

Ajax request when background jump front page does not update pit record

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.