title: Insert a page break in a generated HTML .doc
body: <p>I am currently generating a .doc file as <strong>html</strong> using asp.NET.</p>
  
  <p>I wish to insert a page break to the page but don't know how.</p>
  
  <p>I've tried using the css style='page-break-before:always' but it does nothing.</p>
  
  <p>This is the code assigned to a button click event:</p>
  
  <pre><code>    HttpContext.Current.Response.Clear();
      HttpContext.Current.Response.Charset ="";
  
      HttpContext.Current.Response.ContentType ="application/msword";
  
      string strFileName = "GenerateDocument"+ ".doc";
      HttpContext.Current.Response.AddHeader("Content-Disposition","inline;filename=" + strFileName);
  
      StringBuilder strHTMLContent = new StringBuilder();
  
      strHTMLContent.Append("&lt;p align='Center'&gt;Content Before Page Break&lt;/p&gt;".ToString());
  
      strHTMLContent.Append("&lt;br&gt;&lt;br&gt;".ToString());
      strHTMLContent.Append("&lt;p class='pageBreak' style='mso-special-character:line-break;'&gt;meh&lt;/p&gt;".ToString());
  
      strHTMLContent.Append("&lt;br&gt;&lt;br&gt;".ToString()); 
      strHTMLContent.Append("&lt;p align='Center'&gt;Content After Page Break&lt;/p&gt;".ToString());
  
      HttpContext.Current.Response.Write(strHTMLContent);
      HttpContext.Current.Response.End();
      HttpContext.Current.Response.Flush();
  </code></pre>