How to bind a Controller to a Viewhttp://forums.asp.net/t/1775227.aspx/1?How+to+bind+a+Controller+to+a+ViewWed, 29 Feb 2012 19:47:03 -050017752274857278http://forums.asp.net/p/1775227/4857278.aspx/1?How+to+bind+a+Controller+to+a+ViewHow to bind a Controller to a View <p>Hi</p> <p class="post-count"><a href="/search?q=author%3A(&quot;eherrera&quot;)&amp;s=postdate&amp;d=desc">2 Posts</a></p> &lt;div class=&quot;comment-right-col&quot;&gt;<span class="comment-tail"></span><a name="4857131"></a> <h3>Hi All,</h3> <p>I am rather new to the MVC 3 environment, and I need help.</p> <p>I am trying to setup a MVC environment in a portal type of scenerio. So I setup a base project for MVC 3 in VS 2010. The following is the folder structure:</p> <ul> <li>Common </li><li>Controllers </li><li>Resources </li><li>Views </li><li>Project1 <ul> <li>Controllers </li><li>Views </li></ul> </li><li>Project2 <ul> <li>Controllers </li><li>Views </li></ul> </li></ul> <p>Question 1: how do I bind a specific Controller in /Project1/Controllers to Project1/Views?</p> <p>Question 2: How do I set up the Project1/Views folder? I know the default Views folder has a web.config file, and the MVC is setup to look in this folder by default. How do I change this behavior, so I can include the Project1/Views.</p> <p>&nbsp;</p> <p>Thank you,</p> <p>E.</p> &lt;/div&gt; 2012-02-29T17:24:42-05:004857378http://forums.asp.net/p/1775227/4857378.aspx/1?Re+How+to+bind+a+Controller+to+a+ViewRe: How to bind a Controller to a View <p>please read the mvc docs. view are not servered and not accessed by iis. in mvc the routemap (global.asax) turns a url into an controler action call. only a controler will load a view and it can use any path its wants to find a view (its work but you can define your own view paths)</p> 2012-02-29T18:37:50-05:004857433http://forums.asp.net/p/1775227/4857433.aspx/1?Re+How+to+bind+a+Controller+to+a+ViewRe: How to bind a Controller to a View <p>Bruce,</p> <p>Thank you for taking the time to comment. As you mentioned, the controller will load a view. I need to be able to tell the controller to look in other folder than the default /Views folder.</p> <p>You mentioned to read the mvc docs. I have been looking around, and I have not found that information. Can you provide a link.</p> <p>&nbsp;</p> <p>Thank you,</p> <p>E.</p> <p>&nbsp;</p> 2012-02-29T19:13:20-05:004857465http://forums.asp.net/p/1775227/4857465.aspx/1?Re+How+to+bind+a+Controller+to+a+ViewRe: How to bind a Controller to a View <p>Take a look at MVC areas. &nbsp;<a href="http://msdn.microsoft.com/en-us/library/ee671793.aspx">http://msdn.microsoft.com/en-us/library/ee671793.aspx</a></p> 2012-02-29T19:47:03-05:00