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 91:

    You are developing an ASP.NET Web page that includes a text box control. The page includes a server- side method named ValidateValue. You need to configure the page so that the text box value is validated by using the ValidateValue

    method.

    Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

    A. Use the CompareValidator control.
    B. Use the CustomValidator control.
    C. Set ValidationGroup on the control to ValidateValue
    D. Set OnServerValidate on the control to ValidateValue.

  • Question 92:

    You are implementing an ASP.NET MVC 2 Web application. The URL with path /Home/Details/{country} will return a page that provides information about the named country. You need to ensure that requests for this URL that contain an

    unrecognized country value will not be processed by the Details action of HomeController.

    What should you do?

    A. Add the ValidateAntiForgeryToken attribute to the Details action method.
    B. Add the Bind attribute to the country parameter of the Details action method. Set the attribute's Prefix property to Country.
    C. Create a class that implements the IRouteConstraint interface.Configure the default route to use this class.
    D. Create a class that implements the IRouteHandler interface. Configure the default route to use this class.

  • Question 93:

    You are implementing an ASP.NET AJAX page.

    You add two UpdatePanel controls named pnlA and pnlB. pnlA contains an UpdatePanel control named pnlAInner in its content template.

    You have the following requirements.

    Update panels pnlA and pnlB must refresh their content only when controls that they contain cause a postback.

    Update panel pnlAInner must refresh its content when controls in either pnlA or pnlB or pnlAInner cause a postback.

    You need to configure the panels to meet the requirements.

    What should you do?

    A. Set the UpdateMode of pnlA and pnlB to Conditional. Set the UpdateMode of pnlAInner to Always.
    B. Set the UpdateMode of pnlA and pnlB to Conditional. Set the UpdateMode of pnlAInner to Conditional, and add AsyncPostBackTrigger elements to its Triggers element for every control in pnlA.
    C. Set the UpdateMode of pnlA and pnlB to Always. Set the UpdateMode of pnlAInner to Conditional.
    D. Set the UpdateMode of pnlA and pnlB to Always. Set the UpdateMode of pnlAInner to Always, and add AsyncPostBackTrigger elements to its Triggers element for every control in pnlB.

  • Question 94:

    You are implementing an ASP.NET page. You add and configure the following ObjectDataSource.

    The page will be called with a query string field named pid. You need to configure the ObjectDataSource control to pass the value of the pid field to GetProductsByProductId method.

    What should you do?

    A. Replace the asp:Parameter with the following declaration.
    B. Replace the asp:Parameter with the following declaration.
    C. Add the following event handler to the Selecting event of the ObjectDataSource control.Private Sub odc_Selecting(ByVal sender As Object,ByVal e As _System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs) _Handles odc.Selecting
    D. InputParameters("pid") = Request.QueryString("productId")End Sub
    E. Add the following code segment to the pages code-behind.Protected Sub Page_Load(ByVal sender As Object,ByVal e As System.EventArgs) Handles Me.Loadodc.SelectParameters.Add("productId", Request.QueryString("pid"))End Sub

  • Question 95:

    You are implementing an ASP.NET page that includes a text box. You need to validate values that are typed by users to ensure that only numeric values are submitted. Which control markup should you use?

  • Question 96:

    You are implementing an ASP.NET Web site that will be accessed by an international audience. The site contains global and local resources for display elements that must be translated into the language that is selected by the user. You need to ensure that the Label control named lblCompany displays text in the users selected language from the global resource file. Which control markup should you use?

  • Question 97:

    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.

    A. Set the AjaxFrameworkMode property of the ScriptManager to Enabled, and reference each javascript file by adding a ScriptReference for each required file.
    B. Set the AjaxFrameworkMode property of the ScriptManager to Explicit, and reference each JavaScript file by adding a ScriptReference for each required file.
    C. Set the AjaxFrameworkMode property of the ScriptManager to Disabled, and reference each JavaScript file by adding a ScriptReference for each required file.
    D. Set the AjaxFrameworkMode property of the ScriptManager to Enabled, and manually add a reference to each required JavaScript file to the HTML page head element.

  • Question 98:

    You create a Web page that contains the following code. (Line numbers are included for reference only.)

    01

    07

    Welcome!

    08

      09

    • Black
    • 10

    • Red
    • 11

    You need to ensure that when the user clicks an item in the list, the text color of the Welcome! message will change. Which declaration should you use?

    A. BlackRed
    B. BlackRed
    C. RedBlack
    D. RedBlack

  • Question 99:

    You are creating an ASP.NET Web site. The site contains pages that are available to anonymous users. The site also contains a page named Premium.aspx that provides premium content to only members of a group named Subscribers.

    You need to modify the web.config file to ensure that Premium.aspx can be accessed by only members of the Subscribers group.

    Which configuration should you use?

  • Question 100:

    You are implementing an ASP.NET application that will use session state in out-of-proc mode. You add the following code.

    public class Person { public string FirstName { get; set;} public string LastName { get; set;} }

    You need to add an attribute to the Person class to ensure that you can save an instance to session state. Which attribute should you use?

    A. Bindable
    B. DataObject
    C. Serializable
    D. DataContract

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.