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 aspx page with html tags

Save aspx page with html tags

Scheduled Pinned Locked Moved ASP.NET
htmldatabasevisual-studiosecurityquestion
4 Posts 4 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
    vanikanc
    wrote on last edited by
    #1

    Hello, The user is given a text box to enter text. What would we need to do, to allow user to save the text along with HTML tags? VS 2010 is not allowing this due to security reasons. Is there a way we can save text like Testing? We are trying to save this test to the database. Many thanks!

    R B A 3 Replies Last reply
    0
    • V vanikanc

      Hello, The user is given a text box to enter text. What would we need to do, to allow user to save the text along with HTML tags? VS 2010 is not allowing this due to security reasons. Is there a way we can save text like Testing? We are trying to save this test to the database. Many thanks!

      R Offline
      R Offline
      R Giskard Reventlov
      wrote on last edited by
      #2

      Not enough information. If all you want to do is save some text to a database that is simple as would be saving to a file: there are thousands of examples of how to do this both here and through Google. What do you mean by HTML tags? Where are they from? The page itself? You need to be clear about what you are trying to do though I have to say this does sound liek homework even though you say 'we'.

      "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

      1 Reply Last reply
      0
      • V vanikanc

        Hello, The user is given a text box to enter text. What would we need to do, to allow user to save the text along with HTML tags? VS 2010 is not allowing this due to security reasons. Is there a way we can save text like Testing? We are trying to save this test to the database. Many thanks!

        B Offline
        B Offline
        Bernhard Hiller
        wrote on last edited by
        #3

        I experienced that problem also: the text in the text box contained html tags (<b>Testing</b>), and I received some security warnings. Sorry that I do not remember how I resolved that, but I can confirm the existence of the problem.

        1 Reply Last reply
        0
        • V vanikanc

          Hello, The user is given a text box to enter text. What would we need to do, to allow user to save the text along with HTML tags? VS 2010 is not allowing this due to security reasons. Is there a way we can save text like Testing? We are trying to save this test to the database. Many thanks!

          A Offline
          A Offline
          amargujrathi2006
          wrote on last edited by
          #4

          Find Here[^]. After reading this, you can think about what to do with ValidationRequest flag.

          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