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; set; }
}
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?
A.
Implement Interface1 in the Products Web Part.
B.
Implement Interface1 in the ProductDetails Web Part.
C.
Add a private set-accessor-declaration to the Productid property.
D.
Add a protected set-accessor-declaration to the Productid property.
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
http://msdn.microsoft.com/en-us/library/ms469765.aspxSharePoint 2010 Provider Consumer Web Parts
http://johanolivier.blogspot.com/2010/08/sharepoint-2010-provider-consumer-web.html
This is the same question as 69