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. "Live Text" as it were

"Live Text" as it were

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

    I want to have a piece of text that I can click that will in effect, be 'live'. What I want to do is place an event handler on the text when it is clicked. Unfortunately, I cannot simply have it as a link. Thanks a lot, Jim

    J J 2 Replies Last reply
    0
    • E Esmo2000

      I want to have a piece of text that I can click that will in effect, be 'live'. What I want to do is place an event handler on the text when it is clicked. Unfortunately, I cannot simply have it as a link. Thanks a lot, Jim

      J Offline
      J Offline
      jamesbronw
      wrote on last edited by
      #2

      make it a link to another asp.net page that holds the code for what you want the text to do. Thats what i had to do in order to do binarywrite. I had a picture, and the pictures url was to another asp.net page that held the code for what i wanted to show up in the picture box.

      1 Reply Last reply
      0
      • E Esmo2000

        I want to have a piece of text that I can click that will in effect, be 'live'. What I want to do is place an event handler on the text when it is clicked. Unfortunately, I cannot simply have it as a link. Thanks a lot, Jim

        J Offline
        J Offline
        Jesse Squire
        wrote on last edited by
        #3

        A client side event handler or server side? For a client side handler, you could simply wrap the text in a span tag, such as: <span onclick = "myMethod()">Your Text Here</span> For a server side event, you may be well served using a LinkButton control. If not, I'd recommend that you consider making your "live text" a custom web control. To get started, you may want to take a peek at the interface IPostBackEventHandler in the MSDN documentation. Hope that helps a bit. :) --Jesse

        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