title: Manually setting path to a cshtml file and ignoring the MVC Logic
body: <p>Let's say i have 2 files located in the same folder.</p>
  
  <p>/Test/View.cshtml</p>
  
  <pre><code>&lt;h1&gt;File that needs to be loaded in to a string&lt;/h1&gt;
  </code></pre>
  
  <p>/Test/Content.cs</p>
  
  <pre><code>public class Content {
      public string GetView()
      {
          Return View("/Test/View.cshtml",someModel)
      }
  }
  </code></pre>
  
  <p>It should not cair about the RouteData from Web.Config</p>
  
  <p>The point of doing this is, so that i am able to retrieve the GetView and use it elsewhere.</p>
  
  <p>I know this question and approch is wierd but i am in a uniq situation developeing a CMS system, so i really need something like this.</p>
  
  <p>How could i achieve this :)?</p>
  
  <hr>
  
  <p><strong>Update: Explanation</strong></p>
  
  <p>_Layout.cshtml</p>
  
  <p>This file has no RenderBody as it normally has. Instead it has different Areas like this one.</p>
  
  <pre><code>@{
      Render r = new Render("Content");
  }
  @r.Print()
  </code></pre>
  
  <p>Each area are printing out different modules, fx: a newsletter or a gallery. And for that to be possible this is done:</p>
  
  <pre><code>public interface IModule
  {
      string Name { get; set; }
      int Id { get; set; }
      string View();
  }
  
  
  public class ModuleList
  {
      public List&lt;IModule&gt; Modules = new List&lt;IModule&gt;();
  
      public ModuleList()
      {
          Modules.Add(new ContentView() { Name = "Content" });
          Modules.Add(new GalleryView() { Name = "Gallery" });
          Modules.Add(new NewsletterView() { Name = "Newsletter" });
      }
  }
  </code></pre>
  
  <p>And here is is the ContentView Class (One of many Modules)</p>
  
  <pre><code>public class ContentView: IModule
  {
      public string Name { get; set; }
      public int Id { get; set; }
  
      DbModulesDataContext db = new DbModulesDataContext();
  
      public string View()
      {
          var q = (from c in db.mContents
                   where c.Id == Id
                   select c).FirstOrDefault();
          return ("&lt;h1&gt;"+q.Html+"&lt;/h1&gt;");
      }
  }
  </code></pre>
  
  <p>As you can see right now the html is inline with the c# but i want it the other way around. (i want the View() to work together with a cshtml file)</p>
  
  <p>Does it make a little more sence now?</p>