最新的Microsoft TS: Web Applications Development with Microsoft .NET Framework 4 - 70-515免費考試真題

You are implementing a new Dynamic Data Web site.
The Web site includes a Web page that has an ObjectDataSource control named ObjectDataSource1.
ObjectDataSource1 interacts with a Web service that exposes methods for listing and editing instances of a
class named Product.
You add a GridView control named GridView1 to the page, and you specify that GridView1 should use
ObjectDataSource1 as its data source.
You then configure GridView1 to auto-generate fields and to enable editing.
You need to add Dynamic Data behavior to GridView1.
You also must ensure that users can use GridView1 to update Product instances.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

正確答案: B,C
You are implementing an ASP.NET page that includes a text box.
You need to validate values that are typed by users to ensure that only numeric values are submitted.
Which control markup should you use?

正確答案: D
Which of the following is the correct collection of build events?

正確答案: B
You are developing an ASP.NET Web application.
The application includes a Icomparer<string> implementation named CaseInsensitiveComparer that
compares strings without case sensitivity
You add the following method.(Line numbers are included for reference only.)
01 public IEnumerable<string>SortWords(string[] words)
02 {
03
04 }
You need to sort the array by word length and then by alphabetic order, ignoring case.
Which code segment should you add at line 03?

正確答案: C
You are implementing an ASP.NET Web site that uses a custom server control named Task. Task is
defined as shown in the following list.
Class name: Task
Namespace: DevControls
Assembly: TestServerControl.dll
Base class: System.Web.UI.WebControls.WebControl
You copy TestServerControl.dll to the Web site's Bin folder.
You need to allow the Task control to be declaratively used on site pages that do not contain an explicit @
Register directive.
Which configuration should you add to the web.config file?

正確答案: A
Which tool is used to simplify the migration, management and deployment of IIS Web servers, Web applications and Web sites?

正確答案: C
You are implementing an ASP.NET Dynamic Data Web site.
The Web site includes a data context that enables automatic scaffolding for all tables in the data model.
The Global.asax.cs file contains the following code segment.
public static void RegisterRoutes(RouteCollection routes)
{ routes.Add(new DynamicDataRoute("{table}/ListDetails.aspx") {
Action = PageAction.List,
ViewName = "ListDetails",
Model = DefaultModel
});
routes.Add(new DynamicDataRoute("{table}/ListDetails.aspx")
{
Action = PageAction.Details,
ViewName = "ListDetails",
Model = DefaultModel
}); }
You need to display the items in a table named Products by using a custom layout. What should you do?

正確答案: A
You are implementing an ASP.NET page in an e-commerce application.
Code in a btnAddToCart_Click event handler adds a product to the shopping cart.
The page should check the status of the shopping cart and always show a cart icon when one or more
items are in the shopping cart.
The page should hide the icon when the shopping cart has no items.
You need to add an event handler to implement this requirement.
Which event handler should you add?

正確答案: A
You are developing an ASP.NET Web page.
The page uses the MicrosoftAjax.js script file and the MicrosoftAjaxWebForms.js script file.
You need to ensure that both scripts are combined into a single script.
Which markup should you use?

正確答案: B

聯系我們

如果您有任何問題,請留下您的電子郵件地址,我們將在12小時內回复電子郵件給您。

我們的工作時間:( GMT 0:00-15:00 )
週一至週六

技術支持: 立即聯繫 

English 日本語 Deutsch 한국어