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. <system.web> <caching> <outputCacheSettings> <outputCacheProfiles> <add name="ProductView" duration="60" Read more [...]

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” ViewStateMode=”Disabled” _ %> C. <% Page EnableViewState=”false” ViewStateMode=”Disabled” _ Read more [...]

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. 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. Read more [...]

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: B QUESTION 133 Which control allows you Read more [...]

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 Web application using .NET Framework 4.0. Read more [...]

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 added to the existing database. The ContosoAppIdentity user must be granted only the minimum privileges that are required Read more [...]

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 btnSubmit_Click(object sender, EventArgs e) 9 { 10 11 } 12 } You need to ensure that all data that is submitted passes validation Read more [...]

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. DataMember Answer: A QUESTION 92 You are implementing an ASP.NET Web site that uses a custom server control named Task. Task is defined as Read more [...]

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 PageSize property to the number of rows to view at one time. B. Set the DataPager control's PagedControlID property to the ID of the ListView control. C. In the codebehind file, set the DataPager control's Read more [...]

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, dataType: "jsonp", success: function(htmlText) { $("#span1").text(htmlText); } }); B. $.ajax(localURL, Read more [...]

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. function changeImage() { getElementById("myImage").src Read more [...]

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 set EnableViewStateMac to true. B. Store state in ControlState instead of ViewState. C. Serialize the state into an Application state Read more [...]

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 are included for reference only.) 01 public class Routes : AreaRegistration 02 { 03 public override string AreaName 04 { 05 get { return "product"; Read more [...]

Latest 70-515 Real Exam Download 31-40

EnsurepassQUESTION 31 You are implementing an ASP.NET Web site. The site contains the following class. public class Address { public int AddressType; public string Line1; public string Line2; public string City; public string ZipPostalCode; } The Web site interacts with an external data service that requires Address instances to be given in the following XML format. <Address AddressType="2"> <Line1>250 Race Court</Line1> <City>Chicago</City> <ZipCode>60603</ZipCode> Read more [...]

Latest 70-515 Real Exam Download 21-30

EnsurepassQUESTION 21 You use the ASP.NET Web Site template to create a Web site that will be deployed to multiple locations. Each location will specify its SMTP configuration settings in a separate file named smtp.config in the root folder of the Web site. You need to ensure that the configuration settings that are specified in the smtp.config file will be applied to the Web site. Which configuration should you use in web.config? A. <configuration> <system.net> <mailSettings> Read more [...]

Latest 70-515 Real Exam Download 11-20

EnsurepassQUESTION 11 You use the following declaration to add a Web user control named TestUserControl.ascx to an ASP.NET page named TestPage.aspx. <uc:TestUserControl ID="testControl" runat="server"/> You add the following code to the code-behind file of TestPage.aspx. private void TestMethod() { ... } You define the following delegate. public delegate void MyEventHandler(); You need to add an event of type MyEventHandler named MyEvent to TestUserControl.ascx Read more [...]

Latest 70-515 Real Exam Download 1-10

EnsurepassQUESTION 1 You are implementing an ASP.NET application that includes a page named TestPage.aspx. TestPage.aspx uses a master page named TestMaster.master. You add the following code to the TestPage.aspx code-behind file to read a TestMaster.master public property named CityName. protected void Page_Load(object sender, EventArgs e) { string s = Master.CityName; } You need to ensure that TestPage.aspx can access the CityName property. What should you do? A. Add the following directive Read more [...]