70-515 Exam Questions
198 real 70-515 exam questions with expert-verified answers and explanations. Page 4 of 4.
- Question #156
You are implementing an ASP.NET page. You add and configure the following ObjectDataSource. <asp:ObjectDataSource SelectMethod="GetProductByProductId" ID="odc" runat="server" TypeN...
- Question #157
You are implementing an ASP.NET Web application that retrieves data from a Microsoft SQL Server database. You add a page that includes the following data source control. <asp:SqlDa...
- Question #158
You are implementing an ASP.NET page. Client-side script requires data. Your application includes a class named Person with a Name property of type string. The code-behind file of...
- Question #159
You are implementing an ASP.NET application that uses LINQ to Entities to access and update the database. The application includes the following method to update a detached entity...
- Question #160
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 want to restrict uploads so that only file...
- Question #161
You are dynamically adding controls to an ASP.NET page in the Page_Load event handler. The page will have text boxes that correspond to the columns in a database table. Each text b...
- Question #162
You create a Web page that has an ASP.NET menu. You need to ensure that the menu items are populated from an array of strings in your code- behind file. What should you do?
- Question #163
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 preven...
- Question #164
You are preparing to deploy an ASP.NET application to a production server by publishing the application in Release configuration. You need to ensure that the connection string valu...
- Question #165
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 obj...
- Question #166
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 th...
- Question #167
You create a page in an ASP.NET Web application. The page retrieves and displays data from a Microsoft SQL Server database. You need to create a data source that can connect to the...
- Question #168
You are developing an ASP.NET Web application. You create a master page. The master page requires a region where you can add page-specific content by using the ASP.NET page designe...
- Question #169
You are developing an ASP.NET Web page. You add the following markup to the page. <asp:FileUpload id="FileUpload1" runat="server" /> <asp:Button id="btnUpload" Text="Upload selecte...
- Question #170
You are developing an ASP.NET MVC 2 Web application. The application contains a controller named HomeController, which has an action named Index. The application also contains a se...
- Question #171
You are developing a WCF service. The service includes an operation names GetProduct. You need to ensure that GetProduct will accept a POST request and will indicate that the retur...
- Question #172
You are debugging an ASP.NET web page. The page includes the following method: [WebMethod] public string GetServerString() { ... } The page also includes the following markup: <asp...
- Question #173
You are developing an ASP.NET web page. The page includes a DropDownList control. You need to call a client-side function when the user changes the value of the control. Which even...
- Question #174
You are developing an ASP.NET MVC 2 application. You create a view that will be returned by action methods in multiple controllers. You need to place the view in the appropriate fo...
- Question #175
You are debugging an ASP.NET Web application by using the Visual Studio debugger. The application is incorrectly handling a SQL Exception on the login page. You need to break execu...
- Question #176
You create a Windows Communication Foundation (WCF) service and deploy it with wsHttpBinding and message security enabled. You create an intermediate WCF service for logging messag...
- Question #177
You need to ensure that when the button is clicked, both update panels update the tim without generating a postback. What should you do?
- Question #178
You are developing an ASP.NET MVC2 view and controller. The application includes a class names Employee that has a LastName property. The controller requires an action method that...
- Question #179
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 require...
- Question #180
You are developing an ASP.NET Web page that uses jQuery validation. The user should enter a valid email address in a text box that has ID txtEmail. The page must display "E-Mail ad...
- Question #181
You create an ASP.NET server control in the SampleControl namespace. The control uses a JavaScript file names Refresh.js to implement AJAX functionality. You need to ensre that the...
- Question #182
You are developing an ASP.NET Web application. The application is configured to use the membership and role providers. You need to allow all users to perform an HTTP GET for applic...
- Question #183
You are developing an ASP.NET Web application. The application must pass an object that contains user-specific data between multiple pages. The object is more than 100 KB in size w...
- Question #185
mouseenter jQuery In a page there is a div (I guess it was a div) and you need to execute a javascript function when if first moves the mouse over the element <div id="div1"></div>
- Question #186
Ajax extender [TargetControlType(typeof(TextBox))] public class DisabledButtonExtender : ExtenderControlBase { [ExtenderControlProperty] [DefaultValue("")] [IDReferenceProperty(typ...
- Question #187
jQuery CheckBoxes In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes
- Question #188
State management You have to store user data of 200 KB in an object. Which state management technique to use:
- Question #189
You develop an ASP.NET Web page that includes multiple WebPartZone controls, an EditorZone. Users report that they cannot customize the layout of the page by moving WebParts from o...
- Question #190
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...
- Question #191
You have a C# code snippet with 2 classes, one composed by elements of the other. Something like public class Student { public string Name {get;set;} } public class Supervisor { pu...
- Question #192
ASP.net MVC dotn display a column Using LINQ to SQL class [MetadataType(typeof(ProductMetadata))] public pertial class Product { ... } public class ProductMetadata { ... }
- Question #193
Migration .net 3.5 to 4.0 You have migrated a web application from .net 3.5 to 4.0. the application hat to render same as in .net 3.5.
- Question #194
A library called contosobuisness.dll has been created and u need to accept it in a page.. all options had the <%assembly tag but the att differed
- Question #195
A text box should enter valid date options all were compare validators but the operator differed (equal and datatyp).. controltovalidate in two options and controltocompare in the...
- Question #196
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...
- Question #197
You have a login.ascx control and to display it in a view which method u would use..
- Question #198
You are developing a Asp.net web application tht includes a panel control that has ID contentsection. You need to add a textBox control to the panel control.
- Question #199
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 #200
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...
- Question #201
You are developing an ASP.NET web page. You need to ensure that content flows from right to left. What should you do?
- Question #202
You are implementing an ASP.NET web page that contains a ScriptManager control. You need to ensure that only the required Microsoft AJAX Framework Javascript files are loaded.
- Question #203
You are developing an ASP.NET MVC 2 Web application that displays product details. The global.asax.cs file contains the following code segment 01 public static void registerRoutes(...
- Question #204
You are implementing an ASP.NET Web page. You need to add a text box that allows only values between 1 and 10, inclusive, to be submitted. Which two code segments should you use? (...