title: When to use Literal vs LiteralControl?
body: <p>What are the appropriate use of these two controls? From time to time I build up HTML in the code behind. Sometimes I want to output white space and I end up doing something like this.</p>
  
  <pre><code>const string twoSpaces = "&amp;nbsp;&amp;nbsp;";
  p.Controls.Add(new Literal { Text = twoSpaces });
  </code></pre>
  
  <p>or</p>
  
  <pre><code>const string twoSpaces = "&amp;nbsp;&amp;nbsp;";
  p.Controls.Add(new LiteralControl { Text = twoSpaces });
  </code></pre>
  
  <p>My question is, is this an appropriate use of these controls? Should I be adding whitespace this way? When do I use one over the other?</p>
  
  <p>I realize I could probably do something with CSS, but I really want to know what are the purposes of these two controls, and is there anything inherently wrong with using them in this fashion.</p>