title: ASP.net C# New line
body: <p><br>
  I need help with making a line break.
  I have this code:</p>
  
  <pre><code>&lt;asp:Repeater runat="server" ID="rptPosts"&gt;
      &lt;ItemTemplate&gt;
          &lt;h2&gt;&lt;%#Server.HtmlEncode(Eval("post_title").ToString()) %&gt;&lt;/h2&gt;
          &lt;em&gt;&lt;%#Server.HtmlEncode(Eval("post_posted").ToString()) %&gt;&lt;/em&gt;
          &lt;br /&gt;
          &lt;%#Server.HtmlEncode(Eval("post_content").ToString()) %&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>I want to make post_content generate automatic new lines. I've tried with environment.newline but I can't seem to get it to work.</p>
  
  <p>EDIT:
  <br>
  I mean to generate HTML breaks. Like nl2br() in PHP.</p>