Hot answers tagged web-part
1
You'll want to create a new page layout for that purpose. Henry Hong has a good walk through here. It's pretty detailed so I can't really spell it out here.
The benefit of this is it allows you to define a view for when users are adding/editing content and a view for the display by utilizing the PublishingWebControls:EditModePanel and setting the ...
1
You can't deploy farm solutions on spo period.
However you can work around every issue there is with sandbox with using csom and apps.
Take a look here.
http://hughajwood.wordpress.com/2012/12/10/sandbox-solutions-a-necessary-evil/
If it goes down I will update this link.
1
Pass your webpart class as property to ascx codebehind class
public partial class YOUR_ASCX_CLASS: UserControl
{
public YOUR_WEBPART_CLASS Webpart { get; set; }
}
then you can call webpart class method in your ascx codebehind
Webpart.testMtd()
If testMd() method is just for processing data you can put it on another class (some Utility class) ...
1
You're prevented from writing to the web front end or accessing external data from web services or line of business systems such as SQL Server.
Reference:
http://sharepointpromag.com/sharepoint-2010/sharepoint-2010s-sandboxed-solutions-02-nov-2009
1
As far as I can see, the
<div id="ctl00_PlaceHolderMain_g_5b7d2737_0733_441e_bbd5_08672344c6a6">
is rendered by the SharePoint WebPart and AFAIK cannot be suppressed. However, you can tweak the repeater to include a surrounding DIV with a CSS classname of your choice like this:
<asp:Repeater id="pwpRepeater" runat="server">
...
Only top voted, non community-wiki answers of a minimum length are eligible
