What should you do?

You need to convert a user control named Control.ascx to a SharePoint Web Part. The Web Part must be packaged as a user solution.

What should you do?

You need to convert a user control named Control.ascx to a SharePoint Web Part. The Web Part must be packaged as a user solution.

What should you do?

A.
Modify the SafeControls section of the web.config file.

B.
Copy the Control.ascx file to the ControlTemplates folder.

C.
Create a new Visual Web Part and use the existing MyControl.ascx file.

D.
Create a new Web Part and reuse the code from the MyControl.ascx file.

Explanation:
MNEMONIC RULE: “Create a new Web Part”

Since you already have a user control, you don’t need to create a Visual Web Part (by dragging-and-dropping user controls from the Toolbox).



Leave a Reply 0

Your email address will not be published. Required fields are marked *