How do I show a Newsfeed webpart in one of the tab in a Custom Tabbed Sandbox Visual Webpart?

I've an html UI using JQuery UI tab. Some of the tabs contain static html, I want to add a new tab say "Newsfeed", and this tab show the OOTB Newsfeed WebPart? I'm deploying this HTML/CSS/JS using sandbox Visual Web Part, so all the markeup is in the .ascx file. I tried to export the OOTB Sitefeed markup and put it in a WebPartZone container and inserted in the tabs html markup as below, does not work -

<div class="container-fluid">
              <div class="row">
               <div class="col-md-12">
                 <div class="form-group">                 
        <WebPartPages:WebPartZone runat="server" Title="Newsfeed Comments" ID="NewsfeedComments" FrameType="TitleBarOnly">
                    <?xml version="1.0" encoding="utf-8"?>
  <WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns="http://schemas.microsoft.com/WebPart/v2">
                                  <Title>Site Feed</Title>
                                  <Description>Site Feed contains microblogging conversations on a group site.</Description>
                                  <Height />
                                  <Width />
                                  <DetailLink />
                                  <HelpLink />
                                  <PartImageSmall />
                                  <MissingAssembly>Cannot import this Web Part.</MissingAssembly>
                                  <IsIncludedFilter />
                                  <Assembly>Microsoft.SharePoint.Portal, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.