nerdexam
Microsoft

70-573 · Question #22

You plan to create two Web Parts named Products and ProductDetails. You create an interface that contains the following code segment. Public interface Interface1 { String ProductId { get; } } You…

The correct answer is A. Implement Interface1 in the Products Web Part. MNEMONIC RULE: "Implement Interface1 in Products Web" Products Web Part sends ProductId; therefore, Products Web Part is the provider Web Part. Walkthrough: Creating Connectable Web Parts in SharePoint Foundation SharePoint 2010 Provider Consumer Web Parts

Developing for Client Applications

Question

You plan to create two Web Parts named Products and ProductDetails. You create an interface that contains the following code segment. Public interface Interface1 { String ProductId { get; } } You need to ensure that the Products Web Part sends Productid to the ProductDetails Web Part. You must achieve this goal by using the ASP.NET Web Part connection framework. What should you do?

Options

  • AImplement Interface1 in the Products Web Part.
  • BImplement Interface1 in the ProductDetails Web Part.
  • CAdd a private set-accessor-declaration to the Productid property.
  • DAdd a protected set-accessor-declaration to the Productid property.

How the community answered

(24 responses)
  • A
    75% (18)
  • B
    4% (1)
  • C
    17% (4)
  • D
    4% (1)

Explanation

MNEMONIC RULE: "Implement Interface1 in Products Web" Products Web Part sends ProductId; therefore, Products Web Part is the provider Web Part. Walkthrough: Creating Connectable Web Parts in SharePoint Foundation SharePoint 2010 Provider Consumer Web Parts

Topics

#Web Part connections#provider interface#ASP.NET Web Parts#interface implementation

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice