CreateUser Wizard runs through 2 times

mgmhicks used Ask the Experts™
I am using the membership createuser wizard.  I fill the membership profile in the CreateUserWizard1_CreatedUser sub.  After if runs the code, it comes back and wants to run the same code again.  I can't figure out why and need it to after running it once, go to the next wizard step.  Thanks in advance for the help.  
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Are you using VB?
it happens if you have AutoEventWireup="true" and also event handler in markup.
Can you share the code that is executed twice and any related markup.

So my doubt is you have this:
OnCreatedUser="CreateUserWizard1_CreatedUser" in your markup and in code-behind you have:

protected void CreateUserWizard1_CreatedUser(....) Handles CreateUserWizard1.CreatedUser

if that is true then remove: OnCreatedUser="CreateUserWizard1_CreatedUser"  from the markup


You were right on.  Removing from the markup worked.  Thank you very much!!

It's easily done - we've all been there!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial