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 are
planning to deploy the ASP.NET Web application to a production server by publishing the Web application in Release configuration. You must ensure that the connection string value in the Web.config file is updated to the connection string
value of the production server during publishing.
What will you do?
A. Add the following code to the Web.config file.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.
The Web application connects to a SQL Server database. You use the ADO.NET Entity Framework to handle persistence-ignorant entities.
You create an ObjectContext object named ObjContext.
Subsequently, you change properties on numerous entities. You are required to save the changed entity values in the SQL Server database.
Which of the following code segments will you use?
A. ObjContext.SaveChanges(SaveOptions.DetectChangesBeforeSave);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 event should you handle?
A. ClickYou create a Visual Studio 2010 solution that includes a WCF service project and an ASP.NET project. The service includes a method named GetPeople that takes no arguments and returns an array of Person objects. The ASP.NET application uses a proxy class to access the service. You use the Add Service Reference wizard to generate the class. After you create the proxy, you move the service endpoint to a different port. You need to configure the client to use the new service address. In addition, you must change the implementation so that calls to the client proxy will return a List
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 need to cache the data that the action method returns. What should you do?
A. Add the following section to the web.config file.You are implementing an ASP.NET page that includes the following down list.
You need to dynamically add values to the end of the drop-down list.
What should you do?
A. Add the following OnPreRender event handler to the asp:DropDownListPrivate Sub mydropdown_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles mydropdown.PreRenderDim ddl As DropDownList = TryCast (sender, DropDownList)Dim lbl As Label = New Label()lbl.Text = "Option"lbl.ID = "Option"ddl.Controls.Add(lbl)End SubYou are developing an ASP.NET web application.
The application includes the following Entity Data Model (EDM):

You instantiate an ObjectContext for the EDM named context. You need to find the total number of addresses that are associated with customers that have a non-null middle name. Which LINQ to Entities query should you use?
A. var query = context.Customers.Where(c => c.MiddleName != null).Select(c =>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 the page includes the following code segment.
public string JsonValue;
List
JavaScriptSerializer json = new JavaScriptSerializer();
You need to use the JavaScriptSerializer class to serialize only the Name property of each item in the people list.
Which code segment should you use?
A. JsonValue = json.Serialize(people.Select(p => p.Name));You are implementing a new Dynamic Data Web site.
The Web site includes a Web page that has an ObjectDataSource control named ObjectDataSource1. ObjectDataSource1 interacts with a Web service that exposes methods for listing and editing instances of a cla named Product.
You add a GridView control named GridView1 to the page, and you specify that GridView1 should use ObjectDataSource1 as its data source.
You then configure GridView1 to auto-generate fields and to enable editing. You need to add Dynamic Data behavior to GridView1. You also must ensure that users can use GridView1 to update Product instances.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add a DynamicDataManager control to the Web page.You create a Web page that contains the span shown in the following line of code.
Text
You need to replace the contents of the span with HTML that you download from a URL specified by a global variable named localURL.
Which code segment should you use?
A. $.ajax({type: "GET",url: localURL,dataType: "jsonp",success: function(htmlText) {$ ("#span1").text (htmlText);}});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.