An assignment for my Web Application Development class. For this assignment I had to create two forms that both use validation groups to validate the fields. One of the forms must use either Wizard Steps or Multiview. I chose Wizard Steps.
Problem:
Validation was not working for the wizard steps even though everything was coded perfectly.
<asp:WizardStep id=”wds_2″ runat=”server” title=”Account Info”>
<asp:Label ID=”lbl_username” runat=”server” Text=”Username: ” AssociatedControlID=”txt_username” />
<asp:TextBox ID=”txt_username” runat=”server” />
<asp:RequiredFieldValidator ID=”rfv_username” runat=”server” ControlToValidate=”txt_username” display=”Dynamic” Text=”Empty value” ErrorMessage=”Please enter username.” ValidationGroup=”info_form” />
<StepNavigationTemplate>
<asp:Button ID=”btn_Previous” runat=”server” Text=”Previous” CommandName=”MovePrevious” />
<asp:Button ID=”btn_Next” runat=”server” Text=”Next” CommandName=”MoveNext” ValidationGroup=”info_form” CausesValidation=”true” />
</StepNavigationTemplate>