title: C#, how to generate new html Div during foreach loop?
body: <p>Depend of number of results I got like 3 results and I want to assign each result to label text and put to new Div each new line. How I do that?</p>
  
  <p><code>Collection&lt;PSObject&gt; output = pipeline.Invoke();</code> is where I stored results.</p>
  
  <p>Here a sample C# codes,</p>
  
  <pre><code>foreach(PSObject psObject in output)
          {
              Label ipLabel = new Label();
              ipLabel.Text = psObject + "\r\n";
              div1.Controls.Add(ipLabel);
          }
  </code></pre>
  
  <p>Here a asp.net codes,</p>
  
  <pre><code>&lt;div id="div1" runat="server"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I got the right Label results but it all displayed in 1 div line instead of every div new line .</p>