datalist bound to a multiline textbox problem! [modified]
-
Hi, I am using datalist to display a Datatable, which contains one text from a multiline textbox, I found that the multiline mode does not maintains anymore in the datalist, that is to say, the text is diaplayed in one or two every long lines I want to know what parameter determine the displayed width of one line? I tried several parameters, no any effect. how to solve this problem? thanks!
modified on Sunday, September 6, 2009 10:11 AM
-
Hi, I am using datalist to display a Datatable, which contains one text from a multiline textbox, I found that the multiline mode does not maintains anymore in the datalist, that is to say, the text is diaplayed in one or two every long lines I want to know what parameter determine the displayed width of one line? I tried several parameters, no any effect. how to solve this problem? thanks!
modified on Sunday, September 6, 2009 10:11 AM
Have a look, http://forums.asp.net/p/1377929/2903666.aspx[^] and http://forums.asp.net/p/1375350/2890481.aspx#2890481[^] Hope this will resolve your problem.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Have a look, http://forums.asp.net/p/1377929/2903666.aspx[^] and http://forums.asp.net/p/1375350/2890481.aspx#2890481[^] Hope this will resolve your problem.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
thanks, actually I have read this two articles before I asked the question here. I found that my problem is different with those mentioned in the articles. My prblem is originated from the save of the multiline text into database. I have checked that if I use 'return' by hand during input text, then the text is correctly saved into database (SQL), but if I do not use 'return' by hand, then the multiline text becomes automatically one line in the database. By the way, I have used 'Text' format to save the text into SQL datatable. i.e. now the problem is becoming: how to let SQL tabel knows the input is multiline text. one strange thing is that: the set width (even small) of DataList control can not display the text into multilines.