Posts

Showing posts from November, 2012

Visual Webpart for SandBox Solution in SharePoint 2010

Image
Quick Tip

Can you use Visual Webpart for a sandbox solution in SharePoint 2010?

The answer is NO; you cannot since this is basically .ascx controls which needs to be stored in the "controlTemplate" folder and hence it should be a "Farm Solution".

Not to worry much..... MSDN has an answers to this, YES you can have Visual Webpart in a sandbox solution, all you need to do is to install the Visual Studio 2010 Power Tools and you will get a Visual Webpart for Sandbox Solution.

Here is the Link : http://visualstudiogallery.msdn.microsoft.com/8e602a8c-6714-4549-9e95-f3700344b0d9/



There are certain limitations however you still can use it.... Happy developing !

Known Limitations


There are a few known limitations when using a sandboxed visual web part. These include:
•JavaScript debugging is not supported in Visual Studio, although client JavaScript debugging does work

•Debugging of inline ASP.NET code must be done in the generated code file rather the markup file

•Use of “<@ …