all groups > asp.net building controls > august 2005 >
You're in the

asp.net building controls

group:

first click wont fire on dynamic load of usercontro


first click wont fire on dynamic load of usercontro roni
8/6/2005 12:00:00 AM
asp.net building controls:
hi.
what im doing is replacing user control in dyanamic way,with
page.loadcontrol.
after i replace , when i click on the first time on button, there is no
respond.
only the second click get respond.

i guess it's somthing with the dynamic loading and the "connection" between
the button and his handler.

is there a way to fix this ?

Re: first click wont fire on dynamic load of usercontro intrader
8/8/2005 10:32:09 PM
[quoted text, click to view]
You must add the control earlier in the lifecycle (Init is a good place).
AddThis Social Bookmark Button