70-528 NET Framework 2.0-Web-based Client Development
Note 1: 70-528 Exhibit and all related diagrams are not shown in demo questions.
Note 2: 70-528 Answers are not shown in demo questions.
Exhibits and Answers are only provided in the Full Version.
Note 2: 70-528 Answers are not shown in demo questions.
Exhibits and Answers are only provided in the Full Version.
Demo Question 5.
You work as a Microsoft ASP.NET developer at EliteCertify.com. EliteCertify.com uses the Microsoft Visual Studio .NET 2005 as their application development platform. You use a Microsoft Windows XP Professional client computer named EliteCertify -WS528 as your development computer. Internet Information Services (IIS) is installed on EliteCertify -WS528. You are developing a custom control named ProductsGrid that will be used in the redevelopment of EliteCertify.com's e-Commerce Web applications. The ProductsGrid control contains a TextBox control and a DropDownList control that allows for the editing of product descriptions. The code for the ProductsGrid control is shown in the following exhibit. <ParseChildren(True)> Public Class ProductsGrid Inherits Control Implements INamingContainer Private _desc As Desc Private _descTemplate As ITemplate Public Property Desc() As Desc Get Return _desc End Get Set(ByVal value As Desc) _desc = value End Set End Property <TemplateContainer(GetType(DescTemplateContainer))> _ Public Property DescTemplate() As ITemplate Get Return _descTemplate End Get Set(ByVal value As ITemplate) _descTemplate = value End Set End Property Protected Overrides Sub CreateChildControls() 'ToDO End Sub End Class Public Class DescTemplateContainer Inherits Control Implements INamingContainer Private _desc As Desc Public Sub New(ByVal desc As Desc) _desc = desc End Sub Public Property Desc() As Desc Get Return _desc End Get Set(ByVal value As Desc) _desc = value End Set End Property End Class You need to ensure that the content specified in the DescTemplate() property is rendered by the ProductsGrid control. You need to override the CreateChildControls method to accomplish this. What code segment should you use?
A. If (Me.DescTemplate Is Nothing) Then Me.Controls.Clear() Dim templateContainer As DescTemplateConainer = New DescTemplateContainer(_desc) Me.Controls.Add(templateContainer) End If
B. If (Me.DescTemplate Is Nothing) Then Me.Controls.Clear() Dim templateContainer As DescTemplateConainer = New DescTemplateContainer(_desc) Me.DescTemplate.InstantiateIn(templateConainer) Me.Controls.Add(templateContainer) End If
C. If (Not Me.DescTemplate Is Nothing) Then Me.Controls.Clear() Dim templateContainer As DescTemplateConainer = New DescTemplateContainer(_desc) Me.Controls.Add(templateContainer) End If
D. If (Not Me.DescTemplate Is Nothing) Then Me.Controls.Clear() Dim templateContainer As DescTemplateConainer = New DescTemplateContainer(_desc) Me.DescTemplate.InstantiateIn(templateConainer) Me.Controls.Add(templateContainer) End If
Display Answer
Purchase Full Version:
70-528 Printable PDF Prep Guide $49.95 BUY NOW!
70-528 Test Simulation Engine $69.95 BUY NOW!
70-528 PDF & Test Simulation Engine $99.95 BUY NOW!
Answer: D
Explanation: You must first determine that the DescTemplate property has
returned content and then render the content. You can accomplish this by creating
an instance of DescTemplateContainer that holds the content and then add the
container to the ProductsGrid control for rendering.
Incorrect
- Based on the latest 70-528 exam objectives!
- Designed like actual 70-528 exam questions!
- 100% Verified Realistic 70-528 Exam Questions and Answers!
- Exhibits, Drag&Drop and Simulation 70-528 Questions Included!
- Constantly Updated Guide to Reflect the Current 70-528 Exams!
- Detailed Explanations for Most Guide Practice Exams!

NY, USA
I wanted to take a few minutes to thank EliteCertify for passing 3 exams towards my MCSE. ...

Demark
Took my last CCNP test last Friday. EliteCertify tests really made the difference, I passed every one on the first ...

Australia
Great thanks to EliteCertify for such excellent products! It really helped me a lot for passing 3Com 3M0-212. The practice ...








