最新的Microsoft TS: Microsoft .NET Framework 2.0 - Web-based Client Development - 70-528免費考試真題
問題1
You create an e-commerce Web application.
During testing, you find bugs on the shopping cart page. You believe that the bugs might be related to the
values in the session or application state.
You need to see the session and application state values at the bottom of the page.
What should you do?
You create an e-commerce Web application.
During testing, you find bugs on the shopping cart page. You believe that the bugs might be related to the
values in the session or application state.
You need to see the session and application state values at the bottom of the page.
What should you do?
正確答案: C
問題2
You are designing a Web application by using Microsoft ASP.NET .
You add a master page and content pages to the application. The master page contains a Label control named lblTitle.
You need to reference lblTitle from the code within the content pages.
Which code segment should you use?
You are designing a Web application by using Microsoft ASP.NET .
You add a master page and content pages to the application. The master page contains a Label control named lblTitle.
You need to reference lblTitle from the code within the content pages.
Which code segment should you use?
正確答案: A
問題3
You are developing a Microsoft ASP.NET application.
You add a templated Web user control to a Web Form by using the following code fragment.
<uc1:MyControl ID="MyControl1" runat="server">
<HeaderTemplate>
<asp:Label ID="HeaderLabel" runat="server" />
</HeaderTemplate>
<BodyTemplate>
<asp:TextBox ID="TemplateTextBox" runat="server" />
</BodyTemplate>
</uc1:MyControl>
You write the following code segment in the Web Form's code-behind file. (Line numbers are included for reference only.)
02 protected void Page_Load(object sender, EventArgs e) { 04 }
You need to modify the Visible property of the TemplateTextBox control from the Web Form's code-behind file as false.
What should you do?
You are developing a Microsoft ASP.NET application.
You add a templated Web user control to a Web Form by using the following code fragment.
<uc1:MyControl ID="MyControl1" runat="server">
<HeaderTemplate>
<asp:Label ID="HeaderLabel" runat="server" />
</HeaderTemplate>
<BodyTemplate>
<asp:TextBox ID="TemplateTextBox" runat="server" />
</BodyTemplate>
</uc1:MyControl>
You write the following code segment in the Web Form's code-behind file. (Line numbers are included for reference only.)
02 protected void Page_Load(object sender, EventArgs e) { 04 }
You need to modify the Visible property of the TemplateTextBox control from the Web Form's code-behind file as false.
What should you do?
正確答案: A
問題4
You create a Web Form that allows users to create a new account. You add a CreateUserWizard control by using the following code segment.
<asp:CreateUserWizard id="Wizard1" runat="server"/>
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 <smtp> element to the Web.config file.
Which code segment should you add to the Page_Load event?
You create a Web Form that allows users to create a new account. You add a CreateUserWizard control by using the following code segment.
<asp:CreateUserWizard id="Wizard1" runat="server"/>
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 <smtp> element to the Web.config file.
Which code segment should you add to the Page_Load event?
正確答案: C
問題5
You have a Web application that is configured for personalization.
You need to access personalization data from one of the pages of the Web application by using the minimum amount of administrative effort.
What should you do?
You have a Web application that is configured for personalization.
You need to access personalization data from one of the pages of the Web application by using the minimum amount of administrative effort.
What should you do?
正確答案: A
問題6
You are creating a Microsoft ASP.NET Web site.
You need to ensure that the Web site uses cookieless authentication.
Which code fragment should you add to the Web.config file of the Web site?
You are creating a Microsoft ASP.NET Web site.
You need to ensure that the Web site uses cookieless authentication.
Which code fragment should you add to the Web.config file of the Web site?
正確答案: C