Asp.Net
(TS: Web Applications Development with Microsoft .NET Framework 4)
Document version: 9.30.06
70-515 Exam Questions
Important Note About 70-515 PDF
techeXams’ 70-515 PDF is a comprehensive compilation of questions and answers that have been
developed by our team of certified professionals. In order to prepare for the actual exam, all you
need is to study the content of thisexam questions. An average of approximately 10 to 15 hours
should be spent to study these exam questions and you will surely pass your exam. It’s our
guarantee.
Copyright
techeXams holds the copyright of this material. techeXams grants you a limited license to view and
study this material, either for personal or commercial use. Unauthorized reproduction or distribution
of this material, orany portion thereof, may result in severe civil and criminal penalties, and will be
prosecuted to the maximum extent possible under law.
Disclaimer
Neither this guide nor any material in this guide is sponsored, endorsed or affiliated with any of the
respective vendor. All trademarks are properties of their respective owners.
1
© Copyright www.techeXams.ws 2011
70-515 PracticeExams, 70-515 Audio Trainings, 70-515 Study Guides
70-515 Exam Questions
Question: 1
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 pages 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. Dimcustom As Custom = Me.Parent lblRegion.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.Master lblRegion.Text = custom.Region
C. Add the following code segment to the Page_Load method of the Custom.Master.vb codebehind file. Dim lblRegion As Label = Page.FindControl("lblRegion") lblRegion.Text = Me.Region
D. Addthe following code segment to the Page_Load method of the Custom.Master.vb codebehind file. Dim lblRegion As Label = Master.FindControl("lblRegion") lblRegion.Text =
Me.Region
Answer: B
Question: 2
You have created an ASP.NET server control named ShoppingCart for use by other
developers. Some developers report that the ShoppingCart control does not function
properly with ViewStatedisabled. You want to ensure that all instances of the
ShoppingCart control work even if ViewState is disabled. What should you do?
A. Require developers to set EnableViewStateMac to true.
B. Store state in ControlState instead of ViewState.
C. Serialize the state into an Application state entry called "MyControl".
D. Require developers to change the session state mode to SQLServer.
2
© Copyrightwww.techeXams.ws 2011
70-515 Practice Exams, 70-515 Audio Trainings, 70-515 Study Guides
70-515 Exam Questions
Answer: B
Question: 3
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 ensurethat the
Label control named lblCompany displays text in the users selected language from the
global resource file. Which control markup should you use?
A.
B.
C.
D.
Answer: D
Question: 4
You are developing an ASP.NET Web page that contains input controls, validation
controls, and a button named btnSubmit.
The page has the following code-behind. (Line numbers are included for...
Regístrate para leer el documento completo.