How can I use Html.Action?

前端 未结 3 574
误落风尘
误落风尘 2020-12-01 10:10

I am trying to understand how to use:

@Html.Action(\"GetOptions\", )

What I would like to do is to pass a call to my controller and pass th

3条回答
  •  被撕碎了的回忆
    2020-12-01 11:02

    Another case is http redirection. If your page redirects http requests to https, then may be your partial view tries to redirect by itself.

    It causes same problem again. For this problem, you can reorganize your .net error pages or iis error pages configuration.

    Just make sure you are redirecting requests to right error or not found page and make sure this error page contains non problematic partial. If your page supports only https, do not forward requests to error page without using https, if error page contains partial, this partials tries to redirect seperately from requested url, it causes problem.

提交回复
热议问题