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. textbox contain text that save as html page

textbox contain text that save as html page

Scheduled Pinned Locked Moved ASP.NET
helphtmlquestion
3 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.
  • D Offline
    D Offline
    Deepak the Cool
    wrote on last edited by
    #1

    textbox contain text with html tags and i want to save text with html tags in file called test.html when i click on save button. when i remove html tags then file are save properly. but when i use html tags then an error occured. so how can i resolve the problem. text box contain this text. abc

    hello

    World

    how can i save this text a html file. dcjoshi2

    T C 2 Replies Last reply
    0
    • D Deepak the Cool

      textbox contain text with html tags and i want to save text with html tags in file called test.html when i click on save button. when i remove html tags then file are save properly. but when i use html tags then an error occured. so how can i resolve the problem. text box contain this text. abc

      hello

      World

      how can i save this text a html file. dcjoshi2

      T Offline
      T Offline
      thomas_joyee
      wrote on last edited by
      #2

      What is that error? Do u set the validateRequest="false" tag in the page directive?

      Thomas

      1 Reply Last reply
      0
      • D Deepak the Cool

        textbox contain text with html tags and i want to save text with html tags in file called test.html when i click on save button. when i remove html tags then file are save properly. but when i use html tags then an error occured. so how can i resolve the problem. text box contain this text. abc

        hello

        World

        how can i save this text a html file. dcjoshi2

        C Offline
        C Offline
        cloudking11966
        wrote on last edited by
        #3

        It can give two problems 1) Request validation failed, so you will have to give ValidateRequest="False" in <%@page %> directive. 2) if it gives error while saving into database or other, just give Server.HtmlEncode(TextBox1.text)

        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