CodeSmith Community
Your Code. Your Way. Faster!

CreateUserWizard questions

Latest post 03-21-2007 5:44 PM by basolutions. 0 replies.
  • 03-21-2007 5:44 PM

    • basolutions
    • Top 100 Contributor
    • Joined on 03-21-2007
    • Denver, CO
    • Posts 51
    • Points 1,175

    CreateUserWizard questions

    I have been attempting to extend the create user wizard by adding an additional step to collect some contact information.  I have added a multi form view to the CreateUserWizard and the UI works as expected except that it never perform the insert call for the DataSource.  Can anyone point me to what I am doing wrong?  I assume that part of the problem is that the CreateUserWizard never issues a CommandName="Insert", but not sure how to rectify that.

    Thanks,

    Jesse

     Code:


    <asp:CreateUserWizard ID="CreateUserWizard1" runat="server">
     <WizardSteps>
      <asp:WizardStep ID="CreateUserWizardStep0" runat="server" Title="User Contact Info">
       <data:MultiFormView ID="MultiFormView0" runat="server" AllowPaging="false" DataKeyNames="Userfk"
        DataSourceID="ContactsDataSource1" DefaultMode="Insert">
        <InsertItemTemplatePaths>
        <data:TemplatePath Path="~/UserControls/UserContactFields.ascx" />
        </InsertItemTemplatePaths>
       </data:MultiFormView>
      </asp:WizardStep>
      
      <asp:CreateUserWizardStep runat="server">
      </asp:CreateUserWizardStep>
      
      <asp:CompleteWizardStep runat="server">
      </asp:CompleteWizardStep>
     </WizardSteps>
    </asp:CreateUserWizard>

    <data:ContactsDataSource ID="ContactsDataSource1" runat="server" InsertMethod="Insert">
     <Parameters>
         <asp:QueryStringParameter Name="userFk" QueryStringField="UserId" />
     </Parameters>
    </data:ContactsDataSource>

    Filed under: ,
    • Post Points: 5
Page 1 of 1 (1 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems