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. How to implement event chaining with Page.Render

How to implement event chaining with Page.Render

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpasp-netquestion
3 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.
  • M Offline
    M Offline
    Member 3919049
    wrote on last edited by
    #1

    Hi - I'm developing an ASP.net component that I need to implement through event chaining. For example: this.Render += MyComponent.Render([Request]) Can someone show me how I would implement this?

    T 1 Reply Last reply
    0
    • M Member 3919049

      Hi - I'm developing an ASP.net component that I need to implement through event chaining. For example: this.Render += MyComponent.Render([Request]) Can someone show me how I would implement this?

      T Offline
      T Offline
      T M Gray
      wrote on last edited by
      #2

      Rendering an ASP.NET Server Control[^]

      M 1 Reply Last reply
      0
      • T T M Gray

        Rendering an ASP.NET Server Control[^]

        M Offline
        M Offline
        Member 3919049
        wrote on last edited by
        #3

        OK - So I can do this in MyPage.aspx this.PreRender += new EventHandler(_MyPage_PreRender); But what I'd like to do is chain the event handler to a different class. For example: this.PreRender += MyComponent.PreRender or even better: this.PreRender += MyComponent.MyCustomMethod So can I chain directly to a method in another class? If so then will you please provide some code to show me how to do this?

        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