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. Adding Events to controls

Adding Events to controls

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

    Hello, I have a global question. Is there a way to add event to existing control. For example, the panel control do not have Click Event. Is it poosible to inherits the control and to add Click Event? Thank you

    Shay Noy

    C 1 Reply Last reply
    0
    • H helelark123

      Hello, I have a global question. Is there a way to add event to existing control. For example, the panel control do not have Click Event. Is it poosible to inherits the control and to add Click Event? Thank you

      Shay Noy

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I expect so, but I'd expect it to be a lot of work. You'd need javascript to post the form back, make sure that it posts back with the data you need, you'd need to check the values when then viewstate tree is recreated, etc.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      H 1 Reply Last reply
      0
      • C Christian Graus

        I expect so, but I'd expect it to be a lot of work. You'd need javascript to post the form back, make sure that it posts back with the data you need, you'd need to check the values when then viewstate tree is recreated, etc.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        H Offline
        H Offline
        helelark123
        wrote on last edited by
        #3

        I didn't really understood your reply but what I mean is not only for ASP.net. The same question is for vb.net too. Take any control existing in vb.net, I would like to add to it an event that it doesn't have using EventHandler, delegate, Event, raisevent... Thank you

        Shay Noy

        C 1 Reply Last reply
        0
        • H helelark123

          I didn't really understood your reply but what I mean is not only for ASP.net. The same question is for vb.net too. Take any control existing in vb.net, I would like to add to it an event that it doesn't have using EventHandler, delegate, Event, raisevent... Thank you

          Shay Noy

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          shaynoy wrote:

          but what I mean is not only for ASP.net.

          Well, if you think the answer is going to be the same for both ASP.NET and winforms, then apart from being in the wrong forum, it's clear you don't really understand what ASP.NET is and does.

          shaynoy wrote:

          Take any control existing in vb.net, I would like to add to it an event that it doesn't have using EventHandler, delegate, Event, raisevent...

          Well, I think the fact that you didn't understand me means you won't do this any time soon for ASP.NET, but for winforms, it's not too hard, I would think.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          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