Events of a dynamicaly created control

  • Thread starter Thread starter Carlos Cruz
  • Start date Start date
C

Carlos Cruz

Hi,

I've a class that creates dynamically a Panel with a Calendar.
I would like to handdle the calendar event SelectionChanged but I don't know
how.
I tried:

addhandle CalendarVar, addressof EventFunction

.... but I can't get the EventFunction called.

Could you help me on this?

Thanks in advance,
CC
 
Hi Carlos,

At what time are you hooking up the event? If its not firing chances are
that you may be doing that too late (ie. in response to an event, on
PreRender, etc).

Could you post some code?

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
 
Back
Top