70-515 無料問題集「Microsoft TS: Web Applications Development with Microsoft .NET Framework 4」
You are implementing an ASP.NET application that makes extensive use of JavaScript libraries.
Not all pages use all scripts, and some scripts depend on other scripts.
When these libraries load sequentially, some of your pages load too slowly.
You need to use the ASP.NET Ajax Library Script Loader to load these scripts in parallel.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Not all pages use all scripts, and some scripts depend on other scripts.
When these libraries load sequentially, some of your pages load too slowly.
You need to use the ASP.NET Ajax Library Script Loader to load these scripts in parallel.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
正解:A、C
解答を投票する
You are implementing an ASP.NET application.
The application includes a Person class with property Age.
You add a page in which you get a list of Person objects and display the objects in a GridView control.
You need to add code so that the GridView row is highlighted in red if the age of the person is less than 18.
Which GridView event should you handle?
The application includes a Person class with property Age.
You add a page in which you get a list of Person objects and display the objects in a GridView control.
You need to add code so that the GridView row is highlighted in red if the age of the person is less than 18.
Which GridView event should you handle?
正解:C
解答を投票する
You work as an ASP.NET Web Application Developer for SomeCompany.
The company uses Visual Studio .NET 2010 as its application development platform.
You are creating an ASP.NET Web application using .NET Framework 4.0.
The Web application will be accessed by international audience.
The Web application holds global and local resources for display elements that must be translated into the
language that is preferred by the user.
You are required to ensure that a Label control named CompanyLabel displays text in the user's preferred
language from the global resource file.
Which control markup will you use?
The company uses Visual Studio .NET 2010 as its application development platform.
You are creating an ASP.NET Web application using .NET Framework 4.0.
The Web application will be accessed by international audience.
The Web application holds global and local resources for display elements that must be translated into the
language that is preferred by the user.
You are required to ensure that a Label control named CompanyLabel displays text in the user's preferred
language from the global resource file.
Which control markup will you use?
正解:B
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
You are developing an ASP.NET Web page that contains input controls, validation controls, and a button
named btnSubmit.
The page has the following code-behind. (Line numbers are included for reference only.)
01 public partial class _Default : System.Web.UI.Page
02 {
03 protected void SaveToDatabase()
04 {
05
06 }
07
08 protected void btnSubmit_Click(object sender, EventArgs e)
09 {
10
11 }
12 }
You need to ensure that all data that is submitted passes validation before the data is saved in a database. What should you do?
named btnSubmit.
The page has the following code-behind. (Line numbers are included for reference only.)
01 public partial class _Default : System.Web.UI.Page
02 {
03 protected void SaveToDatabase()
04 {
05
06 }
07
08 protected void btnSubmit_Click(object sender, EventArgs e)
09 {
10
11 }
12 }
You need to ensure that all data that is submitted passes validation before the data is saved in a database. What should you do?
正解:A
解答を投票する
You create an ASP.NET MVC 2 Web application that contains the following controller class.
public class ProductController : Controller { static List<Product> products = new List<Product>();
public ActionResult Index() { return View(); } }
In the Views folder of your application, you add a view page named Index.aspx that includes the following @ Page directive.
<%@ Page Inherits="System.Web.Mvc.ViewPage" %>
You test the application with a browser.
You receive the following error message when the Index method is invoked: "The view 'Index' or its master
was not found."
You need to resolve the error so that the new view is displayed when the Index method is invoked.
What should you do?
public class ProductController : Controller { static List<Product> products = new List<Product>();
public ActionResult Index() { return View(); } }
In the Views folder of your application, you add a view page named Index.aspx that includes the following @ Page directive.
<%@ Page Inherits="System.Web.Mvc.ViewPage" %>
You test the application with a browser.
You receive the following error message when the Index method is invoked: "The view 'Index' or its master
was not found."
You need to resolve the error so that the new view is displayed when the Index method is invoked.
What should you do?
正解:D
解答を投票する
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?
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?
正解:C
解答を投票する
You are developing an ASP.NET MVC 2 Web application.
A page makes an AJAX request and expects a list of company names in the following format.
["Adventure Works","Contoso"]
You need to write an action method that returns the response in the correct format. Which type should you return from the action method?
A page makes an AJAX request and expects a list of company names in the following format.
["Adventure Works","Contoso"]
You need to write an action method that returns the response in the correct format. Which type should you return from the action method?
正解:C
解答を投票する
You are implementing an ASP.NET page.
You add asp:Button controls for Help and for Detail.
You add an ASP.NET skin file named default.skin to a theme.
You need to create and use a separate style for the Help button, and you must use the default style for the
Detail button.
What should you do?
You add asp:Button controls for Help and for Detail.
You add an ASP.NET skin file named default.skin to a theme.
You need to create and use a separate style for the Help button, and you must use the default style for the
Detail button.
What should you do?
正解:D
解答を投票する
You are developing an ASP.NET web page.
The page must display data from XML file named Inventory.xml. Inventory.xml contains data in the following format.
<?xml version="1.0" standalone="yes"?> <inventory> <vehicle Make="BMW" Model="M3" Year="2005" Price="30000" instock="Yes"> <Ratings>....</Ratings>
</Vechicle> .... </Inventory>
You need to display Vehicle elements that have the inStock attribute set to YES.
Wich two controls should you add to the page? (Each control presents part of the solution.Choose two.)
The page must display data from XML file named Inventory.xml. Inventory.xml contains data in the following format.
<?xml version="1.0" standalone="yes"?> <inventory> <vehicle Make="BMW" Model="M3" Year="2005" Price="30000" instock="Yes"> <Ratings>....</Ratings>
</Vechicle> .... </Inventory>
You need to display Vehicle elements that have the inStock attribute set to YES.
Wich two controls should you add to the page? (Each control presents part of the solution.Choose two.)
正解:A、C
解答を投票する