Category Archives: CreateUserWizard

[RESOLVED] Need help with asp wizard control, how to pass additional parameters into the next button

I have a step in the wizard process, where I have three different buttons that call the next step button.   I need to track which button was pressed.   How can I do this by adding CommandArgument="Button1", CommandArgument="Button2" to the asp:ImageButton markup?    How would I retrieve that in the NextButton Event Procedure?

<asp:ImageButton runat="server" ID="Button1" CommandArgument="Button1" CommandName="MoveNext" ImageUrl="../images/MyHealthCommunity/wellness/iLargeArrow.png" width="31" height="31" align="absmiddle"/>


protected void NextButton_Click(object sender, WizardNavigationEventArgs e)


Wizard wzd = (Wizard)sender;




Hi bb2j3z,

There are two ways to achieve what you want, not exactly the way you may like but the ways to achieve what you need.

1) You cannot determine which button fired the movenext event of the create user wizard control but you can use the WizardNavigationEventArgs to determine the currentstepindex, in turn it can be used to easily determine which button may have been pressed, I mean you definitely know which button is in which wizard step, don't you??.


2) You can handle the button's click event instead of supplying the commandname and handling the movenext event of the createuserwizard control. If you want to handle the events separately for different next buttons then you can easily determine which button fired the event. But if you want to handle the events using a single event handler then you can cast the sender object to the button type and determine it's command argument. And besides you can increase the wizard step by incrementing the ActiveStepIndex property of createuserwizard control in you next button click event as 

CreateUserWizard1.ActiveStepIndex += CreateUserWizard1.ActiveStepIndex;


Take a thorough look at these tutorials






[RESOLVED] MVP (Model View Presenter) & asp:createuserwizard


in order to develop a application based on MVP (Model View Presenter) pattern  can I  use asp:createuserwizard, asp:changepassword and .NET security module?

If is possible I need some examples or links.


Since the .Net controls mentioned integrate with the Security Provider model, your Presenters will be used in the Provider along with a ServiceObject (playing the role of the View) and, of course the database would hold the Model.

check following

[RESOLVED] Validate dropdownlists

I have 3 dropdownlists in my CreateUserWizard, and they contain date, month and year (users birthday), the poblem is that the wizard allows the user to be created without adding their birthday, and that throws of course an error because the wizard can't insert a invalid date in a datetime row. How can I force the user to choose their birthday in the dropdownlits, so it wont accept the first listitem "Choose" as an answer?

Hope you understand what I'm looking for here :)

Just in case you need to look at my dropdownlists, here they are:

<asp:DropDownList ID="DropDownList1"  runat="server" CssClass="box3" Width="52px" AutoPostBack="false">
<asp:ListItem Value="1">1</asp:ListItem>
<asp:ListItem Value="2">2</asp:ListItem>
<asp:ListItem Value="3">3</asp:ListItem>
<asp:ListItem Value="4">4</asp:ListItem>
<asp:ListItem Value="5">5</asp:ListItem>
<asp:ListItem Value="6">6</asp:ListItem>
<asp:ListItem Value="7">7</asp:ListItem>
<asp:ListItem Value="8">8</asp:ListItem>
<asp:ListItem Value="9">9</asp:ListItem>
<asp:ListItem Value="10">10</asp:ListItem>
<asp:ListItem Value="11">11</asp:ListItem>
<asp:ListItem Value="12">12</asp:ListItem>
<asp:ListItem Value="13">13</asp:ListItem>
<asp:ListItem Value="14">14</asp:ListItem>
<asp:ListItem Value="15">15</asp:ListItem>
<asp:ListItem Value="16">16</asp:ListItem>
<asp:ListItem Value="17">17</asp:ListItem>
<asp:ListItem Value="18">18</asp:ListItem>
<asp:ListItem Value="19">19</asp:ListItem>
<asp:ListItem Value="20">20</asp:ListItem>
<asp:ListItem Value="21">21</asp:ListItem>
<asp:ListItem Value="22">22</asp:ListItem>
<asp:ListItem Value="23">23</asp:ListItem>
<asp:ListItem Value="24">24</asp:ListItem>
<asp:ListItem Value="25">25</asp:ListItem>
<asp:ListItem Value="26">26</asp:ListItem>
<asp:ListItem Value="27">27</asp:ListItem>
<asp:ListItem Value="28">28</asp:ListItem>
<asp:ListItem Value="29">29</asp:ListItem>
<asp:ListItem Value="30">30</asp:ListItem>
<asp:ListItem Value="31">31</asp:ListItem>

<asp:DropDownList ID="DropDownList2" runat="server" CssClass="box3" Width="68px" AutoPostBack="false">
<asp:ListItem Value="1">Januar</asp:ListItem>
<asp:ListItem Value="2">Februar</asp:ListItem>
<asp:ListItem Value="3">Marts</asp:ListItem>
<asp:ListItem Value="4">April</asp:ListItem>
<asp:ListItem Value="5">Maj</asp:ListItem>
<asp:ListItem Value="6">Juni</asp:ListItem>
<asp:ListItem Value="7">Juli</asp:ListItem>
<asp:ListItem Value="8">August</asp:ListItem>
<asp:ListItem Value="9">September</asp:ListItem>
<asp:ListItem Value="10">Oktober</asp:ListItem>
<asp:ListItem Value="11">November</asp:ListItem>
<asp:ListItem Value="12">December</asp:ListItem>

<asp:DropDownList ID="DropDownList3" runat="server" CssClass="box3" Width="54px">
<asp:ListItem Value="1970">1970</asp:ListItem>
<asp:ListItem Value="1971">1971</asp:ListItem>
<asp:ListItem Value="1972">1972</asp:ListItem>
<asp:ListItem Value="1973">1973</asp:ListItem>
<asp:ListItem Value="1974">1974</asp:ListItem>
<asp:ListItem Value="1975">1975</asp:ListItem>
<asp:ListItem Value="1976">1976</asp:ListItem>
<asp:ListItem Value="1977">1977</asp:ListItem>
<asp:ListItem Value="1978">1978</asp:ListItem>
<asp:ListItem Value="1979">1979</asp:ListItem>
<asp:ListItem Value="1980">1980</asp:ListItem>
<asp:ListItem Value="1981">1981</asp:ListItem>
<asp:ListItem Value="1982">1982</asp:ListItem>
<asp:ListItem Value="1983">1983</asp:ListItem>
<asp:ListItem Value="1984">1984</asp:ListItem>
<asp:ListItem Value="1985">1985</asp:ListItem>
<asp:ListItem Value="1986">1986</asp:ListItem>
<asp:ListItem Value="1987">1987</asp:ListItem>
<asp:ListItem Value="1988">1988</asp:ListItem>
<asp:ListItem Value="1989">1989</asp:ListItem>
<asp:ListItem Value="1990">1990</asp:ListItem>
<asp:ListItem Value="1991">1991</asp:ListItem>
<asp:ListItem Value="1992">1992</asp:ListItem>
<asp:ListItem Value="1993">1993</asp:ListItem>
<asp:ListItem Value="1994">1994</asp:ListItem>
<asp:ListItem Value="1995">1995</asp:ListItem>
<asp:ListItem Value="1996">1996</asp:ListItem>
<asp:ListItem Value="1997">1997</asp:ListItem>
<asp:ListItem Value="1998">1998</asp:ListItem>
<asp:ListItem Value="1999">1999</asp:ListItem>
<asp:ListItem Value="2000">2000</asp:ListItem>
<asp:ListItem Value="2001">2001</asp:ListItem>
<asp:ListItem Value="2002">2002</asp:ListItem>
<asp:ListItem Value="2003">2003</asp:ListItem>
<asp:ListItem Value="2004">2004</asp:ListItem>
<asp:ListItem Value="2005">2005</asp:ListItem>

Use 3 requiredfieldvalidators, and set the InitialValue property to "Choose", or maybe give the Choose item a value of, say -1, and set initialvalue to -1.

Thank you! It works now :)