Add link to Next Line

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Peeps,


I'm able to generate the links... but i would like to put each link on a
line after line.

this is in the default.aspx.vb

Dim lnk As New HyperLink
....
panel.controls.add(lnk)

but the links are added on the same line and/or wordwrap to the next line. i
had tried control.rendercontrol, but no such luck and if that is actually
what i need to work with.

Any direction and/or sample codes would help.


Thanks in advance


Ros
 
Hello Ros,
Peeps,

I'm able to generate the links... but i would like to put each link on
a line after line.

this is in the default.aspx.vb

Dim lnk As New HyperLink
....
panel.controls.add(lnk)
but the links are added on the same line and/or wordwrap to the next
line. i had tried control.rendercontrol, but no such luck and if that
is actually what i need to work with.

Any direction and/or sample codes would help.

Try adding a break return (br) tag after each link

parent.controls.Add(new WebControl(HtmlTextWriterTag.Br))
 
thank Jared. That worked great.



Ros

Jared Parsons said:
Hello Ros,
Peeps,

I'm able to generate the links... but i would like to put each link on
a line after line.

this is in the default.aspx.vb

Dim lnk As New HyperLink
....
panel.controls.add(lnk)
but the links are added on the same line and/or wordwrap to the next
line. i had tried control.rendercontrol, but no such luck and if that
is actually what i need to work with.

Any direction and/or sample codes would help.

Try adding a break return (br) tag after each link

parent.controls.Add(new WebControl(HtmlTextWriterTag.Br))

--
Jared Parsons [MSFT]
(e-mail address removed)
All opinions are my own. All content is provided "AS IS" with no warranties,
and confers no rights.
 
Back
Top