Latest 70-515 Real Exam Download 171-180

EnsurepassQUESTION 171 You are developing an ASP.Net MVC 2 view and controller. The controller includes an action method that retrieves rows from a Product table in Microsoft SQL Server database. You need to cache the data that the action method returns. What should you do? A. Add the following <outputCacheSettings> section to the web.config file. […]

Latest 70-515 Real Exam Download 161-170

EnsurepassQUESTION 161 ASP.net MVC dotn display a column Using LINQ to SQL class [MetadataType(typeof(ProductMetadata))] public pertial class Product { … } public class ProductMetadata { … } A. Add the following attribute to Product class [DisplayColumn("DiscontinueDate","DiscontinueDate",false) B. Add the following attribute to ProductMetadata class [DisplayColumn("DiscontinueDate","DiscontinueDate",false) C. Add the following code segment Read more […]

Latest 70-515 Real Exam Download 151-160

EnsurepassQUESTION 151 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? A. <% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %> B. <% Page EnableViewState=”true” […]

Latest 70-515 Real Exam Download 141-150

EnsurepassQUESTION 141 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. […]

Latest 70-515 Real Exam Download 131-140

EnsurepassQUESTION 131 Which class provides paging functionality for data-bound controls that implement the IPageableItemContainer interface? A. DataPagingField B. DataPagerCollection C. DataPager D. DataPaging Answer: C QUESTION 132 Which method of the Page class searches the page naming container for a server control with a particular identifer? A. FindFieldTemplate B. FindControl C. FindDataSourceControl D. FindDataControl Answer: […]

Latest 70-515 Real Exam Download 121-130

EnsurepassQUESTION 121 Which of the following is the correct syntax to specify the path to a file that generates the strong type? A. <%@ PreviousPageType VirtualPath ="~/MyPage.aspx"% > B. <%@ PreviousPageType VirtualPath ="/MyPage.aspx/ ~"% > C. <%@ PreviousPageType VirtualPath ="~/MyPage.master"% > D. <%@ PreviousPageType VirtualPath ="~/MyPage"% > Answer: A You create an ASP.NET MVC 2 […]

Latest 70-515 Real Exam Download 111-120

EnsurepassQUESTION 111 You are adding new capabilities to an ASP.NET web site. The site currently connects to a Microsoft SQL Server database by using the credentials of the CONTOSOAppIdentity account, which has been granted access to only objects within the database. The application requires the following implementation: Database objects that support ASP.NET roles must be […]

Latest 70-515 Real Exam Download 101-110

EnsurepassQUESTION 101 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 8 protected void […]

Latest 70-515 Real Exam Download 91-100

EnsurepassQUESTION 91 You are developing an ASP.NET Web page. The page includes a List<Product> instance. You add a FormView control to display a single Product from this list. You need to bind the list to the FormView control. Which FormView property should you set in the code-behind file? A. DataSource B. DataSourceID C. DataKeyNames D. […]

Latest 70-515 Real Exam Download 81-90

EnsurepassQUESTION 81 You are implementing an ASP.NET page that will retrieve large sets of data from a data source. You add a ListView control and a DataPager control to the page. You need to ensure that the data can be viewed one page at a time. What should you do? A. Set the DataPager control’s […]

Latest 70-515 Real Exam Download 71-80

EnsurepassQUESTION 71 You create a Web page that contains the span shown in the following line of code. <span id="span1">Text</span> You need replace the contents of the span with HTML that you download from a URL specified by a global variable named localURL. Which code segment should you use? A. $.ajax({ type: "GET", url: localURL, […]

Latest 70-515 Real Exam Download 61-70

EnsurepassQUESTION 61 You create a Web page that contains the following image element. <img id="myImage" src="/image1.png" /> You need to write a JavaScript function that will dynamically change which image is displayed. Which code segment should you use? A. function changeImage() { myImage.src = "image2.png"; } B. function changeImage() { document.getElementById("myImage").src = "image2.png"; } C. […]

Latest 70-515 Real Exam Download 51-60

EnsurepassQUESTION 51 You have created an ASP.NET server control named ShoppingCart for use by other developers. Some developers report that the ShoppingCart control does not function properly with ViewState disabled. You want to ensure that all instances of the ShoppingCart control work even if ViewState is disabled. What should you do? A. Require developers to […]

Latest 70-515 Real Exam Download 41-50

EnsurepassQUESTION 41 You are implementing an ASP.NET MVC 2 application. In the Areas folder, you add a subfolder named Product to create a single project area. You add files named ProductController.cs and Index.aspx to the appropriate subfolders. You then add a file named Route.cs to the Product folder that contains the following code. (Line numbers […]