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?
Collection<PSObject> output = pipeline.Invoke(); is where I stored results.
Here a sample C# codes,
foreach(PSObject psObject in output)
{
Label ipLabel = new Label();
ipLabel.Text = psObject + "\r\n";
div1.Controls.Add(ipLabel);
}
Here a asp.net codes,
<div id="div1" runat="server"></div>
I got the right Label results but it all displayed in 1 div line instead of every div new line .
Repeatercontrol sounds like what you're looking for...