070-515 試験問題を無料オンラインアクセス

試験コード:070-515
試験名称:TS: Web Applications Development with Microsoft .NET Framework 4
認定資格:Microsoft
無料問題数:186
更新日:2025-09-01
評価
100%

問題 1

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?

問題 2

You create an ASP.NET MVC 2 Web application.
You implement a single project area in the application.
In the Areas folder, you add a subfolder named Test.
You add files named TestController.cs and Details.aspx to the appropriate subfolders.
You register the area's route, setting the route name to test_default and the area name to test.
You create a view named Info.aspx that is outside the test area.
You need to add a link to Info.aspx that points to Details.aspx.
Which code segment should you use?

問題 3

You work as an ASP.NET Web Application Developer for SomeCompany.
The company uses Visual Studio .NET 2010 as its application development platform.
You create an ASP.NET Web application using .NET Framework 4.0.
You are planning to deploy the ASP.NET Web application to a production server by publishing the Web
application in Release configuration.
You must ensure that the connection string value in the Web.config file is updated to the connection string
value of the production server during publishing. What will you do?

問題 4

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?

問題 5

You are creating an ASP.NET Web site.
The site has a master page named Custom.master.
The code-behind file for Custom.master contains the following code segment.
public partial class CustomMaster : MasterPage
{ public string Region { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
}
}
You create a new ASP.NET page and specify Custom.master as its master page.
You add a Label control named lblRegion to the new page.
You need to display the value of the master page's Region property in lblRegion.
What should you do?

コメントを追加

あなたのメールアドレスが公開されることはありません。個人情報に関する内容は隠されます *

insert code
画面にある文字を入力してください。