title: Set the background color only for a part of a label asp.net
body: <p>I am adding labels dynamically to a page, there are a few labels that have to be marked as required . Below is the code </p>
  
  <pre><code> Panel1.Controls.Add(new LiteralControl("&lt;td&gt;"));
          if (required)
          {
              Mynewlabel.Text = lblname + " *";
              Mynewlabel.BackColor = System.Drawing.Color.Red;
          }
          ControlsPanel.Controls.Add(Mynewlabel);
          ControlsPanel.Controls.Add(new LiteralControl("&lt;/td&gt;"));
  </code></pre>
  
  <p>Setting Mynewlabel.BackColor makes the complete label back color as red , rather I just want the * sign to be in Red ...I am not sure if it is do-able.</p>
  
  <p>Please provide your inputs.</p>