网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form. You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()
- A、Include a data source identified as "WebPartConnection1" on the Web Form.
- B、Include a Web Part identified as "customerPart" on the Web Form.
- C、Include a Web Part identified as "ordersPart" on the Web Form.
- D、Ensure that you declare an interface named "IOrdersPart".
- E、Ensure that you declare an interface named "ICustomerPart".
- F、Ensure that each Web Part declares either a GetInterface or ProvideInterface method.
参考答案
更多 “You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form. You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()A、Include a data source identified as "WebPartConnection1" on the Web Form.B、Include a Web Part identified as "customerPart" on the Web Form.C、Include a Web Part identified as "ordersPart" on the Web Form.D、Ensure that you declare an interface named "IOrdersPart".E、Ensure that you declare an interface named "ICustomerPart".F、Ensure that each Web Part declares either a GetInterface or ProvideInterface method.” 相关考题
考题
You are creating a mobile Web Form that dynamically displays news items. You want to display news items by using an instance of a mobile TextView control named TextViewNews. You need to configure the Web Form that contains TextViewNews. The Web Form must enable pagination in casea users device does not display the full text of a news item.Which code segment should you use? ()A.B.C.D.
考题
You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form.You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()A. Include a data source identified as WebPartConnection1 on the Web Form.B. Include a Web Part identified as customerPart on the Web Form.C. Include a Web Part identified as ordersPart on the Web Form.D. Ensure that you declare an interface named IOrdersPart.E. Ensure that you declare an interface named ICustomerPart.F. Ensure that each Web Part declares either a GetInterface or ProvideInterface method.
考题
You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate within the Marketing section of your Web site. The following XML defines the site map for your site. You need to bind the TreeView control to the site map data so that users can navigate only within the Marketing section. Which three actions should you perform?()A、Add a SiteMapDataSource control to the Web Form and bind the TreeView control to it.B、Add a SiteMapPath control to the Web Form and bind the TreeView control to it.C、Embed the site map XML within the SiteMap node of a Web.sitemap file.D、Embed the site map XML within the AppSettings node of a Web.config file.E、Set the StartingNodeUrl property of the SiteMapDataSource control to ~/Marketing.aspx.F、Set the SkipLinkText property of the SiteMapPath control to Sales.
考题
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? ()A、Use the Publish Web tool.B、Use the Copy Web tool.C、Use the command line to XCOPY the files.D、Create a Web Setup project.
考题
You create a Web Form. You need to add controls that use adaptive rendering to display content. The type of content rendered must depend on the device that is requesting the page. What are two possible ways to achieve this goal? ()A、Add custom controls that emit XHTML to the Web Form.B、Add custom controls that emit WML to the Web Form.C、Add mobile controls to the Web Form.D、Add Web server controls to the Web Form.
考题
You create a Web Form. The Web Form allows users to recover their passwords. You add a PasswordRecovery server control by using the following code segment.You need to ensure that the server control generates a new password and sends it by e-mail to the users e?mail address. Which two actions should you perform?()A、Create a valid definition in the Web.config file.B、Set the passwordFormat attribute of the configured membership provider to Encrypted.C、Ensure that the enablePasswordRetrieval attribute of the configured membership provider is set to False.D、Ensure that the enablePasswordRetrieval attribute of the configured membership provider is set to True.
考题
You create a master page named Template.master. Template.master contains the following ContentPlaceHolder server controls.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.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? ()A、Move default content inside area2 in Template.master. Remove area2 from Web Forms that do not provide content.B、Move default content inside area2 in Template.master. Leave area2 blank in Web Forms that do not provide content.C、Move default content inside area2 in the Web Forms. Remove area2 from Template.master.D、Create an additional ContentPlaceHolder control in Template.master named area2_default. Place default content inside area2_default. Remove area2 from Web Forms that do not provide content.
考题
You create a Web Form. The Web Form allows users to log on to a Web site. You implement the login logic using a Login control named Login1. The membership data for the application is stored in a SQL Express database in the App_Data directory. You need to configure your application so that the membership data is stored in a local Microsoft SQL Server database. You add the following code segment to the Web.config file. Which two additional actions should you perform?()A、Use Aspnet_regsql.exe to create the Microsoft SQL Server database.B、Set Login1's MembershipProvider property to MySqlProviderConnection.C、Add the following code segment to the Web.config file.connectionStrings add name="MySqlProviderConnection" connectionString="valid connection string" //connectionStringsD、Add the following code segment to the Web.config file.appSettingsadd key="MySqlProviderConnection" value="valid connection string" //appSettingsE、In the ASP.NET configuration settings within IIS, ensure that Role Management Enabled is selected.F、Use the Web Site Administration Tool to select AspNetSqlMembershipProvider as the membership provider for your application.
考题
You are implementing an ASP.NET Web application. Users will authenticate to the application with an ID. The application will allow new users to register for an account. The application will generate an ID for the user based on the users full name. You need to implement this registration functionality. Which two actions should you perform?()A、Configure the SqlMembershipProvider in the web.config file.B、Configure the SqlProfileProvider in the web.config file.C、Create an ASP.NET page that contains a default CreateUserWizard control to create a new user account.D、Create an ASP.NET page that contains a custom form that collects the user information and then uses the Membership.CreateUser method to create a new user account.
考题
单选题You create a multiple form application- Which built-in must you use to invoke the form modules to enable you to programmatically control navigation between the multiple forms in your application?()A
NEW_FORM B
OPEN_FORM C
CALL_FORM D
CLOSE_FORM
考题
单选题You create a Web Form with several UI elements on it. During a code review, you realize that some of the UI elements can be grouped into user controls. You need to create a Web control to group the UI elements that do not require server-side processing. Doing so will enable you to programmatically add or remove the UI elements from the page. You want to maintain the UI elements' style properties. What should you do? ()A
Use System.Web.UI.TemplateControl to group the UI elements.B
Use System.Web.UI.HtmlControls.HtmlControl to group the UI elements.C
Use System.Web.UI.LiteralControl to group the UI elements.D
Use System.Web.UI.WebControls.Literal to group the UI elements.
考题
单选题You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web form in the application by using the following code fragment: 01 02 protected void Button_Handler(object sender, EventArgs e) 03 { 04 // some long-processing operation. 05 } 06 07 A
AB
BC
CD
D
考题
多选题You create a Web Form. The Web Form contains two Web Parts named CustomerPart and OrdersPart. CustomerPart contains a drop-down list of customers. OrdersPart contains a list of orders that a customer has placed. You need to create a static connection between CustomerPart and OrdersPart. When a user selects a customer from CustomerPart, OrdersPart must update. Which four actions should you perform? ()AAdd the ConnectionProvider attribute to OrdersPart.BAdd the ConnectionProvider attribute to CustomerPart.CAdd the ConnectionConsumer attribute to CustomerPart.DAdd the ConnectionConsumer attribute to OrdersPart.EAdd OrdersPart and CustomerPart to the WebParts directory.FAdd OrdersPart and CustomerPart to the App_Code directory.GDeclare the connections within a StaticConnections subtag of a WebPartZone class.HDeclare the connections within a StaticConnections subtag of a WebPartManager class.IDefine an interface specifying the methods and properties that are shared between the Web Parts.
考题
单选题You are developing a Windows Presentation Foundation (WPF) application. You need to display HTML content from a Web Page on the WPF form. What should you do?()A
Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.B
Add a ContentControl control to the design surface. The reference a WebClient object to return an HTML string.C
Add a DocumentViewer control to the design surface. The create a FixedDocument control.
考题
单选题You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web form in the application by using the following code fragment: 01 02 protected void Button_Handler(object sender, EventArgs e) 03 { 04 // some long-processing operation. 05 } 06 07 A
AB
BC
CD
D
考题
多选题You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate within the Marketing section of your Web site. The following XML defines the site map for your site. You need to bind the TreeView control to the site map data so that users can navigate only within the Marketing section. Which three actions should you perform?()AAdd a SiteMapDataSource control to the Web Form and bind the TreeView control to it.BAdd a SiteMapPath control to the Web Form and bind the TreeView control to it.CEmbed the site map XML within the SiteMap node of a Web.sitemap file.DEmbed the site map XML within the AppSettings node of a Web.config file.ESet the StartingNodeUrl property of the SiteMapDataSource control to ~/Marketing.aspx.FSet the SkipLinkText property of the SiteMapPath control to Sales.
考题
单选题You create a Web Form that allows users to create a new account. You add a CreateUserWizard control by using the following code segment.You need to ensure that the wizard automatically sends an e-mail message to users when they finish creating their accounts. You add a valid element to the Web.config file. Which code segment should you add to the Page_Load event?()A
Wizard1.RequireEmail = TrueB
Wizard1.Email = user@address.comC
Wizard1.MailDefinition.From = registration@mysite.comD
SmtpMail.SmtpServer = mail.contoso.com
考题
多选题You create a Web Form. The Web Form allows users to recover their passwords. You add a PasswordRecovery server control by using the following code segment.You need to ensure that the server control generates a new password and sends it by e-mail to the users e?mail address. Which two actions should you perform? ()ACreate a valid definition in the Web.config file.BSet the passwordFormat attribute of the configured membership provider to Encrypted.CEnsure that the enablePasswordRetrieval attribute of the configured membership provider is set to False.DEnsure that the enablePasswordRetrieval attribute of the configured membership provider is set to True.
考题
单选题You create a Web Form that contains a button named btnCancel that enables users to exit the page. When users click this button, validation must not occur. During testing you learn that clicking the Cancel button does not enable users to exit the page. You need to ensure that users can always exit the page. What should you do? ()A
Set the Enabled property of the validation controls on the Web Form to False.B
Set the CausesValidation property of the btnCancel button to False.C
Set the CausesValidation property of the btnCancel button to True.D
Set the Visible property of the validation controls on the Web Form to False.
热门标签
最新试卷