title: Is it possible to set the color and other controls for a literal control in code in asp.net?
body: <p>I am coding a dynamic asp.net page in which i want to have text boxes in a page and the number of text boxes depend on a previous user input. Since the number of text boxes are decided dynamically, I am going with designing them in code rather than in the aspx page.Now I need these fields to be mandatory and so want to indicate a RED asterisk symbol in front of the label corresponding to each text box.I am really new to working in .net and I couldn't figure out how to set a specific color to a labelcontrol. I found the following syntax while doing a google search but it didnt help.</p>
  
  <pre><code>Dim asteric As New LiteralControl() 
  asteric.Text = "&lt;font color\"red\"&gt;*&lt;/font&gt;"
  </code></pre>
  
  <p>I am not sure whether i am missing something very small here.I really appreciate any help in this issue.</p>