wrap html text with .Net Component

  • Thread starter Thread starter sck10
  • Start date Start date
S

sck10

Hello,

How do you wrap a .NET component over multiple lines? I have the following
that is on one line and I would like to break it over 3 lines?

Thanks,

<asp:Literal id="ltlDivide" text='<%#
vbBlankRow(DataBinder.Eval(Container,"DataItem.strWebDocGroup"),
DataBinder.Eval(Container,"DataItem.strWebDocPaper")) %>' runat="server" />
 
I would try to wrap your literal in a fixed width div with overflow set to
auto, I think that should give you the flexibility for it to wrap text
without breaking words and you dont have to pick apart the string. Failing
that - wrap your Dtaabinder.eval in another method that splits the string
value using mid.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
Back
Top