MCAD .NET Developing and Implementing Web Applications with Microsoft Visual C# .NET : 70-315 Exam
Exam Number/Code: 70-315
Exam Name:MCAD .NET Developing and Implementing Web Applications with Microsoft Visual C# .NET
“MCAD .NET Developing and Implementing Web Applications with Microsoft Visual C# .NET”, also known as 70-315 exam, is a Microsoft certification. With the complete collection of questions and answers Q&as with Expert Explanations, Pass4sure has assembled to take you through 128 questions to your 70-315 Exam preparation. In the 70-315 exam resources, you will cover every field and category in MCAD.NET helping to ready you for your successful Microsoft Certification.
QUESTION 1:
You create an ASP.NET application for PassGuide ’s intranet. All employee on the intranet use Internet
Explorer.
A page named UserAccount.aspx contains several controls that require postback to the server for event processing. The event handlers for these controls require access to a database in order to complete their processing.
Each time UserAccount.aspx performs a postback, there is a brief period of time in which the browser window is blank while the page is refreshed. The control that had the focus prior to the postback does not have the focus after the page is re-rendered. This factor results in confusion and invalid data entry by
some of the users.
You need to modify UserAccount.aspx to prevent the browser window from going blank after a postback and to maintain the correct control focus after events are processed. You need to accomplish this task
with the minimum amount of development effort. What should you do?
A. Add the following attribute to the HTML code for the controls that cause the postbacks: RunAt=”client”
B. Add the following attribute to the HTML code for the controls that cause the postbacks: EnableViewState=”True”
C. Add the following attribute to the Page directive for UserAccount.aspx: SmartNavigation=”True”
D. Add the following attribute to the OutputCache directive for UserAccount.aspx: Location=”client”
Answer: C
Explanation: When a page is requested by an Internet Explorer 5 browser, or later, smart navigation enhances the user’s experience of the page by performing the following:
• eliminating the flash caused by navigation.
• persisting the scroll position when moving from page to page.
• persisting element focus between navigations.
• retaining only the last page state in the browser’s history.
Smart navigation is best used with ASP.NET pages that require frequent postbacks but with visual content that does not change dramatically on return.
Reference: .NET Framework Class Library, Page.SmartNavigation Property [C#]
QUESTION 2:
You are a Web developer for a PassGuide bookstore. You create a Web user control named CKBookTopics that is defined in a file named CKBookTopics.ascx. CKBookTopics displays a list of book topics based on
an author’s profile identification number. The profile identification number is stored in a public property
of CKBookTopics named AuthorProfile.
You create an ASP.NET page named AuthorPage.aspx that contains an instance of the CKBookTopics
Web user control. AuthorPage.aspx is opened by an HTTP-GET request that has two parameters. The
parameters are named publisherID and authorProfileID. The value of authorProfileID is a profile
identification number.
You want to enable output caching for the CKBookTopics Web user control. You need to ensure that the cached control is varied only by an author’s profile identification number.
What should you do?
A. Add the following element to the OutputCache directive for AuthorPage.aspx: VaryByParam=”CKBookTopics.AuthorProfile”
B. Add the following element to the OutputCache directive for AuthorPage.aspx: VaryByControl=”CKBookTopics.AuthorProfile”
C. Add the following element to the OutputCache directive for CKBookTopics.ascx: VaryByParam=”none”
D. Add the following element to the OutputCache directive for CKBookTopics.ascx: VaryByControl=”authorProfileID”
Answer: D
Explanation: You can vary user control output to the cache in two ways:
1. With the user control name and the parameter. The VaryByParam attribute of the @ OutputCache directive must be used. A) and C) are inadequate since both the control name and the parameter must be specified.
2. With the VaryByControl attribute just the parameter should be supplied. This is the case in D), but not in
B).
Reference: .NET Framework Developer’s Guide, Caching Multiple Versions of a User Control, Based on
Parameters [C#]
QUESTION 3:
You are maintaining an ASP.NET application named PassGuide SalesForecast. The application is written
in Visual C# .NET. The application includes a page named FirstQuarter.aspx that resides within the
Sales namespace. The page class is named FirstQuarter.
You discover that another developer inadvertently deleted the Page directive for FirstQuarter.aspx. You want to create a new Page directive to allow FirstQuarter.aspx to work properly.
Which directive should you use?
A. <%@ Page Language="c#" Codebehind="FirstQuarter.aspx.cs" Inherits="FirstQuarter"%>
B. <%@ Page Language="c#" Codebehind="FirstQuarter.aspx.cs" ClassName="Sales.FirstQuarter"%> C. <%@ Page Language="c#" Codebehind="FirstQuarter.aspx.cs"> Inherits=”Sales.FirstQuarter”%>
D. <%@ Page Language="c#" Codebehind="FirstQuarter.aspx.cs"
ClassName="Sales.FirstQuarter"
Inherits="FirstQuarter"%> Answer: C
Explanation: The Inherits attribute in the @ Page directive defines a code-behind class for the page to inherit.
As FirstQuarter.aspx resides within the Sales namespace we should use
Inherits=”Sales.FirstQuarter
Note: The @ Page directive defines page-specific (.aspx file) attributes used by the ASP.NET page parser and compiler.
Reference: .NET Framework General Reference, @ Page
Incorrect Answers
A: As FirstQuarter.aspx resides within the Sales namespace we should use
Inherits=”Sales.FirstQuarter
B, D: The ClassName attribute specifies the class name for the page that will be automatically compiled dynamically when the page is requested. We should not use ClassName here.
QUESTION 4:
You are creating and ASP.NET application for the mortgage services department of PassGuide Inc. The application will be used for generating documents required during the closing process of a home
purchase.
PassGuide already has a component written in Visual C# .NET that identifies which forms are required to
be printed based on a set of criteria specified by the closing agent. The name of the component namespace is PassGuide .Mortgage. The name of the class is Closing.
You create an ASP.NET page named Purchase.aspx. You add a reference to the assembly that contains
the PassGuide .Mortgage namespace. The code behind file for Purchase.aspx includes the following code:
using PassGuide .Mortgage;
You add a method to the code-behind file to instantiate the Closing class.
Which code segment should you include in the method to instantiate the class?
A. Closing CKClosing = new Closing(); B. Closing CKClosing =
Server.CreateObject(” PassGuide .Mortgage.Closing”); C. object CKClosing =
Server.CreateObject(“closing”); D. Type CKType =
Type.GetTypeFromProgID(” PassGuide .Mortgage.Closing”,
“localhost”, true); Answer: A
Explanation: We simply instantiate an object with the class with the New constructor.
Note: Web Forms pages have code-behind files associated with them. These files are created automatically
when you create a new Web form. They have the same base name as the Web form with the .vb or .cs filename extension added
pass4sure 70-315
Questions and Answers : 128 questions
Expected Date: October 20th , 2008
Price: $129.99 $89.99
Free Down: Pass4sure Microsoft 70-315
Free Down: PassGuide microsoft 70-315
Download Latest Passforsure P4S Rapidshare links
- Free pass4sure microsoft MB2-228 2.93 Download
- Free Pass4sure Microsoft 70-529 2.93 Download
- Free Pass4sure Microsoft MCAD 70-234 2.93 Download
- Free pass4sure Microsoft 70-330 2.93 Download
- Free Pass4sure Microsoft MCSD 70-554(VB) 2. 73 Download
- Free Pass4sure Microsoft MCAS 77-600 2.93 Download
- Free pass4sure microsoft MB2-422 2.93 Download
- Free Pass4sure Microsoft MCAD 70-306 2.73 Download
- Free Pass4sure Microsoft MCSD 70-316 2.93 Download
- Free Pass4sure Microsoft MCSD 70-310 2.95 Download
- Free pass4sure Microsoft 70-528 2.93 Download
- Free Pass4sure Microsoft TS 70-541(VB) 2. 95 Download
- Free Pass4sure Microsoft MCAD 70-551(VB) 2. 95 Download
- Free pass4sure Microsoft MCSD 70-320 2.93 Download
- Free Pass4sure Microsoft MCSD 70-305 2.93 Download


[...] http://www.pass4sure.cc/download/braindumps/freePassGuide-microsoft-70-315-exam-simulator-dumps-2/ [...]
[...] Pass4sure 70-315 * MCAD .NET Developing and Implementing Web Applications with Microsoft Visual C# .NET [...]
[...] Pass4sure 70-315 * MCDBA Developing and Implementing Web Applications with Microsoft Visual C# .NET [...]
[...] Pass4sure 70-315 * MCDBA Developing and Implementing Web Applications with Microsoft Visual C# .NET [...]
[...] Pass4sure 70-315 * MCDBA Developing and Implementing Web Applications with Microsoft Visual C# .NET [...]
[...] Pass4sure 70-315 * MCDBA Developing and Implementing Web Applications with Microsoft Visual C# .NET [...]
[...] Pass4sure 70-315 * MCDBA Developing and Implementing Web Applications with Microsoft Visual C# .NET [...]
[...] Pass4sure 70-315 * MCDBA Developing and Implementing Web Applications with Microsoft Visual C# .NET [...]
[...] Pass4sure 70-315 * MCDBA Developing and Implementing Web Applications with Microsoft Visual C# .NET [...]
[...] Pass4sure 70-315 * MCAD .NET Developing and Implementing Web Applications with Microsoft Visual C# .NET [...]
[...] Pass4sure 70-315 * MCAD .NET Developing and Implementing Web Applications with Microsoft Visual C# .NET [...]
[...] pass4sure 70-315 PassGuide 70-315 actualtest 70-315 Pass4sure Share and Enjoy: [...]