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 service by using the router endpoint. What should you do?
A. Add a service reference to the router service. In the client binding configuration, specify the address of the router service.You 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 are implementing an ASP.NET application. You add the following code segment. Public Function GetNonSecretUsers() As List(Of Person) Dim secretUsers() As String = {"@secretUser", "@admin", "@root"}
Dim allpeople As List(Of Person) = GetAllPeople()
...
End Function
You need to add code to return a list of all Person objects except those with a UserId that is contained in the secretUsers list. The resulting list must not contain duplicates.
Which code segment should you use?
A. Dim secretPeople = (From p In allpeopleFrom u In secretUsersWhere p.UserId = uSelect p).Distinct()Return allpeople.Except(secretPeople)State management
You have to store user data of 200 KB in an object.
Which state management technique to use:
A. Server sessionYou are developinASP.NETg an Dynamic Data Web application. The application uses entities from a global library named Entities. The Application_Start event contains the following code segment.
DefaultModel.RegisterContect(typeof)(Entities.MyDBDataContext), new ContextConfiguration() { ScaffoldAllTables = false });
You need to ensure that the application shows the Order and Customer entities and hides all other entities.
What should you do?
A. Set the ScaffoldAMTables property of the ContextConfiguration to true.Gridview: How to change the image of an image control place in each row in a gridview:
A. ItemDataBoundYou are developing an ASP.NET MVC 2 Web application.
A page makes an AJAX request and expects a list of company names in the following format.
["Adventure Works","Contoso"]
You need to write an action method that returns the response in the correct format.
Which type should you return from the action method?
A. AjaxHelperYou 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 to TestPage.aspx.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; }
}
You need to ensure that the custom formatting is applied to LastScore values when the HtmlHelper.DisplayForModel method is called for any view in the application that has a model of type Player.
What should you do?
A. Rename Score.ascx to LastScore.ascx.You are implementing an ASP.NET MVC 2 Web application. You create a shared user control named MenuBar.ascx that contains the application# s menu. You need to use the menu bar in all application views.
What should you do?
A. In the site# s master page, create a div element with an ID of Navigation. Add the following code segment inside this div element.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.