Event Handler

  • Thread starter Thread starter Samuel Lee
  • Start date Start date
S

Samuel Lee

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.
 
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
 
Back
Top