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 TAGS

HTML TAGS

Scheduled Pinned Locked Moved ASP.NET
htmlquestion
6 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.
  • M Offline
    M Offline
    MoeInsairat
    wrote on last edited by
    #1

    hey guys The user shouldn't put any html tags in the TEXTBOX, how can i handel this.

    Estarta

    T 1 Reply Last reply
    0
    • M MoeInsairat

      hey guys The user shouldn't put any html tags in the TEXTBOX, how can i handel this.

      Estarta

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

      User regular expressions to find any html. Check this link for more info about regluar expressions and then be creative.

      GameFly free trial

      M 1 Reply Last reply
      0
      • T ToddHileHoffer

        User regular expressions to find any html. Check this link for more info about regluar expressions and then be creative.

        GameFly free trial

        M Offline
        M Offline
        MoeInsairat
        wrote on last edited by
        #3

        thanks alot for your reply, but this not what im looking for :( i wanna prevent the user from using HTML tags or any special characters in the input box. thanks anyway

        Estarta

        T 1 Reply Last reply
        0
        • M MoeInsairat

          thanks alot for your reply, but this not what im looking for :( i wanna prevent the user from using HTML tags or any special characters in the input box. thanks anyway

          Estarta

          T Offline
          T Offline
          ToddHileHoffer
          wrote on last edited by
          #4

          In order to prevent the user from entering any html on the client you will need to use javascript. Check here

          GameFly free trial

          M 1 Reply Last reply
          0
          • T ToddHileHoffer

            In order to prevent the user from entering any html on the client you will need to use javascript. Check here

            GameFly free trial

            M Offline
            M Offline
            MoeInsairat
            wrote on last edited by
            #5

            this is wat im looking for Thanks alot buddy :)

            Estarta

            I 1 Reply Last reply
            0
            • M MoeInsairat

              this is wat im looking for Thanks alot buddy :)

              Estarta

              I Offline
              I Offline
              indianet
              wrote on last edited by
              #6

              Use HttpUtility.HtmlEncode() or Server.HtmlCode to encode html on the server side

              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