Hi,
stibet: When user enters username and password and clicks to next button I check it, if this username already exists in database.
UyeWizard.MoveTo(Step1) does not function where UyeWizard is the name of my wizard and Step1 is the ID of first Wizardstep.
Base on my understanding, if the username that you create in the step 1 be checked has arleady exists in the database, you do not want to move to the next step, right?
If you do not want to move to next step, you can make the NextButton disabled or invisible.
You should use the findcontrol method to fine NextButton, like below:
Button btn = (Button)this.Page.FindControl("ctl00$Wizard1$StepNavigationTemplateContainerID$StepPreviousButton");
btn.Visible = false;
Hope it helps.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Yours sincerely,
Amanda Wang
Microsoft Online Community Support