title: Write Html Markup from code behind in asp.net
body: <blockquote>
    <p><strong>If The title is confusing suggest to change it</strong></p>
  </blockquote>
  
  <p>What is the Best way to write my own HTML from code behind?</p>
  
  <p>I currently use this:</p>
  
  <pre><code>&lt;asp:Literal ID="ltr" runat="server"&gt;&lt;/asp:Literal&gt;
  </code></pre>
  
  <p>and from code behind: </p>
  
  <pre><code>ltr.Text = "&lt;p class=\"specific-class\"&gt;&lt;/p&gt;";
  </code></pre>
  
  <p>Is it a right to do something like this?</p>
  
  <p>Is there a better way to do this?</p>