Can we call two actionresult/controller at once in

2019-09-07 08:11发布

问题:

Can we call Two ActionResult /Controller function at once which both return partial view?

回答1:

No you can't call two actions at the same time using one URI. This is because the routing table will only match one route and then pass execution to that controller and action. You can call another action from within that action, but I wouldn't recommend it and would just have your client send another request to the server for that other action you want to run.