You create a custom server control named Task that contains the following code segment. (Line numbers are included for reference only.)
01Namespace DevControls 03 Public Class Task 04 Inherits WebControl 06
You need to ensure that adding a Task control from the Toolbox creates markup in the following format.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add the following code segment to the project's AssemblyInfo.vb file.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 will insert an Employee instance into a database.
You need to ensure that the data that is submitted is an Employee instance and that a LastName value is given. What should you do?
A. Add a ValidationMessage helper method immediately after the view's last name TextBox. Define the action method as follows.public ActionResult Create(FormCollection employeeToCreate){...}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 and is exposed using the following endpoint kind="udpDiscoveryEndpoint"/> You need to consume the service by using the WS-Discovery protocol. Which client endpoint configuration should you use?
You have a login.ascx control and to display it in a view which method u would use..
A. http.displayYou 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 page refresh. What should you do?
A. Add two forms to the page.Add a script manager and an update panel to each form.Add a content template to each update panel, and move each div element into a content template.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

Assembly: TestServerControl.dll

Base class: System.Web.UI.WebControls.WebControl
You copy TestServerControl.dll to the Web sites Bin folder. You need to allow the Task control to be declaratively used on site pages that do not contain an explicit @ Register directive.
Which configuration should you add to the web.config file?
Which of the following is the correct collection of build events?
A. Pre-Build, Post-Link, and Pre-LinkYou are implementing an ASP.NET application that uses data-bound GridView controls in multiple pages. You add JavaScript code to periodically update specific types of data items in these GridView controls. You need to ensure that the
JavaScript code can locate the HTML elements created for each row in these GridView controls, without needing to be changed if the controls are moved from one page to another.
What should you do?
A. Replace the GridView control with a ListView control.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 JavaScript file is included in the assembly. Which two actions should you perform (Choose 2)
A. Add the following assembly attribute to the AssemblyInfo file. [assembly:WebResource("SampleControl.Refresh.js","application/x-javascript")]You are developing an ASP.NET Web application.
The application must pass an object that contains user-specific data between multiple pages. The object ismore than 100 KB in size when serialized.You need to minimize the amount of data is sent to the user.What should you do?
A. Pass the object data in a hidden field.Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-515 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.