Event Handler

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.
 
N

Natty Gur

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top