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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Hyperlink in a TextBox - Possible?

Hyperlink in a TextBox - Possible?

Scheduled Pinned Locked Moved ASP.NET
questioncomhelp
3 Posts 3 Posters 1 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.
  • K Offline
    K Offline
    kavitha_blueindia
    wrote on last edited by
    #1

    Hi all, I have a text box that contains a hyperlink e.g. http://www.mysite.com. Is it possible to get that hyperlink to work so when a user clicks on it brings up this website?.It may be a simple question.Please Help. Thanks a lot.

    N R 2 Replies Last reply
    0
    • K kavitha_blueindia

      Hi all, I have a text box that contains a hyperlink e.g. http://www.mysite.com. Is it possible to get that hyperlink to work so when a user clicks on it brings up this website?.It may be a simple question.Please Help. Thanks a lot.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Out of the box it is not possible. If you need this functionality you'd have to create your own control, though I can't see a need to do so.


      only two letters away from being an asset

      1 Reply Last reply
      0
      • K kavitha_blueindia

        Hi all, I have a text box that contains a hyperlink e.g. http://www.mysite.com. Is it possible to get that hyperlink to work so when a user clicks on it brings up this website?.It may be a simple question.Please Help. Thanks a lot.

        R Offline
        R Offline
        Rajdev Ramasamy
        wrote on last edited by
        #3

        Hi, I have tried with a simple html page with a textbox control. On entering some url, and hitting on "Enter" key, a new window will open with the given url. Please check this will be useful for you. Sample Data: http:\\www.google.com Code: <html> <head> <title>Hypherlink in a textbox</title> </head> <body> <script language="javascript"> function ShowWindow(e,tstinput) { if(e.keyCode == 13) { if(tstinput.value !='') { window.open(tstinput.value); return null; } } return e.keyValue; } </script> <input type="input" style="text-decoration:underline;" onkeypress="return ShowWindow(event,this)" /> </body> </html> Regards, Rajdev KR

        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