我如何知道哪个视图调用哪个方法。 [英] How I get to know which method is called by which view.

查看:128
本文介绍了我如何知道哪个视图调用哪个方法。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

如何通过View了解我打电话给哪个控制器,以及我如何知道。



我从ActionLink调用哪个控制器和哪个视图的方法..?





我对此方法,控制器感到困惑和视图..用rout.Map。



因为我无法弄清楚以上那些..?





你能告诉我所有这些以及如何制作一些文件夹基础架构。







谢谢。

Dear All,
How I get to know which controller I am calling through View and same as how I get to know.

which method of which controller and which view I am calling from ActionLink..?


I am getting confuse about this Method, Controller and View.. with rout.Map.

because I am not able to figure out those above..?


can you shed me what all those and how I can make into some folder base architecture.



Thank you.

推荐答案

根据你的问题我很简单,你得到的是你想知道如何获得特定视图的相应方法/控制器。做一件事去做每个动作方法并右键单击然后去查看。您也可以反过来查看并右键单击并转到控制器。并且使用路线图,它与你给出的控制器和动作/方法有关系,如果你传递任何参数,它与参数有关系。因此,如果指定了一个视图,那么从相应的操作中,如果用户调用该操作方法,它将向用户呈现视图。

感谢希望这有助于
Its quite simple as per your question what I get is you want to know how to get the respective method/controller of a particular view. Do one thing go to every action methods and right click and then go to view. You can do the reverse too go to View and right click and go to controller. And with the route map, It has relation with the controller you give and the action/method and with it the parameters if you pass any. So from that respective action if there is a view specified it will render the user that view, if that action method is called by the User.
Thanks hope this helps


这篇关于我如何知道哪个视图调用哪个方法。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆