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.