[Free] Get all latest Microsoft 70-640 Actual Tests 501-510

EnsurepassQUESTION 501 Your network contains an Active Directory forest. The forest contains two domains. The forest contains four domain controllers. The domain controllers are configured as shown in the following table.     All user accounts are located in the child.contoso.com domain. Users in the child.contoso.com domain are members of several security groups in the contoso.com domain. Your company decides to change the naming standard of user accounts. You rename all of the user accounts Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 251-260

EnsurepassQUESTION 251 You have a master page custom.master … u create a nested.master page using it …   and then u have content page that uses the nested.master as its master page … to get a string prop from custom.master into a label in content page the code u wud use…   A. master.master B. parent.master C. this.master D. unknown   Correct Answer: B     QUESTION 252 You have a login.ascx control and to display it in a view which method u would use.. Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 261-270

EnsurepassQUESTION 261 You are implementing an ASP.Net web page that includes a Treeview control. You need to ensure that the TreeView control nodes are populated only when they are first expanded. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)   A. Set the PopulateNodesFromClient property of the TreeView control to true. B. Add an event handler to the TreeNodeDataBound event that includes code to populate the node. C. Set the Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 241-250

EnsurepassQUESTION 241 You are developing an ASP.NET MVC 2 Web Application. You need to implement an asynchronous controller named AccountingController, and you must ensure that the export action required proper authorization. Which code segment should you use?   A. public class AccountingController : Controller { public void ExportAsync() {…} [Authorise] public void ExportCompleted() {…} } B. public class AccountingController : AsyncController { [Authorise] public void ExportAsync() Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 231-240

EnsurepassQUESTION 231 jQuery CheckBoxes   In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes   A. $(“input:checked”).length; B. $(“input”, selected).length; C. $(“input:selected”).length;   Correct Answer: A Explanation: n = $(“input:checked”).length; http://api.jquery.com/checked-selector/     QUESTION 232 State management   You have to store user data of 200 KB in an object. Which state management technique Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 221-230

EnsurepassQUESTION 221 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 Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 211-220

EnsurepassQUESTION 211 Which class provides paging functionality for data-bound controls that implement the IPageableItemContainer interface?   A. DataPagingField B. DataPagerCollection C. DataPager D. DataPaging   Correct Answer: C     QUESTION 212 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 Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 201-210

EnsurepassQUESTION 201 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 MVC 2 Web application using .NET Framework 4.0.   You implement a single project area in the MVC 2 Web application.   In the Areas folder, you add a subfolder named MyTest.   You add the following files to the appropriate sub-folders:   MyController. cs   MyHome.aspx   Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 191-200

EnsurepassQUESTION 191 You are developing an ASP.NET Web page.   The page includes the following EntityDataSource control.   <asp:EntityDataSource ID=”EntityDataSource1″ runat=”server”   ConnectionString=”name=AdventureWorksEntities”   DefaultContainerName=”AdventureWorksEntities” EnableFlattening=”False”   EntitySetName=”Products” />   The page must filter the data that is not displayed in a grid based on a querry string paramater named Product whose ProductName Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 181-190

EnsurepassQUESTION 181 You are implementing a Web page that displays text that was typed by a user. You need to display the user input in the Web page so that a cross-site scripting attack will be prevented. What should you do?   A. Call document.write. B. Call Response.Write. C. Call HttpUtility.UrlEncode. D. Call HttpUtility.HtmlEncode.   Correct Answer: D     QUESTION 182 You create a Web page that contains the following code.     You need to provide Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 171-180

EnsurepassQUESTION 171 You are implementing custom ASP.NET server controls. You have a base class named RotaryGaugeControl and two subclasses named CompassGaugeControl and SpeedGaugeControl. Each control requires its own client JavaScript code in order to function properly. The JavaScript includes functions that are used to create the proper HTML elements for the control. You need to ensure that the JavaScript for each of these controls that is used in an ASP.NET page is included in the generated Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 161-170

EnsurepassQUESTION 161 You are developing an ASP.NET Web application. The application will contain a page that is customized for various browsers. The application will use output caching to optimize performance. You need to ensure that the page is cached by browser type and major version only. Which attribute should you add to the OutputCache directive?   A. VaryByCustom=”browser” B. VaryByCustom=”User-Agent” C. VaryByHeader=”browser” D. VaryByHeader=”User-Agent”   Correct Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 151-160

EnsurepassQUESTION 151 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?   A. RowDataBound B. RowCommand C. Row Updated D. RowEditing   Correct Answer: A     QUESTION Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 141-150

EnsurepassQUESTION 141 A Web page includes the HTML shown in the following code segment.   <span id=”ref”>   <a name=Reference>Check out</a>   the FAQ on   <a href=”http://www.contoso.com”>   Contoso</a>’s web site for more information:   <a href=”http://www.contoso.com/faq”> FAQ </a>.   </span>   <a href=”http://www.contoso.com/ home “> Home </a>   You need to write a JavaScript function that Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 131-140

EnsurepassQUESTION 131 You are testing an existing ASP.NET page. The page includes a text 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?   A. the EnableEventValidation attribute B. the ResponseEncoding attribute C. the ValidateRequest attribute D. the Strict attribute   Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 121-130

EnsurepassQUESTION 121 You deploy an ASP.NET application to an IIS server. You need to log health-monitoring events with severity level of error to the Windows application event log. What should you do?   A. Run the aspnet_regiis.exe command. B. Set the Treat warnings as errors option to All in the project properties and recompile. C. Add the following rule to the healthMonitoring section of the web.config file. <rules> <add name=”Failures” eventName=”Failure Audits” provider=”EventLogProvider” Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 111-120

EnsurepassQUESTION 111 You are implementing an ASP.NET MVC 2 Web application that contains several folders.   The Views/Shared/DisplayTemplates folder contains a templated helper named Score.ascx that performs custom formatting of integer values.   The Models folder contains a class named Player with the following definition.   public class Player   {   public String Name { get; set; }   public int LastScore { get; set; }   public int HighScore { get; set; }   Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 101-110

EnsurepassQUESTION 101 You are developing an ASP.NET MVC 2 application. A view contains a form that allows users to submit their first name. You need to display the value that is submitted, and you must ensure that your code avoids cross-site scripting. Which code segment should you use?   A. <%: Model.FirstName %> B. <%= Model.FirstName %> C. <% Response.Write(Model.FirstName); %> D. <% Response.Write(HttpUtility.HtmlDecode(Model.FirstName)); %>   Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 91-100

EnsurepassQUESTION 91 You create a Web page that contains drop-down menus that are defined by using div tags in the following code.     You need to write a JavaScript function that will enable the drop-down menus to activate when the user positions the mouse over the menu title.   Which code segment should you use?   A. $(“.dropdown-menu”).hover( function () { $(“.menu-items”). slideDown (100); }, function () { $(“.menu-items”). slideUp (100); } ); B. $(“.dropdown-menu”).hover( Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 81-90

EnsurepassQUESTION 81 You create an ASP.NET page named TestPage.aspx that contains validation controls. You need to verify that all input values submitted by the user have been validated by testing the Page.IsValid property. Which page event should you add an event handler to?   A. Init B. Load C. PreInit D. PreLoad   Correct Answer: B     QUESTION 82 You are implementing an ASP.NET application that includes a page named TestPage.aspx. TestPage.aspx uses a master Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 71-80

EnsurepassQUESTION 71 You are implementing an ASP.NET Web site. The site contains the following class.   Public Class Address   Public AddressType As Integer   Public Line1 As String   Public Line2 As String   Public City As String   Public ZipPostalCode As String   End Class   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 Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 61-70

EnsurepassQUESTION 61 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?   A. <location path=”Premium.aspx”> <system.web> <authorization> Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 51-60

EnsurepassQUESTION 51 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.vb file contains the following code segment.   Public Shared Sub RegisterRoutes(ByVal routes As RouteCollection)   routes.Add(New DynamicDataRoute(“{table}/ListDetails.aspx”) _   With   {   .Action = PageAction.List,   .ViewName = “ListDetails”,   .Model = DefaultModel Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 41-50

EnsurepassQUESTION 41 You create a Web page that contains drop-down menus that are defined by using div tags in the following code.     You need to write a JavaScript function that will enable the drop-down menus to activate when the user positions the mouse over the menu title.   Which code segment should you use?   A. $(“.dropdown-menu”).hover( function () { $(“.menu-items”). slideDown (100); }, function () { $(“.menu-items”). slideUp (100); } ); B. $(“.dropdown-menu”).hover( Read more […]

[Free] Get all latest Microsoft 70-515 Actual Tests 31-40

EnsurepassQUESTION 31 You are implementing a Web page that allows users to upload files to a Web server. The page includes a form that has a Submit button. You need to reject files larger than 1 MB. What should you do?   A. Add an HTML input type= file control. Add an onSubmit handler to the form to check the file size and cancel the form submission if the file size is too large. B. Add an HTML input type= file control. Add an onChange handler to the input control to check the file size Read more […]