Bootstrap modal form does not close after submit

后端 未结 4 1999
暗喜
暗喜 2021-01-02 20:39

What I need to do is to show a popup to add a new record to my database, im using bootstrap 3 and I love it because im not using a single line of jquery, and I have really n

4条回答
  •  轮回少年
    2021-01-02 20:40

    I used JavaScript to control the page redirection and reloading.

    Options which I used are:

    1. Return a JavaScript function to refresh the host page instead of a RedirectToAction, when the controller action is successful.

      return this.Content("< script >location.reload()< /script >");

    2. Return a JavaScript function to redirect the client to the page.
      How to redirect to another webpage in JavaScript/jQuery?

    3. RedirectToAction which has the required JavaScript redirection or reloading logic within the view

提交回复
热议问题