Which code logic should you use?
You are using the ASP.NET membership APIs to manage user accounts for a Web site. The Web.config file contains the definition for the membership provider. After modifying the Web.config file to enable password recovery, you create a PasswordReset.aspx file. You need to enable users to reset their passwords online. The new passwords must be sent to them by e-mail after they have logged on through the Login.aspx page. In addition, users must be required to answer their secret questions before resetting their passwords.
Which code logic should you use?
which event handler should you write the code?
You create a Web Form. The Web Form allows users to log on to an application. You include a Login control named Login1 on the Web Form. You need to write code in one of Login1’s event handlers. This code must implement your custom logic that validates the user’s credentials.
In which event handler should you write the code?
What should you do?
You create a Web site with membership and personalization enabled. You must use an existing CRM database for storing the membership information. You need to implement the Membership Provider.
What should you do?
Which tool should you use?
You create a Web site. The Web site has many predefined roles and associated users that will be used for security purposes. You need to manage these roles and user accounts.
Which tool should you use?
What should you do?
You create a Web site that is for members only. The behavior of the Web site changes according to the role of the user. The Web site uses the ASP.NET Membership control for creation of user accounts. You need to find out whether a user is a member of a particular role.
What should you do?
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?
Which event should you use?
You create a Web application. The Web application enables users to change fields in their personal profiles. Some of the changes are not persisting in the database. You need to raise a custom event to track each change that is made to a user profile so that you can locate the error.
Which event should you use?
What should you do?
You are deploying a Web site to a server managed by a hosting company. The only access you have to the server is through FTP. You need to precompile and deploy the Web site without its source files.
What should you do?
What should you do?
You create a Web site that you must copy from a development server to a testing server, along with all source files. You do not have terminal access to the testing server. You need to create the virtual directory. Then you must copy the Web site to the virtual directory on the testing server without precompiling the site.
What should you do?
which base type should your custom event type inherit?
You create a large, n-tier Web application that has a custom event tracking system. You need to create a custom event type that enables your event tracking system to record all relevant event details for all types of events. The events must be stored in Microsoft SQL Server.
From which base type should your custom event type inherit?