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. Save Formatted text From a Textbox control in database

Save Formatted text From a Textbox control in database

Scheduled Pinned Locked Moved ASP.NET
database
5 Posts 3 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.
  • V Offline
    V Offline
    vkumar09
    wrote on last edited by
    #1

    In a Text box control I've written some text which are divided into Three Paragraps....Now I want to save text in database in same paragraph format...so that during display data should be displayed in three paragraphs.

    N B 2 Replies Last reply
    0
    • V vkumar09

      In a Text box control I've written some text which are divided into Three Paragraps....Now I want to save text in database in same paragraph format...so that during display data should be displayed in three paragraphs.

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      kbsaha wrote:

      so that during display data should be displayed in three paragraphs.

      It depends on where you are displaying the data. If it is on a Literal or writing to response, you need to replace the \n characters with <br> and \t characters with &nbsp. If the text is displaying in the text box itself, you don't need any conversions.

      Navaneeth How to use google | Ask smart questions

      V 1 Reply Last reply
      0
      • N N a v a n e e t h

        kbsaha wrote:

        so that during display data should be displayed in three paragraphs.

        It depends on where you are displaying the data. If it is on a Literal or writing to response, you need to replace the \n characters with <br> and \t characters with &nbsp. If the text is displaying in the text box itself, you don't need any conversions.

        Navaneeth How to use google | Ask smart questions

        V Offline
        V Offline
        vkumar09
        wrote on last edited by
        #3

        I'm Displayind the data in a td.

        N 1 Reply Last reply
        0
        • V vkumar09

          I'm Displayind the data in a td.

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          So you have to replace as I said.

          Navaneeth How to use google | Ask smart questions

          1 Reply Last reply
          0
          • V vkumar09

            In a Text box control I've written some text which are divided into Three Paragraps....Now I want to save text in database in same paragraph format...so that during display data should be displayed in three paragraphs.

            B Offline
            B Offline
            bilal_yousaf_hussain
            wrote on last edited by
            #5

            What I have understood from your question, it totally depends on where you are displaying the data. Thanks, Bilal Yousaf Hussain

            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