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

    Which class defines the contract that ASP.NET implements to provide membership services using custom membership providers?

    A. FormsAuthentication
    B. RoleProvider
    C. SqlRoleProvider
    D. MembershipProvider

  • Question 52:

    A library called contosobuisness.dll has been created and u need to accept it in a page.. all options had the <%assembly tag but the att differed

  • Question 53:

    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.vb file contains the following code segment.

    Public Shared Sub RegisterRoutes(ByVal routes As RouteCollection)

    routes.Add(New DynamicDataRoute("{table}/ListDetails.aspx") _ With {

    .Action = PageAction.List,

    .ViewName = "ListDetails",

    .Model = DefaultModel

    })

    routes.Add(New DynamicDataRoute("{table}/ListDetails.aspx") _ With {

    .Action = PageAction.Details,

    .ViewName = "ListDetails",

    .Model = DefaultModel

    })

    End Sub

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

    You create an ASP.NET MVC 2 Web application that contains the following controller class.

    public class ProductController : Controller

    {

    static List products = new List();

    public ActionResult Index()

    {

    return View();

    }}

    In the Views folder of your application, you add a view page named Index.aspx that includes the following @ Page directive.

    <%@ Page Inherits="System.Web.Mvc.ViewPage" %>

    You test the application with a browser. You receive the following error message when the Index method is invoked: "The view 'Index' or its master was not found." You need to resolve the error so that the new view is displayed when the

    Index method is invoked.

    What should you do?

    A. Change the name of the Index.aspx file to Product.aspx.
    B. Create a folder named Product inside the Views folder. Move Index.aspx to the Product folder.
    C. Replace the @ Page directive in Index.aspx with the following value.
    D. Modify the Index method by changing its signature to the following:public ActionResult Index(Product p)

  • Question 55:

    You are implementing an ASP.NET Web site. The root directory of the site contains a page named Error.aspx. You need to display the Error.aspx page if an unhandled error occurs on any page within the site. You also must ensure that the

    original URL in the browser is not changed.

    What should you do?

    A. Add the following configuration to the web.config file.
    B. Add the following configuration to the web.config file.
    C. Add the following code segment to the Global.asax file.Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)Response.Redirect("~/Error.aspx")End Sub
    D. Add the following code segment to the Global.asax file.Protected Sub Page_Load(ByVal sender As Object,ByVal e As System.EventArgs) Handles Me.LoadServer.Transfer("~/Error.aspx") End Sub

  • Question 56:

    Which class is used to specify a set of features to support on the XrnlReader object created by the Create method?

    A. XmlReaderSettings
    B. XmlSecureResolver
    C. XmlValidatingReader
    D. XmlTextReaderSelectMany(c => c.CustomerAddresses).Count()

  • Question 57:

    You create an ASP.NET MVC 2 Web application that contains the following controller class.

    Public Class ProductController

    Inherits System.Web.Mvc.Controller

    Shared products As List(Of Product) = New List(Of Product)() Function Index() As ActionResult Return View()

    End Function

    End Class

    In the Views folder of your application, you add a view page named Index.aspx that includes the following @ Page directive.

    <%@ Page Inherits="System.Web.Mvc.ViewPage" %>

    You test the application with a browser. You receive the following error message when the Index method is invoked: # The view 'Index' or its master was not found.# You need to resolve the error so that the new view is displayed when the

    Index method is invoked.

    What should you do?

    A. Change the name of the Index.aspx file to Product.aspx.
    B. Create a folder named Product inside the Views folder. Move Index.aspx to the Product folder.
    C. Replace the @ Page directive in Index.aspx with the following value.
    D. Modify the Index method by changing its signature to the following Function Index(ByVal p As Product) As ActionResult

  • Question 58:

    Which event of the GridView class occurs when the Edit button of a row is clicked, but before the GridView control enters edit mode?

    A. RowEntered
    B. RowEdited
    C. RowEntering
    D. RowEditing

  • Question 59:

    You are creating an ASP.NET Web site. The site has a master page named Custom.master. The code- behind file for Custom.master contains the following code segment.

    Partial Public Class Custom Inherits System.Web.UI.MasterPage Public Property Region As String Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub

    End Class

    You create a new ASP.NET page and specify Custom.master as its master page. You add a Label control named lblRegion to the new page. You need to display the value of the master page's Region property in lblRegion.

    What should you do?

    A. Add the following code segment to the Page_Load method of the page code-behind file. Dim custom As Custom = Me.ParentlblRegion.Text = custom.Region
    B. Add the following code segment to the Page_Load method of the page code-behind file.Dim custom As Custom = Me.MasterlblRegion.Text = custom.Region
    C. Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file.Dim lblRegion As Label = Page.FindControl("lblRegion")lblRegion.Text = Me.Region
    D. Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file. Dim lblRegion As Label = Master.FindControl("lblRegion") lblRegion.Text = Me.Region

  • Question 60:

    You are developing an ASP.NET Web page. You add a data-bound GridView control. The GridView contains a TemplateField that includes a DropDownList. You set the GridViews ClientIDMode property to Static, and you set the ClientIDRowSuffix property to ProductID. You need to be able to reference individual DropDownList controls from client-side script by using the ProductID. What should you set the ClientIDMode property of the DropDownList to?

    A. AutoID
    B. Static
    C. Inherit
    D. Predictable

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.