Posts

Showing posts from June, 2014

Content Type HUB in SharePoint 2013

http://sharepoint-community.net/profiles/blogs/understanding-content-type-hub-cth-in-sharepoint-2013

What is new in SharePoint server 2013

http://office.microsoft.com/en-us/support/whats-new-in-microsoft-sharepoint-server-2013-HA102785546.aspx 

Announcement WebPart using XSLT

Image
Create a List view webpart using SharePoint Designer 2010/2013 <WebPartPages:DataFormWebPart runat="server" IsIncluded="True" AsyncRefresh="True" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="8" Title="DataView 1" PageType="PAGE_NORMALVIEW" __markuptype="vsattributemarkup" __WebPartId="{00DF9528-345E-433F-BC9E-B0D830B0410B}" id="g_00df9528_345e_433f_bc9e_b0d830b0410b"> <DataSources> <SharePoint:SPDataSource runat="server" DataSourceMode="List" UseInternalName="true" UseServerDataFormat="true" selectcommand="&lt;View&gt;&lt;/View&gt;" id="spdatasource1"><SelectParameters><asp:Parameter Name="ListID" DefaultValue="5F17A09F-FF25-4357-892F-14ABF651B788"/> </SelectParameters><DeleteParameters><asp:Parameter Name="ListID"

XSLT - Overview

Style Sheet Declaration The root element that declares the document to be an XSL style sheet is  <xsl:stylesheet> or <xsl:transform>. Note:  <xsl:stylesheet> and <xsl:transform> are completely synonymous and either can be used! XSL style sheet Declare <xsl:stylesheet version="1.0"  xmlns:xsl=" http://www.w3.org/2001/XMLSchema "> Or <xsl:transform version="1.0"  xmlns:xsl=" http://www.w3.org/2001/XMLSchema "> XML File <?xml version="1.0" encoding="UTF-8"?> <Employees>   <Details>     <Name>Kannan</Name>     <DOB>5th June 1989</DOB>     <Nationality>INDIA</ Nationality >       </ Details > . . </ Employees > </xml> Create an XSL Style Sheet <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/2001/XMLSchema"> <xsl:template match="/"&

Getting a User Or AllUsers from Active Directory using C#

public PrincipalContext GetPrincipalContext()         {            PrincipalContext oPrincipalContext = new PrincipalContext(ContextType.Domain,"Your Domain Name");             return oPrincipalContext;         } To get the single user public UserPrincipal GetUser(string userName)          {              PrincipalContext oPrincipalContext = GetPrincipalContext();              UserPrincipal oUserPrincipal =                 UserPrincipal.FindByIdentity(oPrincipalContext,  userName );              return oUserPrincipal;          } To get All Users       public List<string> GetAllUsers()         {             try             {                 List<string> users = new List<string>();                PrincipalContext oPrincipal = GetPrincipalContext();                 GroupPrincipal gPrincipal = GroupPrincipal.FindByIdentity(oPrincipal, IdentityType.SamAccountName, "Domain Users");                if (gPrincipal != null)          

Create a List from a List Template using ECMA Script

Image
< input   id ="btnCreateCustomList"   onclick ="CreateCustomList()"   type ="button"   value ="Create List"/>          < script   language ="ecmascript"   type ="text/ecmascript">             var  clientContext =  null ;              var  oWeb =  null ;              var  oListColl =  null ;              var  oList =  null ;              var  listCreationInfo =  null ;              function  CreateCustomList() {                 clientContext =  new  SP.ClientContext.get_current();                 oWeb = clientContext.get_web();                 listCreationInfo =  new  SP.ListCreationInformation();                 listCreationInfo.set_title( 'Test Custom List' );                 listCreationInfo.set_templateType(SP.ListTemplateType.genericList);                 oList = oWeb.get_lists().add(listCreationInfo);                 clientContext.load(oList);                 clientContext.executeQu