최신 70-515 무료덤프 - Microsoft TS: Web Applications Development with Microsoft .NET Framework 4
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?
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?
정답: C
You are implementing an ASP.NET Web page
The page includes several controls, but only a GridView requires view state. You set the GridView...
You need to ensure that the page will omit unneeded view state.
Wich @ Page directive should you use?
The page includes several controls, but only a GridView requires view state. You set the GridView...
You need to ensure that the page will omit unneeded view state.
Wich @ Page directive should you use?
정답: D
You are developing an ASP.NET web application.
The application consumes a WCF service that implements a contract named IcontosoService. The service is located on the local network and is exposed using the following endpoint <endpoint name="udpDiscover" kind="udpDiscoveryEndpoint"/>
You need to consume the service by using the WS-Discovery protocol.
Which client endpoint configuration should you use?
The application consumes a WCF service that implements a contract named IcontosoService. The service is located on the local network and is exposed using the following endpoint <endpoint name="udpDiscover" kind="udpDiscoveryEndpoint"/>
You need to consume the service by using the WS-Discovery protocol.
Which client endpoint configuration should you use?
정답: B
설명: (DumpTOP 회원만 볼 수 있음)
You are testing an existing ASP.NET page.
The page includes a text box.
You are able to execute malicious JavaScript code by typing it in the text box and submitting.
You need to configure the page to prevent JavaScript code from being submitted by the text box.
In the @ Page directive, which attribute should you set to true?
The page includes a text box.
You are able to execute malicious JavaScript code by typing it in the text box and submitting.
You need to configure the page to prevent JavaScript code from being submitted by the text box.
In the @ Page directive, which attribute should you set to true?
정답: B
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 create a Web page in the application.
The Web page will get large sets of data from a data source.
You add a DataPager control to the page.
You are required to display navigation controls that enable you to create a custom paging Ul for the
DataPager control.
What will you do?
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 create a Web page in the application.
The Web page will get large sets of data from a data source.
You add a DataPager control to the page.
You are required to display navigation controls that enable you to create a custom paging Ul for the
DataPager control.
What will you do?
정답: B
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.
The Web application connects to a SQL Server database.
You use the ADO.NET Entity Framework to handle persistence-ignorant entities.
You create an ObjectContext object named ObjContext.
Subsequently, you change properties on numerous entities.
You are required to save the changed entity values in the SQL Server database.
Which of the following code segments will you use?
The company uses Visual Studio .NET 2010 as its application development platform.
You create an ASP.NET Web application using .NET Framework 4.0.
The Web application connects to a SQL Server database.
You use the ADO.NET Entity Framework to handle persistence-ignorant entities.
You create an ObjectContext object named ObjContext.
Subsequently, you change properties on numerous entities.
You are required to save the changed entity values in the SQL Server database.
Which of the following code segments will you use?
정답: D
You are implementing an ASP.NET Web site.
The Web site contains a Web service named CustomerService.
The code-behind file for the CustomerService class contains the following code segment.
public class ProductService : System.Web.Services.WebService
{ public List<Product> GetProducts(int categoryID) {
return GetProductsFromDatabase(categoryID); } }
You need to ensure that the GetProducts method can be called by using AJAX.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
The Web site contains a Web service named CustomerService.
The code-behind file for the CustomerService class contains the following code segment.
public class ProductService : System.Web.Services.WebService
{ public List<Product> GetProducts(int categoryID) {
return GetProductsFromDatabase(categoryID); } }
You need to ensure that the GetProducts method can be called by using AJAX.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
정답: A,C
Which tool is used to simplify the migration, management and deployment of IIS Web servers, Web applications and Web sites?
정답: A
You are creating an ASP.NET Web site.
The site contains pages that are available to anonymous users.
The site also contains a page named Premium.aspx that provides premium content to only members of a
group named Subscribers.
You need to modify the web.config file to ensure that Premium.aspx can be accessed by only members of
the Subscribers group.
Which configuration should you use?
The site contains pages that are available to anonymous users.
The site also contains a page named Premium.aspx that provides premium content to only members of a
group named Subscribers.
You need to modify the web.config file to ensure that Premium.aspx can be accessed by only members of
the Subscribers group.
Which configuration should you use?
정답: B
You create a new ASP.NET MVC 2 Web application.
The following default routes are created in the Global.asax.cs file. (Line numbers are included for reference
only.)
01 public static void RegisterRoutes(RouteCollection routes)
02 {
03 routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
05 routes.MapRoute("Default", "{controller}/{action}/{id}", new {controller
= "Home", action = "Index", id = ""});
06 }
You implement a controller named HomeController that includes methods with the following signatures.
public ActionResult About() public ActionResult Index() public ActionResult Details(int id)
You need to ensure that the About action is invoked when the root URL of the site is accessed. What should you do?
The following default routes are created in the Global.asax.cs file. (Line numbers are included for reference
only.)
01 public static void RegisterRoutes(RouteCollection routes)
02 {
03 routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
05 routes.MapRoute("Default", "{controller}/{action}/{id}", new {controller
= "Home", action = "Index", id = ""});
06 }
You implement a controller named HomeController that includes methods with the following signatures.
public ActionResult About() public ActionResult Index() public ActionResult Details(int id)
You need to ensure that the About action is invoked when the root URL of the site is accessed. What should you do?
정답: C