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. How to add control/event to a 'text', just as we add hyperlink

How to add control/event to a 'text', just as we add hyperlink

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
5 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.
  • T Offline
    T Offline
    tina newcoder
    wrote on last edited by
    #1

    I want to add an event to a text, just as we have hyperlinks, so that when the user clicks on that text, i want to perform some action in the code-behind. I want something similar to what is available here in this forum, u click the 'subject' text of this message, & you can read it ...

    _ 1 Reply Last reply
    0
    • T tina newcoder

      I want to add an event to a text, just as we have hyperlinks, so that when the user clicks on that text, i want to perform some action in the code-behind. I want something similar to what is available here in this forum, u click the 'subject' text of this message, & you can read it ...

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      Use LinkButton.

      Apurva Kaushal

      T 1 Reply Last reply
      0
      • _ _AK_

        Use LinkButton.

        Apurva Kaushal

        T Offline
        T Offline
        tina newcoder
        wrote on last edited by
        #3

        Apurva Kaushal wrote:

        Use LinkButton.

        can you elaborate a bit more ... plz .... :)

        _ 1 Reply Last reply
        0
        • T tina newcoder

          Apurva Kaushal wrote:

          Use LinkButton.

          can you elaborate a bit more ... plz .... :)

          _ Offline
          _ Offline
          _AK_
          wrote on last edited by
          #4

          LinkButton is control which looks like a hyperlink and works like a button control. That is why I told that it will look like hyperlink as you want and you can have a click event associated with it wher you can write the code.

          Apurva Kaushal

          T 1 Reply Last reply
          0
          • _ _AK_

            LinkButton is control which looks like a hyperlink and works like a button control. That is why I told that it will look like hyperlink as you want and you can have a click event associated with it wher you can write the code.

            Apurva Kaushal

            T Offline
            T Offline
            tina newcoder
            wrote on last edited by
            #5

            thanx, i will look at it ...

            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