You need to convert the user control to a Web Part that will be hosted in a Microsoft SharePoint Server 2010 farm

You are running a default installation of Microsoft Visual Studio 2010. You have a user control
named Control.ascx. You need to convert the user control to a Web Part that will be hosted in a
Microsoft SharePoint Server 2010 farm. The Web Part must be packaged as a sandboxed
solution. What should you do?

You are running a default installation of Microsoft Visual Studio 2010. You have a user control
named Control.ascx. You need to convert the user control to a Web Part that will be hosted in a
Microsoft SharePoint Server 2010 farm. The Web Part must be packaged as a sandboxed
solution. What should you do?

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

B.
Import the user control into a new Visual Web Part and use the existing MyControl.ascx file.

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

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



Leave a Reply 0

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