By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,255 Members | 2,640 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,255 IT Pros & Developers. It's quick & easy.

Events of a dynamicaly created control

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"Carlos Cruz" <ca*********@vianw.pt> wrote in message
news:OH**************@TK2MSFTNGP11.phx.gbl...
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

Nov 18 '05 #2

P: n/a
You should wire the event handler in the pageload event.

"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPAM.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

"Carlos Cruz" <ca*********@vianw.pt> wrote in message
news:OH**************@TK2MSFTNGP11.phx.gbl...
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


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.