Which method should you use?
You create Web-based client applications. You are creating a Web-based discussion forum. The discussion forum will permit users to post and reply to discussion threads after logging on. You create the authentication mechanisms of your Web site. Microsoft SQL Server 2005 and the Active Directory directory service will continue to be used interchangeably for authentication. You need to provide a method for the users of the discussion forum to register. You also need to maintain the capability to use multiple authentication methods when the users register. Which method should you use?
What should you do?
You create a master page named Template.master. Template.master contains the following ContentPlaceHolder server controls.
<asp:contentplaceholder id=”area1″ runat=”server”/>
<asp:contentplaceholder id=”area2″ runat=”server”/>
You also create 10 Web Forms. The Web Forms reference Template.master as their master page. Each Web Form has the following Content controls that correspond to the ContentPlaceHolder controls in Template.master.
<asp:Content ContentPlaceHolderID=”area1″ Runat=”Server”/> <asp:Content ContentPlaceHolderID=”area2″ Runat=”Server”/>
You need to configure the Web pages so that default content will be shown in the area2 ContentPlaceHolder control whenever a Web Form does not provide that content. What should you do?
What should you do?
You create a mobile Web Form. The mobile Web Form contains a mobile Calendar control named calDate. You need to capture the date that users choose from the Calendar control.
What should you do?
What should you do?
You create Web-based client applications. You are creating a Web control that includes data entry fields. The Web control also includes data validation code. The data validation code verifies whether the user has entered a valid date and a valid postal code in a text box. You are writing the code within the Web control to handle the invalid data. The Web control must work on as many browsers as possible. You need to design an appropriate feedback technique. What should you do?
How should you accomplish this goal?
You create Web-based client applications. You are creating a data access component. Several Web user controls will use the component to populate bound controls from a data source. The data source has end-user inputs. You need to ensure that the data source communicates all relevant information to the Web user controls that call your component. How should you accomplish this goal?
Which configuration setting should you choose?
You create Web-based client applications. You are creating a page for a Web-based application.
You must ensure that the page meets the following requirements:
Uses forms authentication to validate users.
Deploys on a single Web server.
Is highly secure.
Gives higher priority to security than speed.
You need to recommend a configuration setting for your page. Which configuration setting should you choose?
Which code segment should you use?
You create a master page named Article.master. Article.master serves as the template for articles on your Web site. The master page uses the following page directives.
<%@ Master Language=”C#” Src=”~/article.master.cs” Inherits=”article” %>
You need to create a content page that uses the master page as a template.
In addition, you need to use a single master page for all devices that access the Web site.
Which code segment should you use?
What should you do?
You create a personalized home page. You want to enable users to choose from a selection of daily headlines from different news providers. You create a series of custom user controls. Each control points to a different news provider.
You need to add these controls to the personalized home page. What should you do?
Which two code segments should you use?
You create a Web application for your company’s intranet. You want to enable users to customize their versions of the intranet home page. You create sections of content as Web Parts. You need to ensure that users can customize content at any time.
Which two code segments should you use? (Each correct answer presents part of the solution. Choose two.)
What should you do?
You create a master page named Template.master. Template.master contains the following ContentPlaceHolder server controls.
<asp:contentplaceholder id=”area1″ runat=”server”/>
<asp:contentplaceholder id=”area2″ runat=”server”/>
You also create 10 Web Forms. The Web Forms reference Template.master as their master page. Each Web Form has the following Content controls that correspond to the ContentPlaceHolder controls in Template.master.
<asp:Content ContentPlaceHolderID=”area1″ Runat=”Server”/> <asp:Content ContentPlaceHolderID=”area2″ Runat=”Server”/>
You need to configure the Web pages so that default content will be shown in the area2 ContentPlaceHolder control whenever a Web Form does not provide that content. What should you do?