Home All Groups Group Topic Archive Search About

Add link to Next Line

Author
7 Jul 2006 1:41 PM
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.


Thanks in advance


Ros

Author
7 Jul 2006 4:28 PM
Jared Parsons [MSFT]
Hello Ros,

Show quoteHide quote
> 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]
jared***@online.microsoft.com
All opinions are my own. All content is provided "AS IS" with no warranties,
and confers no rights.
Author
7 Jul 2006 7:21 PM
Ros
thank Jared. That worked great.



Ros

Show quoteHide quote
"Jared Parsons [MSFT]" wrote:

> 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]
> jared***@online.microsoft.com
> All opinions are my own. All content is provided "AS IS" with no warranties,
> and confers no rights.
>
>
>