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.
Protected Sub CU1_FinishButtonClick( _ ByVal sender As Object, _ ByVal e As WizardNavigationEventArgs) _ Handles CU1.FinishButtonClick CUI.ActiveStepIndex = 1End Sub

B.
Protected Sub CU1_ContinueButtonClick( _ ByVal sender As Object, _ ByVal e As EventArgs) Handles CU1.ContinueButtonClick CUI.ActiveStepIndex = 1End Sub

C.
Protected Sub CU1_NextButtonClick( _ ByVal sender As Object, _ ByVal e As WizardNavigationEventArgs) _ Handles CU1.NextButtonClick CUI.ActiveStepIndex = 0End Sub

D.
Protected Sub CU1_ContinueButtonClick( _ ByVal sender As Object, _ ByVal e As EventArgs) Handles CU1.ContinueButtonClick CUI.ActiveStepIndex = 0End Sub


Leave a Reply