PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use?

You create a Web Form. You add the following CreateUserWizard server control to the Web Form.

<asp:CreateUserWizard runat=”server” ID=”CU1″ FinishCompleteButtonText=”Continue”>
<WizardSteps>
<asp:CreateUserWizardStep ID=”CWS1″ Runat=”server” Title=”New Account”/>
<asp:WizardStep ID=”CWS2″ Title=”More Info” StepType=”Step”>
Given Name:<asp:TextBox runat=”server” ID=”txtGivenName” /> Last Surname:<asp:TextBox runat=”server” ID=”txtSurname” />
</asp:WizardStep>
<asp:CompleteWizardStep ID=”CWS3″ Runat=”server” Title=”Complete”/>
</WizardSteps>
</asp:CreateUserWizard>

You need to write code that redirects users to the first page of the wizard after they click the Continue button on the last page.
Which code segment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
void CU1_FinishButtonClick(object sender, WizardNavigationEventArgs e) { CU1.ActiveStepIndex = 1;}

B.
void CU1_ContinueButtonClick(object sender, EventArgs e) { CU1.ActiveStepIndex = 1;}

C.
void CU1_NextButtonClick(object sender, WizardNavigationEventArgs e) { CU1.ActiveStepIndex = 0;}

D.
void CU1_ContinueButtonClick(object sender, EventArgs e) { CU1.ActiveStepIndex = 0;}


Leave a Reply