RSS

Having issues with adding SharePoint 2010 WebControls to your custom web part

01 Feb

Issue:
You try to add SharePoint WebControl to your custom web part. You don’t seem to see the web part under the Microsoft.SharePoint.WebControls Namespace.
The issue is that the WebControls do not work on Sandbox Solutions.

Resolution:
Follow these steps the change your existing project to turn the project off as Sandbox solution –
1. Click on the project and check the properties window or press F4.
2. On Properties you will change the value of Sandboxed Solution property to False.

Once the above changes are done now you can use the SharePoint Web Controls on your web part.

Happy Coding….

Advertisements
 
Leave a comment

Posted by on February 1, 2012 in Uncategorized

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

 
%d bloggers like this: