70-515 Exam Questions
198 real 70-515 exam questions with expert-verified answers and explanations. Page 2 of 4.
- Question #51
You are implementing an ASP.NET page that hosts a user control named CachedControl. You need to ensure that the content of the user control is cached for 10 seconds and that it is...
- Question #52
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 View...
- Question #53
You are troubleshooting an ASP.NET Web application. System administrators have recently expanded your web farm from one to two servers. Users are periodically reporting an error me...
- Question #54
You are developing a Web page. The user types a credit card number into an input control named cc and clicks a button named submit. The submit button sends the credit card number t...
- Question #55
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 nee...
- Question #56
You are developing an ASP.NET Web application. The application includes a Icomparer<string> implementation named CaseInsensitiveComparer that compares strings without case sensitiv...
- Question #57
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...
- Question #58
You are implementing an ASP.NET web application. The application defines the following classes. public class Person { public String Name{get; set;} publicIList<Address> Addresses{g...
- Question #59
You are developing an ASP.NET web page. The page must display data from XML file named Inventory.xml. Inventory.xml contains data in the following format. <?xml version="1.0" stand...
- Question #60Consume WCF services
You are implementing an ASP.NET page that includes a text box. You need to validate values that are typed by users to ensure that only numeric values are submitted. Which control m...
input validationRangeValidatorASP.NET controlsnumeric validation - Question #61
You create a Web page that contains drop-down menus that are defined by using div tags in the following code. <div class="dropdown-menu"> <div class="menu-title">Menu One</div> <di...
- Question #62
You are implementing an ASP.NET application that makes extensive use of JavaScript libraries. Not all pages use all scripts, and some scripts depend on other scripts. When these li...
- Question #63
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 i...
- Question #64
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 information: </span> You need to write a JavaScript...
- Question #65
You create a Web page that contains the following div. <div id="target"> </div> You have a JavaScript array named imageurls that contains a list of image URLs. You need to write a...
- Question #66
You create a Web page that contains the following code. <script type="text/javascript"> var lastId = 0; </script> <div class="File"> Choose a file to upload: <input id="File0" name...
- Question #67
You are building an ASP.NET control. The control displays data by using a table element with a class attribute value of Results. The control should expose a client-side event named...
- Question #68
You create a Web page that contains the following code. (Line numbers are included for reference only.) 01 <script> 02 function changeColor(c) { 03 message.style.color = c; 04 } 05...
- Question #69
You are implementing an ASP.NET AJAX page. You add the following control to the page. <asp:UpdatePanel ID="pnl1" runat="server" UpdateMode="Conditional"> <ContentTemplate> ... </Co...
- Question #70
You are implementing an ASP.NET AJAX page. You add two UpdatePanel controls named pnlA and pnlB. pnlA contains an UpdatePanel control named pnlAInner in its content template. You h...
- Question #71
You are implementing an ASP.NET AJAX page that contains two div elements. You need to ensure that the content of each div element can be refreshed individually, without requiring a...
- Question #72
You create an ASP.NET page. The page uses the jQuery $.ajax function to make calls back to the server in several places. You add the following div element to the page. <div id="err...
- Question #73
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...
- Question #74
A Web service returns a list of system users in the following format. <xml version="1.0" > <users> <user id="first"> <name>Name of first user</name> <email>[email protected]</email...
- Question #75
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...
- Question #76
You are creating an ASP.NET Web application that uses the SqlMembershipProvider. You plan to test locally and deploy to multiple production servers. You need to ensure that each de...
- Question #77Security
You are implementing an ASP.NET Web application. Users will authenticate to the application with an ID. The application will allow new users to register for an account. The applica...
SqlMembershipProvideruser registrationauthenticationASP.NET membership - Question #78
You use the ASP.NET Web Application template to create an application in a new Visual Studio solution. The project uses types that are defined in a class library project. Source co...
- Question #79
You are developing an ASP.NET application by using Visual Studio 2010. You need to interactively debug the entire application. Which two actions should you perform? (Each correct a...
- Question #80
You are deploying an ASP.NET Web application to a remote server. You need to choose a deployment method that will ensure that all IIS settings, in addition to the Web content, will...
- Question #81
You are developing an ASP.NET web page that includes a textbox control that has ID txtDate. You need to ensure that the user enters a valid date in the text box. Which markup shoul...
- Question #82
You are developing an ASP.NET MVC 2 Web Application that displays daily blog posts. Visitors access a blog post page by using a Web address to pass in the year, month, and day-for...
- Question #83
You are developing an ASP.NET MVC 2 application. You create a login user control named login.ascx. You need to display Login.ascx in a view. What should you do?
- Question #84
You are developing an ASP.NET web application. The application includes a class library named Contoso.dll that will be used by other ASP.Net applications on the same server. You ne...
- Question #85
You are developing an ASP.NET MVC2 application. You add an area named Admin to the application. Admin contains a controller class name to MainController. You create a view named In...
- Question #86
You are developing as ASP.NET Web application that will display a list of values. The application must display the values in a tabular format in columns from top to bottom. You nee...
- Question #87
You are developing an ASP.NET web page that includes a Panel Control that has ID ContentSection. You need to add a text box control to the Panel control. Which code segment should...
- Question #88
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...
- Question #89
You are developing an ASP.NET Web page that will display the median value from a sequence of integer values. You need to create an extension method to compute the median value. Whi...
- Question #90
You are creating an ASP.NET Web application. The application must call a WCF service by using a WCF routing service. You need to ensure that the application can invoke the target s...
- Question #91
You are developing an ASP.NET Web page. You add a data-bound GridView control. The GridView contains a TemplateField that includes a DropDownList. You set the GridViews ClientIDMod...
- Question #92
Gridview: How to change the image of an image control place in each row in a gridview:
- Question #93
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...
- Question #94
You are implementing an ASP.NET Web site that uses a custom server control named Task. Task is defined as shown in the following list. Class name: Task Namespace: DevControls Assem...
- Question #95
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 perf...
- Question #96
You are developing an ASP.NET web page named WebPage.aspx. The page includes a user control named UserInfoControl.ascx. You need to expose a control property named FirstName and re...
- Question #97
You are developing an ASP.NET Web page. The page contains the following markup. <asp:GridView ID="gvModels" runat="server" onrowdatabound="gvModels_RowDataBound" AutoGenerateColumn...
- Question #98
You are developing an ASP.NET web page that includes a text box control. The page includes a server-side method named ValidateValue. You need to configure the page so that the text...
- Question #99
You are developing an ASP.NET templated server control. You need to ensure that a new ID namespace is created within the page control hierarchy when the control is added to a page....
- Question #100
You are deloping an ASP.NET Dynamic Data Web application. The application uses entities from a global library named Entities. The Application_Start event contains the following cod...