tags:

views:

28

answers:

1

I want to use a multiline label but as the control is brouser dependent,even on setting the height width and wrap property of the label control i am unable to display a multiline text...It doesn't support every brouser in the same way... Can anyone help me out

+3  A: 

If you mean asp:Label then it resolves to a span element in HTML output. It is neither single-line or multiline.

Define some fixed width for this element and the text will wrap into several lines when it's long enough.

<asp:Label runat="server" style="width:300px;">
Developer Art