Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. datalist bound to a multiline textbox problem! [modified]

datalist bound to a multiline textbox problem! [modified]

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Seraph_summer
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • S Seraph_summer

      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

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      0
      • A Abhijit Jana

        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.

        S Offline
        S Offline
        Seraph_summer
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups