tags:

views:

18

answers:

1

Hi, I have a scenario in my application, by saving a text of length 20000 chars without line break in between.When i retrieve the same to an asp.net textbox control my UI is stretching to the length of these 2000 chars in a single line . I have to wrap the text automatically inside text box. Can any one help to solve this issue ?

Thanks in advance. Pradeep

A: 

You need to set the columns property of the textbox to the maximum width you want.

There is also a width property that will also set the width to a specific pixel size.

In either case, you need to specify that the text in the textbox should wrap by setting the wrap property to true.

<asp:TextBox ID="txt" columns="20" wrap="true" runat="server" />
Oded
Thanks dude.Its working.
Pradeep