Event Handler

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Samuel Lee

    #1

    Event Handler

    I had made an UserControl (.ascx) which include a datalist control. The
    datalist control had contains an imagebutton.

    Next, I would like to create an aspx page that also contain a datalist
    control. I will dymanically create the UserControl and place it into
    datalist.

    Now I need to catch the click event and get EventArgs of imagebutton that
    held by UserControl (.ascx).

    How could I solve it?

    Thanks you very much.


  • Natty Gur

    #2
    Re: Event Handler

    Hi,

    If you are working with VB look for AddHandler keyword.
    if c#, look for delegator and += operator.

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

    Comment

    • Natty Gur

      #3
      Re: Event Handler

      Hi,

      If you are working with VB look for AddHandler keyword.
      if c#, look for delegator and += operator.

      Natty Gur, CTO
      Dao2Com Ltd.
      28th Baruch Hirsch st. Bnei-Brak
      Israel , 51114

      Phone Numbers:
      Office: +972-(0)3-5786668
      Fax: +972-(0)3-5703475
      Mobile: +972-(0)58-888377

      Know the overall picture


      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      Working...