J
JezB
I have a loop in which I'm adding hyperlinks to a page dynamically :-
foreach (string x in ...)
{
HyperLink h = new HyperLink();
h.Text = x;
h.NavigateUrl = x+".aspx";
this.Controls.Add(h);
}
This works fine but the controls are added one after each other in one long
line. How do I force each one to be displayed on a new line ?
foreach (string x in ...)
{
HyperLink h = new HyperLink();
h.Text = x;
h.NavigateUrl = x+".aspx";
this.Controls.Add(h);
}
This works fine but the controls are added one after each other in one long
line. How do I force each one to be displayed on a new line ?