Which class defines the contract that ASP.NET implements to provide membership services using custom membership providers?
A. FormsAuthenticationA 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
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.You create an ASP.NET MVC 2 Web application that contains the following controller class.
public class ProductController : Controller
{
static 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.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.Which class is used to specify a set of features to support on the XrnlReader object created by the Create method?
A. XmlReaderSettingsYou 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.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. RowEnteredYou 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.RegionYou 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. AutoIDNowadays, 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.