help, button has to be clicked twice?

  • Thread starter Thread starter Zelin Lu
  • Start date Start date
Z

Zelin Lu

Hello, All

I am building two user controls and dynamicly load one them into a
PlaceHolder.
But the button on the user control doesn't work fine. I need to click twice
to fire the event?

Anybody could help me?

Thank you very much

Zelin
 
Hi Zelin
May be you are loading the button more than one time . so make sure the
line where you say New Button is not executed more that once
hope it helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Hi, Mohamed

Sorry for late reply.

What I am doing is: I create two user controls with buttons which one is
"login" and the other is "after_login".
I load either one of these two user controls in a place holder. The
process is: user opens the page and type in username and password, if it
authorized successfully I remove the "login" control and add the
"after_login" control. The problem occours after removing and adding. It
looks like I load the user control but the button can not capture the
click event at the first time I click it.

Could you help me?

Thank you very much and Merry Chrismas

Zelin
 
Back
Top