c# - CreateUserWizard- How to verify data against db during wizard? -


I'm using asp.net CreateUserWizard control. I've added a magician stap and need to verify 3 dated passports against our internal database before allowing the user to create an account. However, when I tried to wire the button code on a Codebehind examine click data for the method, event Next button never fires

below codebehind -.

  & lt; Asp: Button ID = "StepNextButton" runat = "server" BackColor = "# FFFBFF" BorderColor = "# CCCCCC" BorderStyle = "solid" BorderWidth = "1px" commandname = "MoveNext" font-name = "Verdana" ForeColor = " # 284,775 "text =" next "onclick =" StepNextButton_Click1 "/>  

Should be wired like this? Does the wizard provide you with a way to determine which stage you are in, so you are not checking every stage?

expected to take another question is logged as effective forms of gain certification basis and tracking user curently in order or not, but I finished the session if all the pages that it seems Is there a need to be wrapped in a LoginView control that they 'do not log in' the template view? Right

Simple partial answer: hijack the onclick event to call its own function. Call to check and StepNextButton_Click1 against your DB in (or close to ensure that appropriate collar and Arges for it) If you do everything right otherwise you can invalidate the page and / or redirect users.


Comments