first click wont fire on dynamic load of usercontrol

R

roni

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 ?
 
B

Brock Allen

You'll need to show some code (the minimal amount of code), since it's hard
to tell what's going on from the short description you've given.
 
R

roni

found the answer.

the solution is to set Id to the control.id of the dynamic loaded control.
 

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,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top