title: How to convert Razor Page to String in Controller
body: <p>Just want to ask on how to convert the whole Razor page(.cshtml) into string in Controller.</p>
  
  <p>i have a created an Action Template below:</p>
  
  <pre><code>public ActionResult Template()
      {
          return View();
      }
  </code></pre>
  
  <p>and in the page it shows below:</p>
  
  <pre><code>&lt;div style="margin-left:auto; margin-right:auto; width: 940px"&gt;
      &lt;div class="logo"&gt;
          &lt;img src="/Content/assets/img/logo.png" /&gt;
      &lt;/div&gt;
      &lt;div class="dbox"&gt;
          &lt;label class="clabel"&gt;Test1 # &lt;/label&gt;          &lt;span&gt;: Value1&lt;/span&gt;&lt;br&gt;
          &lt;label class="clabel"&gt;Test2 &lt;/label&gt;                &lt;span&gt;: Value2&lt;/span&gt;&lt;br&gt;
          &lt;label class="clabel"&gt;Test2 &lt;/label&gt;            &lt;span&gt;: Value3&lt;/span&gt;&lt;br&gt;
          &lt;label class="clabel"&gt;Test3 : &lt;/label&gt;          &lt;span&gt;: Value4&lt;/span&gt;&lt;br&gt;
          &lt;label class="clabel"&gt;Test4 &lt;/label&gt;            &lt;span&gt;: Value5&lt;/span&gt;&lt;br&gt;
          &lt;label class="clabel"&gt;Test5 Change &lt;/label&gt;     &lt;span&gt;: Value6&lt;/span&gt;&lt;br&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>how do i convert that into string?</p>