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. Is it possible to place a hyperlink within a ASP.NET textbox control?

Is it possible to place a hyperlink within a ASP.NET textbox control?

Scheduled Pinned Locked Moved ASP.NET
questioncsharphtmlasp-net
4 Posts 2 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.
  • I Offline
    I Offline
    Infernojericho
    wrote on last edited by
    #1

    Just a quick question, is the ASP.NET textbox control only capable of displaying pure text? Is there anyway to embed a HTML link inside the textbox? Thanks! If not, is there anything else I can use? Thanks!!!

    P 1 Reply Last reply
    0
    • I Infernojericho

      Just a quick question, is the ASP.NET textbox control only capable of displaying pure text? Is there anyway to embed a HTML link inside the textbox? Thanks! If not, is there anything else I can use? Thanks!!!

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      Infernojericho wrote:

      Just a quick question, is the ASP.NET textbox control only capable of displaying pure text?

      Yes. The TextBox control renders to a HTML INPUT tag which can only display unformatted text.

      Infernojericho wrote:

      Is there anyway to embed a HTML link inside the textbox?

      You could create a 'fake' textbox using a DIV tag with the contenteditable=true attribute. Not something I've really tried to do myself, but search Google and you should find some more information.

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      I 1 Reply Last reply
      0
      • P pmarfleet

        Infernojericho wrote:

        Just a quick question, is the ASP.NET textbox control only capable of displaying pure text?

        Yes. The TextBox control renders to a HTML INPUT tag which can only display unformatted text.

        Infernojericho wrote:

        Is there anyway to embed a HTML link inside the textbox?

        You could create a 'fake' textbox using a DIV tag with the contenteditable=true attribute. Not something I've really tried to do myself, but search Google and you should find some more information.

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        I Offline
        I Offline
        Infernojericho
        wrote on last edited by
        #3

        Thanks for the reply. Do you know if there are any 3rd party, and free (hopefully) textbox controls that support Hyperlinks? Thanks!

        P 1 Reply Last reply
        0
        • I Infernojericho

          Thanks for the reply. Do you know if there are any 3rd party, and free (hopefully) textbox controls that support Hyperlinks? Thanks!

          P Offline
          P Offline
          pmarfleet
          wrote on last edited by
          #4

          FreeTextBox[^] is a free WYSIWYG textbox control for ASP.NET. It does a lot more than just hyperlinks, but I doubt you're going to find a control that just does hyperlinks. You'd have to write one yourself using the DIV approach I mentioned earlier.

          Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

          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