70-515 Exam Details

  • Exam Code
    :70-515
  • Exam Name
    :TS: Web Applications Development with Microsoft .NET Framework 4
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :285 Q&As
  • Last Updated
    :Jan 26, 2022

Microsoft 70-515 Online Questions & Answers

  • Question 231:

    You are implementing an ASP.NET AJAX page. You add the following control to the page.

    ...

    You need update the contents of the UpdatePanel without causing a full reload of the page. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

    A. Add the following control before the UpdatePanel.
    B. Add the following control within the UpdatePanel.
    C. Add an AsyncPostBackTrigger that references Timer1.
    D. Add a PostBackTrigger that references Timer1.

  • Question 232:

    You are implementing an ASP.NET Dynamic Data Web site. The Web site includes a data context that enables automatic scaffolding for all tables in the data model. The Global.asax.cs file contains the following code segment. public static

    void RegisterRoutes(RouteCollection routes) { {

    routes.Add(new DynamicDataRoute("{table}/ListDetails.aspx") { Action = PageAction.List,

    ViewName = "ListDetails",

    Model = DefaultModel

    });

    routes.Add(new DynamicDataRoute("{table}/ListDetails.aspx") { Action = PageAction.Details,

    ViewName = "ListDetails",

    Model = DefaultModel

    });

    }

    You need to display the items in a table named Products by using a custom layout. What should you do?

    A. Add a new Web page named Products.aspx to the Dynamic Data\PageTemplates folder of the Web site.
    B. Add a new folder named Products to the Dynamic Data\CustomPages folder of the Web site. Add a new Web page named ListDetails.aspx to the Products folder.
    C. Add a new Web user control named Products.ascx to the Dynamic Data\Filters folder of the Web site. In the code-behind file for the control, change the base class from UserControl to System.Web.DynamicData.QueryableFilterUserControl.
    D. Add a new Web user control named Products_ListDetails.ascx to the Dynamic Data\EntityTemplates folder of the Web site. In the code-behind file for the control, change the base class from UserControl to System.Web.DynamicData.EntityTemplateUserControl.

  • Question 233:

    You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You have recently finished the development of an ASP.NET Web application using .NET Framework 4.0.

    Now, you are deploying the ASP.NET Web application to a remote server. You are required to select a deployment method that will make sure that all Internet Information Services (IIS) settings, in addition to the Web content, are deployed to the remote server. Which of the following deployment methods will you select to accomplish this?

    A. Web Setup project
    B. Web-based deployment
    C. Deployment manifest
    D. Web Deployment Tool

  • Question 234:

    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 message about invalid view state. You need to fix the problem. What should you do?

    A. Set viewStateEncryptionMode to Auto in web.config on both servers.
    B. Set the machineKey in machine.config to the same value on both servers.
    C. Change the session state mode to SQLServer on both servers and ensure both servers use the same connection string.
    D. Override the SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium methods in the page base class to serialize the view state to a local web server file.

  • Question 235:

    You create an ASP.NET page that contains the following tag.

    Page Name

    You need to write code that will change the contents of the tag dynamically when the page is loaded. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

    A. Me.hdr1.InnerHtml = "Text"
    B. TryCast(hdr1.Parent, HtmlGenericControl).InnerText = "Text"
    C. Dim h1 As HtmlGenericControl =TryCast(Me.FindControl("hdr1"), HtmlGenericControl)h1.InnerText = "Text"
    D. Dim h1 As HtmlGenericControl =TryCast(Parent.FindControl("hdr1"), HtmlGenericControl)h1.InnerText = "Text"

  • Question 236:

    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 that the data can be viewed one page at a time. What should you do?

    A. Set the DataPager control's PageSize property to the number of rows to view at one time.
    B. Set the DataPager control's PagedControlID property to the ID of the ListView control.
    C. In the codebehind file, set the DataPager control's Parent property to the ListView control.
    D. In the codebehind file, set the ListView control's Parent property to the DataPager control.

  • Question 237:

    You need to ensure that when the button is clicked, both update panels update the tim without generating a postback. What should you do?

    A. Add the following marktip to UpdatePanel1.
    B. Set the UpdateMode property for the UpdatePanel2 to "Always"
    C. Add the following markup to UpdatePanel2
    D. Set the UpdateMode property for UpdatePanel2 to "Conditional"

  • Question 238:

    You are implementing an ASP.NET application. You add the following code segment.

    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. var secretPeople = (from p in allPeoplefrom u in secretUserswhere p.UserId == uselect p).Distinct();return allPeople.Except(secretPeople);
    B. return from p in allPeoplefrom u in secretUserswhere p.UserId != uselect p;
    C. return (from p in allPeoplefrom u in secretUserswhere p.UserId != uselect p).Distinct();
    D. List people = new List(from p in allPeoplefrom u in secretUserswhere p.UserId ! = uselect p);return people.Distinct();

  • Question 239:

    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 execution where the exception is thrown . What should you do?

    A. Enable the User-unhandled option for SqlException in Visual Studio Exception configuration.
    B. Set the value of the customErrors element's mode attribute to "on" in the web.config file.
    C. Manually attach the Visual Studio debugger to Internet Explorer
    D. Enable the thrown option for SqlException in Visual Studio exception configuration.

  • Question 240:

    You are implementing an ASP.NET page.

    You add asp:Button controls for Help and for Detail.

    You add an ASP.NET skin file named default.skin to a theme. You need to create and use a separate style for the Help button, and you must use the default style for the Detail button.

    What should you do?

    A. Add the following markup to the default.skin file. < asp:Button ID="Help"> < asp:Button ID="Default"> Use the following markup for the buttons in the ASP.NET page. < asp:Button SkinID ="Help">Help < asp:Button SkinID ="Default">Detail
    B. Add the following markup to the default.skin file. < asp:Button SkinID ="Help"> < asp:Button ID="Default"> Use the following markup for the buttons in the ASP.NET page. < asp:Button SkinID ="Help">Help < asp:Button SkinID ="Default">Detail
    C. Add the following code segment to default.skin. < asp:Button SkinID ="Help"> < asp:Button > Use the following markup for the buttons in the ASP.NET page. < asp:Button SkinID ="Help"> < asp:Button SkinID ="Default">Detail
    D. Add the following markup to default.skin. < asp:Button SkinID ="Help"> < asp:Button > Use the following markup for the buttons in the ASP.NET page. < asp:Button SkinID ="Help">Help < asp:Button >Detail

Tips on How to Prepare for the Exams

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.