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. HTML data from textarea is not being saved into DB

HTML data from textarea is not being saved into DB

Scheduled Pinned Locked Moved ASP.NET
databasehtmlsysadminhelp
4 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.
  • S Offline
    S Offline
    Suman Singh
    wrote on last edited by
    #1

    Hi all, I am using a textarea When I enter this text : <p>Hello</p> The data doesn't save to database... But, when I enter this text : Hello It works fine... It works fine on Localhost (for both cases) But on the server the data with HTML tags are not being saved... Please help... Suman Singh </x-turndown>

    N 1 Reply Last reply
    0
    • S Suman Singh

      Hi all, I am using a textarea When I enter this text : <p>Hello</p> The data doesn't save to database... But, when I enter this text : Hello It works fine... It works fine on Localhost (for both cases) But on the server the data with HTML tags are not being saved... Please help... Suman Singh </x-turndown>

      N Offline
      N Offline
      Nagraj Naik
      wrote on last edited by
      #2

      Hi, Please clarify your problem in proper words.....I could not get your problem. By the way,You can use multiline property of textbox which is similar to textarea control. I hope it will help you........

      N S 2 Replies Last reply
      0
      • N Nagraj Naik

        Hi, Please clarify your problem in proper words.....I could not get your problem. By the way,You can use multiline property of textbox which is similar to textarea control. I hope it will help you........

        N Offline
        N Offline
        Naveed Kamboh
        wrote on last edited by
        #3

        Hi Friends, Its a genuine problem i am also facing this. let me explain this a little bit. i have a textbox with multilines on my form. name text1 if i am using "insert into tbl1 field1 values '" + text1.Text + "')"; now if i put vlaue in text box "Hello every one" and clik on button to run the code it inserts the vlaue into table no problem. but if i enter vlaue "

        Hello every one" this is where i am using a html tag. It throws exception. Naveed Kamboh

        1 Reply Last reply
        0
        • N Nagraj Naik

          Hi, Please clarify your problem in proper words.....I could not get your problem. By the way,You can use multiline property of textbox which is similar to textarea control. I hope it will help you........

          S Offline
          S Offline
          Suman Singh
          wrote on last edited by
          #4

          Nagraj, Thanks for your interest to my problem.. I m using textarea in a form. If I enter any text such as "suman singh", it workss fine and save data into database. But if I enter "

          suman singh

          ", it does not save the data into database. I don't have any problem on localhost, but when I uploaded dll files and aspx files to the server, this problem occurs... Please help... Regards, Suman Singh

          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