about displaying data in datalist

Y

Yoshitha

Hi

I have datalist control in my ASP.NET application
the problem here is
i have used a textbox with multiline true propertly when i enter data like

"fdjsfhjksdhfjsdfhsdjhfsdfhsdjfhsd
jfdsjfksdjfksdjkfjsdfjksdjfsdjfd
fdsfhjsdhfjsdhfjf dsjf dsjfhjsdfhjksdh d fdsjf
hsdjkfhdjsfhsdjfh ds
fdsf dshfjdhsjfhsdjhfjsdh fds
dsjfh sdfhdsfjdshfjhdsfds"

it is storing as it is ...when i displaying in the datalist like this
Dim con As New

OleDbConnection("provider=sqloledb;server=localhost;database=tempdb;trusted_
connection=Yes")
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles

MyBase.Load
Dim da As New OleDbDataAdapter("select * from Message", con)
Dim ds As New DataSet
da.Fill(ds, "Message")
dltMessages.DataSource = ds
dltMessages.DataBind()
End Sub
it is showing in a single line it is not displaying in paragrah wise .......

how to display data in data list as it is.
Please help me ....

thanx in advance
yoshitha
 
N

Nathan Sokalski

What are the values of the height and rows properties of the textbox?
TextBox controls do not automatically resize.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top