Monthly Archives: January 2015

SharePoint 2013 Hosting – ASPHostPortal.com :: Sharepoint Designer Workflow Email Link to List

The majority of the workflow finish users requirement is, there ought to be a hyperlink to review the workflow item in their email.

ahp banner sharepoint-01
I am just sharing a speedy tip to send an e mail to a sharepoint Item by adding hyperlink to the message physique

  1. Add a “Send an Email” action to your workflow. Edit the action to pull up the e-mail configuration dialog.
  2. Select the text and click the “Add hyperlink” button noticed below.1ehlrehb;rWhen prompted for the address of the link click the string builder button to add the URL
    2lkdvlbl;brj
  3. In SharePoint, go to the kind library exactly where your InfoPath types are stored, and click an existing InfoPath type to open it in the browser.
  4. Copy the URL with the InfoPath kind. The URL could resemble the following:
    http://ServerName/SiteName/_layouts/FormServer.aspx?XmlLocation=/SiteName/LibraryName/Form1.xml&Source=http%3A%2F%2FServerName%2FSiteName%2FLibraryName%2FForms%2FAllItems%2Easpx&DefaultItemOpen=1

    where ServerName could be the name of your SharePoint server, SiteName is the name of the SharePoint web site, LibraryName may be the name with the SharePoint kind library, and Form1.xml is definitely the name of an InfoPath kind Copy the URL and paste inside the string builder window .Get rid of the shaded portion just after

    http://ServerName/SiteName/_layouts/FormServer.aspx?XmlLocation=

    3lkehflreInstead of that add a lookup [%Current Item:Encoded absolute URL%]  as shown below

    4fbrtnrtn

  5. click OK and publish workflow

Now anytime you develop a new InfoPath type and save it to the form library, the SharePoint Designer workflow is began, and an e-mail is sent to the recipients you specified for the e-mail in the SharePoint workflow. When a user opens the email and clicks on the hyperlink inside the e-mail, the InfoPath kind opens within the browser.

Best SharePoint 2013 Hosting

ASPHostPortal.com
ASPHostPortal.com  is Perfect, suitable hosting plan for a starter in SharePoint. ASPHostPortal  the leading provider of Windows hosting and affordable SharePoint Hosting. ASPHostPortal proudly working to help grow the backbone of the Internet, the millions of individuals, families, micro-businesses, small business, and fledgling online businesses. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability.

SharePoint 2013 Hosting :: How to integrate Microsoft Dynamics CRM 2015 as an External Content Type in SharePoint 2013

Open your SharePoint site in SharePoint Designer. Click on External Data Type. You will get the following message if the Business Data Connectivity (BDC) Service is not started on the SharePoint Farm.

SharePoint

Create a BDC Service, start it and again open the site in SharePoint designer.

BDC Service

Click on External Content Type (ECT) and choose to create a new ECT.

External Content Type

Provide a Name, Display Name, select the Item Type as Generic List and click on External System.

Item Type

You need to create a Data Connection. Click on Add Connection and choose SQL Server from the Data Source Type Selection drop down.

drop down

You will be asked the SQL Server name and authentication information.

connect with user

Specify these and click OK. I am choosing Connect with User’s identity, but an ideal way is to create a Secure Store Application ID in SharePoint and use it for this connection. If all goes well, you should be able to connect to CRM Tables, Views and Routines.
Views and Routines

The ideal way is to use Views for the read operation since we don’t want to directly use data from the tables. For this demo purpose I am choosing a view related to Contacts. Here is a reason why FilteredViews should be used.

FilteredViews

Follow the procedure to create this operation. First provide a name.

First give a name

Add Filter.

Add Filter

Choose the Columns.

Chose Columns

You can get an error as in the following if the threshold limit is exceeded.

exceeds

So select only columns that are really required.

really require

Click on Finish.

Similarly create a Read Item Operation.

Item Operation

Our ECT to CRM data is ready. Now we can test in designer if we can create a External List.
Click on “Create Lists and Forms” and enter the details.

Create Lists and Forms

Click OK. If all goes well, you will see the List created under Lists and Libraries.

Lists and Libraries

You will see the same in your SharePoint Site -> Site Contents.

Site Contents

Best Recommended SharePoint 2013 Hosting

ASPHostPortal.com

ASPHostPortal.com is Perfect, suitable hosting plan for a starter in SharePoint. ASPHostPortal  the leading provider of Windows hosting and affordable SharePoint Hosting. ASPHostPortal proudly working to help grow the backbone of the Internet, the millions of individuals, families, micro-businesses, small business, and fledgling online businesses. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability.

SharePoint 2013 Hosting :: Place SharePoint Social Features to Function Within Your Organization Today

Social media has permeated each aspect of our lives and every single facet of the World wide web. In some ways, it has become synonymous with the internet. While some sites are completely dedicated to social media, nearly all web sites have some social media content material. Firms as well as other organizations usually are not immune to this. Really, numerous businesses have improved their achievement by wholeheartedly adopting social media and making use of it to connect with their clients. Microsoft SharePoint might help you use social media to make your organization greater both internally and externally.

ahp banner sharepoint-01Newsfeed

Internal communication and collaboration has in no way been less difficult now that SharePoint contains Newsfeed. It operates within a extremely comparable manner to Facebook and Twitter. Group members can “follow” each other and view one particular another’s documents, websites, tags, and so on. They’re able to “mention” one another, view existing “activities”, and also “like” every single other’s content material.

Like Twitter, SharePoint consists of a microblogging function. You can post updates about your function, post on a team site, refer other folks to posts utilizing an @mention, reference relevant tags inside your post, share conversations by means of links, “like” any post, and add images, videos, links, and external URLs proper into your posts.

Newsfeed App

If you need to remain connected around the move, the Newsfeed App enables you to access and interact together with your newsfeed on your Windows Telephone, iPad, or iPhone.

Sharing Documents and Websites

Part of the new Workplace 365 is SkyDrive Pro, an enterprise-grade version of SkyDrive that you simply can use to shop your documents privately or share them together with your colleagues. You’ll be able to also share sites, send guest hyperlinks to people outdoors of one’s organization, and receive newsfeed updates whenever collaborative documents are updated.

User Profiles

Like earlier releases of SharePoint On the web, this new version contains user profiles. Some of the notable adjustments include: a streamlined navigation method enabling you to switch sections a lot more effortlessly, privacy/sharing alternatives for all fields, and newsfeed sharing and following settings set to “off” by default to boost privacy, requiring you to opt in to these attributes if you would like to make use of them.

Staying in Touch

As the workforce continues to turn into much more mobile, staying in touch is vital, as well as the days of forwarding around emails all day are more than. To maintain up together with the face-paced planet, you may need immediate content sharing and collaboration. SharePoint’s new social functions answer that require and a lot of other individuals.

Best SharePoint 2013 Hosting

ASPHostPortal.com
ASPHostPortal.com  is Perfect, suitable hosting plan for a starter in SharePoint. ASPHostPortal  the leading provider of Windows hosting and affordable SharePoint Hosting. ASPHostPortal proudly working to help grow the backbone of the Internet, the millions of individuals, families, micro-businesses, small business, and fledgling online businesses. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability.

ASPHostPortal.com Proudly Announces Classic ASP Hosting with Persits

Cheap and Reliable ASP.NET Hosting :: ASPHostPortal.com Proudly Announces Classic ASP Hosting with Persits

Providing low cost web hosting, ASPHostPortal.com has become one of The Best, Cheap and Recommended ASP.NET Hosting. We offer Classic ASP with Persits Hosting with a combination of affordable price, excellent network, and 30 days money back guarantees. We also provide full trust web hosting services for Classic ASP with Persits site.

Since 1997, Persits Software engineers have been building server-side components for the Microsoft Windows environment that are now used by tens of thousands of companies, universities and government agencies all over the World. Their dedication to quality has won them a worldwide reputation as the leader in the server component market.

The Active Server components they offer help Web developers harness browser-based file uploading, image resizing, PDF generation, Windows security, data encryption, secure messaging, database publishing, and SMTP email in just a few lines of code. Developed by the most powerful development tools on the market, their components are reliable, fast, and easy to use.

ASPHostPortal.com, a windows-based hosting service provider offers the most reliable and stable Classic ASP with Persits web hosting infrastructure on the net with great features, fast and secure servers. We have built the network like no other hosting company. Every facet of the network infrastructure scales to gigabit speeds with no single point of failure. All of windows hosting plan supports Classic ASP with Persits and customers can install it with just one click. We offer professional Classic ASP with Persits site start from $5/month. The following are the reasons why the customers choose and keep trust with our service:

High Performance and Reliable Server
We never ever overload the server with tons of clients. We always load balance the server to make sure we can deliver an excellent service, coupling with the high performance and reliable server.

Daily Backup Service
We realize that customer’s website is very important to their business and hence, we never ever forget to create a daily backup.

Best and Friendly Support
Our support team is extremely fast and can help you with setting up and using Classic ASP with Persits on your account. Ourcustomer support will help you 24 hours a day, 7 days a week and 365 days a year.

With the Classic ASP with Persits in our hosting deal will make us continue to be the Best ASP.NET hosting providers. To learn more about Classic ASP with Persits Hosting, please visit http://asphostportal.com/Persits-ASPGrid-Hosting

About ASPHostPortal.com :
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET Hosting. ASPHostPortal.com has ability to support the latest Microsoft and ASP.NET technology, such as: such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch. ASPHostPortal include shared hosting, reseller hosting, and sharepoint hosting, with speciality in ASP.NET, SQL Server, and architecting highly scalable solutions. ASPHostPortal.com strives to supply probably the most technologically advanced hosting solutions available to all consumers the world over. Protection, trustworthiness, and performance are on the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.

SharePoint 2013 Hosting :: How To Attach The Existing SharePoint Content Database To the Target Web Application in SharePoint 2013

In this blog you will see how to attach the existing SharePoint content database to the target web application in SharePoint 2013.

I was working on the migration from SharePoint 2010 to SharePoint 2013.

ahp banner sharepoint-01

I want to add the SharePoint 2010 content database to the target web application, when I tried to add the existing content database through Central Administration I was getting the following error.We can attach the existing SharePoint Content Database to the target web application using Mount-SPContentDatabase, this cmdlet upgrades automatically the content database if it detects that there is a mismatch with the version of the farm

Mount-SPContentDatabase “SharePointMigration_cf6b1e7d853843749114260cc64d4daa” -DatabaseServer “C4968397007″ -WebApplication http://C4968397007:20130

  •   SharePointMigration_cf6b1e7d853843749114260cc64d4daa” is the name of the database.
  •   C4968397007” is the name of the database server.
  •   http://c4968397007 is the public URL for the web application.

Note: Make sure you have required memberships to perform this activity.

No#1 Best Recommended SharePoint 2013 Hosting

ASPHostPortal.com

ASPHostPortal.com  is Perfect, suitable hosting plan for a starter in SharePoint. ASPHostPortal  the leading provider of Windows hosting and affordable SharePoint Hosting. ASPHostPortal proudly working to help grow the backbone of the Internet, the millions of individuals, families, micro-businesses, small business, and fledgling online businesses. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability.

SharePoint 2013 Hosting – ASPHostPortal.com :: Restoring the 2010 Navigate Up Crumb Trail Button

SharePoint 2010 removed those and gave us a really limited, library relative, crumb trail which has gaps if also long:

ahp banner sharepoint-01

1sdkvorjbAs a compromise, 2010 gave us a little button / dropdown called Navigate up to make up for the missing crumb trail:

2jkcwsbv2013

What Microsoft giveth, Microsoft takes away. No a lot more crumb trails in 2013! I consider 2013 users are supposed to only “Follow” or look for web sites. :-)

Actually… the Navigate up button continues to be there, but it is been hidden! It is just in between the internet site logo as well as the Prime Link Bar. All you should do is make two rapid alterations to your master web page, along with the crumb trail is back!

In the example beneath I am inside a subsite named Sales Instruction and I’ve drilled down into a library having a bunch of folders looking for the 2014 schedules. In two clicks I can swiftly jump up to a greater level folder, library or web site.

website together with the restored Navigate Up button:

3jkvdbruGet back the crumb trail!

The steps:

  1. Open your site in SharePoint Designer 2013.
  2. In the left panel click Master Pages.
  3. Click your master page (probably Seattle.Master for a typical Team Site).
  4. Click Edit File.
  5. Search for “breadcrumbdropdown”.4dfvnlb(If you don’t find it, you may be working with a customized or branded master page.)
    Make two edits…
  6. In the line above change display:none to display:inline
  7. Two lines down change Visible=”false” to Visible=”true”
  8. Save the master page, and if prompted, click Yes.
  9. Return to your site and refresh the page!

Best SharePoint 2013 Hosting

ASPHostPortal.com
ASPHostPortal.com  is Perfect, suitable hosting plan for a starter in SharePoint. ASPHostPortal  the leading provider of Windows hosting and affordable SharePoint Hosting. ASPHostPortal proudly working to help grow the backbone of the Internet, the millions of individuals, families, micro-businesses, small business, and fledgling online businesses. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability.

SharePoint 2013 Hosting :: How to Choose the Right Development Option in SharePoint 2013.

Development Option means the type of solution like Sandboxed Solution, Apps and so on. Depending upon the Quality Level of your organization, the selection of development option will be crucial.

ahp banner sharepoint-01

Development Options

The following are the development options we are using:

  1. OOTB Solution
  2. Third-party Solution
  3. Lite Customization
  4. Heavy Customization
  5. Sandboxed Solution
  6. SharePoint Hosted App
  7. Provider Hosted App
  8. Farm Solution

development option in sharepoint

Note
Auto Hosted Apps are not supported going forward, hence excluded it.

OOTB Solution

In this type of solution, we will be using out-of-the-box SharePoint features. For example, a department can raise a request for document management site. We can resolve it using a creation of the new site instance and configuration of a library.
Here, there are no deployment items involved.

Third-Party Solution

In this type of solution, we are purchasing ready-made software from outside. For example, a project management site template from XYZ Software. A Print Management App can be another example.
Here, a purchase cost is involved but faster requirement accomplishment is realized than other options. The deployment will be done by an Administrator or User.

Customizations

Customization involves lite or heavy customizations like:

  1. Site Collection / Site creation
  2. List / Library creation
  3. Content Type creation
  4. Metadata usage
  5. Page editing
  6. Script inclusion
  7. Quick Launch hiding
  8. Master Page change

Sandboxed Solution

A Sandboxed Solution is a deployable, reusable package containing features, site definitions and so on. It is useful if application level items need to be combined and packaged as a single WSP. Sandboxed Solutions can be restricted on resource usage using Quotas.

Deployment of a Sandboxed Solution can be user managed.

Note
Sandboxed Solutions are deprecated in SharePoint 2013 but Declarative Sandboxed Solutions are not. Declarative Sandboxed Solutions are those with declarative markups and JavaScripts.

SharePoint Hosted App

Apps provide Discoverability from the Corporate Catalog. In a SharePoint Hosted App the App is hosted within the SharePoint Farm.
The JavaScript Object Model will be used to render the App. Hence, the app is executed from the client side.

Provider Hosted App

In a Provider Hosted App the App is hosted in an external server. This enables protection of business logic without exposing to the client side and remote event receivers.
Since there are 2 web servers involved, we need to configure Trust Certificates among these servers.
C# will be used to render the App using the Client-Side Object Model (CSOM).

Farm Solution

Farm Solution provides Full Trust code and resides in the SharePoint Server. Custom solutions that require advanced object management, central administration component creation, custom site templates, coded workflows and so on can be deployed using a Farm Solution.

Server Object Model is used for development and hence the code is executed in the server. Security challenges and Server Risks arise.

Comparison Table

Let us summarize the comparison table here.

comparison table

No#1 Best Recommended SharePoint 2013 Hosting

ASPHostPortal.com

ASPHostPortal.com  is Perfect, suitable hosting plan for a starter in SharePoint. ASPHostPortal  the leading provider of Windows hosting and affordable SharePoint Hosting. ASPHostPortal proudly working to help grow the backbone of the Internet, the millions of individuals, families, micro-businesses, small business, and fledgling online businesses. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability.

SharePoint 2013 Hosting – ASPHostPortal.com :: Deploy SharePoint 2013 Show Template via Visual Studio

We create more and more display templates as soon as we utilize Content By Search Webpart or Search Result Webpart in SharePoint 2013. The recent project that I’ve done includes authoring (internal) site and publishing (external) site through Cross Site Publishing. Since the publishing site is customer facing / external site, we use display templates heavily and I think we have around 90 display templates.

ahp banner sharepoint-01In this article, I would like to show you how to deploy them through Visual Studio. Without further ado, I want to show you my very basic display template:

<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
    <title>My Custom Item Template</title>
 
    <!--[if gte mso 9]><xml>
    <mso:CustomDocumentProperties>
    <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
    <mso:ManagedPropertyMapping msdt:dt="string">'Link URL'{Link URL}:'Path','Line 1'{Line 1}:'Title', 'ListItemID':'ListItemID', 'owstaxIdCNPKeywords':'owstaxIdCNPKeywords'</mso:ManagedPropertyMapping>
    <mso:MasterPageDescription msdt:dt="string">This Item Display Template will show a small thumbnail icon next to a hyperlink of the item title, with an additional line that is available for a custom managed property.</mso:MasterPageDescription>
    <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
    <mso:TargetControlType msdt:dt="string">;#Content Web Parts;#</mso:TargetControlType>
    <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
    <mso:CrawlerXSLFile msdt:dt="string">/_catalogs/masterpage/MyDisplayTemplates/Server_MyItem.xsl, /_catalogs/masterpage/MyDisplayTemplates/Server_MyItem.xsl</mso:CrawlerXSLFile>
    </mso:CustomDocumentProperties>
    </xml><![endif]-->
</head>
 
<body>
    <div>
        <!--#_
                var title = $getItemValue(ctx, "Line 1");
                var itemURL = $getItemValue(ctx, "Link URL");
        _#-->
        <a class="mydiv" data-item="_#= $htmlEncode(itemURL) =#_">_#= $htmlEncode(title) =#_</a>
    </div>
</body>
</html>

As you noticed above, I’ve specified CrawlerXSLFile property. Basically this is required for Search Engine Optimization, to allow search crawler to crawl content inside your Content By Search Webpart/ Search Result Webpart. You could read great post from Waldek here. This is same thing like we did when we would like to customize Content Query Webpart in SharePoint 2010.

<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:ddwrt='http://schemas.microsoft.com/WebParts/v2/DataView/runtime'>
    <xsl:template match='/'>
        <xsl:apply-templates />
    </xsl:template>
 
    <xsl:template match='ResultTable'>
        <xsl:apply-templates select='Rows'/>
    </xsl:template>
 
    <xsl:template match='Rows'>
        <xsl:apply-templates select='Row' />
    </xsl:template>
 
    <xsl:template match='Row'>
        <xsl:for-each select='*'>
            <xsl:if test="name(.) = 'title'">
               <xsl:value-of select="." />
            </xsl:if>
        </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>

Now, it come to the deployment part in Visual Studio. Below is the list of steps:
1. Open Visual Studio and Create SharePoint Empty Project as Farm Solution
2. Add New Module, called it DisplayTemplates
3. Add your .html and .xsl display templates into DisplayTemplates Module
4. Edit Elements.xml in DisplayTemplates module

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="DisplayTemplates" Url="_catalogs/masterPage">
    <File Path="DisplayTemplates\MyItem.html" Url="MyDisplayTemplates/MyItem.html" ReplaceContent="True" Type="GhostableInLibrary" Level="Published"/>
    <File Path="DisplayTemplates\Server_MyItem.xsl" Url="MyDisplayTemplates/Server_MyItem.xsl" Type="GhostableInLibrary" Level="Published" ReplaceContent="TRUE"  />
  </Module>
</Elements>

5. Ensure Display Template Module included in your Feature

1fbnytm6. Add Feature Receiver

using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;
using Microsoft.SharePoint.Utilities;
using System;
using System.Runtime.InteropServices;
using System.Xml;
 
namespace DisplayTemplatesDemo.Features.Feature1 {
    /// <summary>
    /// This class handles events raised during feature activation, deactivation, installation, uninstallation, and upgrade.
    /// </summary>
    /// <remarks>
    /// The GUID attached to this class may be used during packaging and should not be modified.
    /// </remarks>
 
    [Guid("4d50c166-1095-4d7c-a4c1-61b35687cbf5")]
    public class Feature1EventReceiver : SPFeatureReceiver {
        /// <summary>
        /// Feature activated, we just change the item title of display template to force SharePoint generates the associated .js file
        /// </summary>
        /// <param name="properties"></param>
        public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            try {
                var site = (SPSite)properties.Feature.Parent;
                var web = site.RootWeb;
 
                //get all display templates
                string allDisplayTemplates = getAllDisplayTemplates(site.RootWeb, properties.Definition);
                //get the master pages gallery
                var gallery = web.GetCatalog(SPListTemplateType.MasterPageCatalog);
 
                foreach (var displayTemplate in allDisplayTemplates.Split(new char[] {','}))
                {
                    var url = SPUtility.ConcatUrls(gallery.RootFolder.Url, "CNPGallery/Display Templates");
                    url = SPUtility.ConcatUrls(url, displayTemplate);
                    //get the file
                    var fileOrFolder = web.GetFileOrFolderObject(url);
 
                    if (fileOrFolder != null && fileOrFolder is SPFile) {
                        var file = (SPFile)fileOrFolder;
                        if (file.Exists) {
                            //determine if the gallery requires files to be checked out before editing
                            //if so, check this one out
                            if (gallery.ForceCheckout)
                                file.CheckOut();
 
                            //make a simple change
                            file.Item["Title"] = (file.Item.Title != null ? file.Item.Title : displayTemplate);
                            file.Item.Update();
 
                            //if check out required, check it in
                            if (gallery.ForceCheckout)
                                file.CheckIn(string.Empty);
                            //if the gallery has minor versioning enabled, publish a major
                            if (gallery.EnableMinorVersions)
                                file.Publish(string.Empty);
                            //if the gallery required approval, approve it
                            if (gallery.EnableModeration)
                                file.Approve(string.Empty);
                        }
                    }
                }
            }
            catch (Exception ex) {
                //deactivate the feature
                var site = (SPSite)properties.Feature.Parent;
                site.Features.Remove(properties.Feature.DefinitionId);
 
                SPUtility.TransferToErrorPage(ex.Message);
            }
        }
 
        private string getAllDisplayTemplates(SPWeb web, SPFeatureDefinition definition)
        {
            string result = string.Empty;
            try
            {
                string wpcatalogUrl = SPUrlUtility.CombineUrl(web.Url, "_catalogs/masterpage");
 
                // Get the Feature.xml for the feature
                XmlDocument featureXml = new XmlDocument();
                featureXml.LoadXml(definition.GetXmlDefinition(web.Locale).OuterXml);
 
                XmlNamespaceManager nsMgr = new XmlNamespaceManager(featureXml.NameTable);
                nsMgr.AddNamespace("sp", "http://schemas.microsoft.com/sharepoint/");
 
                // Get Location attribute of each ElementManifest inside ElementManifests inside the Feature
                foreach (XmlNode locationNode in featureXml.SelectNodes("/sp:Feature/sp:ElementManifests/sp:[email protected]", nsMgr))
                {
                    if (result != string.Empty)
                        result += ",";
                    result += locationNode.Value.Replace("Templates\\", string.Empty);
                }
            }
            catch(Exception ex)
            {
                result = string.Empty;
            }
            return result;
        }
    }
}

7. Finally the solution look like below

2frbrtnty8. Build and Deploy the solution

Best SharePoint 2013 Hosting

ASPHostPortal.com  is Perfect, suitable hosting plan for a starter in SharePoint. ASPHostPortal  the leading provider of Windows hosting and affordable SharePoint Hosting. ASPHostPortal proudly working to help grow the backbone of the Internet, the millions of individuals, families, micro-businesses, small business, and fledgling online businesses. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability.

ASPHostPortal Announces a New 50% off Promo Code

ahp promocode-01

A new 50% off ASPHostPortal promo code is being offered for ASPHostPortal web hosting company services. With the fastest 1,000 Mbps connection backbone, ASPHostPortal has moved and expanded their services. Now They have 7 Data Centers which locate in USN, Netherlands, Singapore, Hong Kong, United Kingdom, Australia, and France.

The Windows web hosting plans consist of Host Intro, Host One, Host Two, and Three. Host One, two, and three plan offers unlimited sites. Each of the plans offers many different features which include Plesk Panel, Dedicated Application Pool, 30 Days Money Back Guarantee, Server & Database Back Up, and Windows 2008/Windows 2012. You can also get support full trust, single click website builder and much, much more. The Host intro plan is available for only $1 per month.

The Host Intro Plan is designed for you who have low budget and want to get best hosting service. This subtle advantage can be quite profound for online businesses, blogging, and portofolio web. In addition, there are a Cloud Hosting that available for only $2 more per month, SharePoint Hosting for $9.99 per month, and Reseller Hosting for $24 per month. Also, there are specially designed plans with add $1 or more per month, but are customized for the customer.

For those who are interested in taking advantage of ASPHostPortal coupon codes or want to know more about what ASPHostPortal web hosting is offering in terms of services, visit http://asphostportal.com/Windows-Hosting-Intro.

About ASPHostPortal.com :
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET Hosting. ASPHostPortal.com has ability to support the latest Microsoft and ASP.NET technology, such as: such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch. ASPHostPortal include shared hosting, reseller hosting, and sharepoint hosting, with speciality in ASP.NET, SQL Server, and architecting highly scalable solutions. ASPHostPortal.com strives to supply probably the most technologically advanced hosting solutions available to all consumers the world over. Protection, trustworthiness, and performance are on the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.

SharePoint 2013 Hosting :: How To Versioning Settings in SharePoint Office 365 and SharePoint 2013

ahp banner sharepoint-01This article will explains how to describes the Versioning Settings in SharePoint Office 365 and SharePoint 2013. Let’s see in this article what versioning offers to us as a user or developer. Versioning is very important for our document libraries. It not only helps in knowing the number of times an item has been modified but also helps when we actually loose data in our files.

Versioning Settings

draft item security

Content Approval

Here we have an option for specifying whether you want to require a content approval for a submitted item. Some libraries contain sensitive information that needs to be protected. We will not always want all the documents uploaded to the library to be visible to all users. For that we have an option where, when you select this option for the library, when a user uploads a document it goes to the moderator that can review and approve the items or files before the content becomes visible to most site users. The moderators can apply a significant level of quality and security to the content in the lists and libraries.

content approve

  • Document Version History
    Here we have an option for assigning versions to whenever our documents are uploaded and modified thereafter.
    We have:

    1. No Versioning: Option if you don’t want versioning.
    2. Create Major Versions: If you select this option, the versions will be created on whole numbers, for example version 1.0, 2.0, 3.0 and so on.
    3. Create Major and minor(draft) versions: If you select this option, the versions will be created as major versions for published documents and minor versions for draft versions as 1.1 and 1.2 and so on.

    Next we have an option to control the number of versions as in the following:

    1. Keep the following number of versions: Here you can assign a number as to until what number of versions the documents should be stored for that specific item.
    2. Keep drafts for the following number of major versions: Here you can assign a number to limit the number of versions of draft items in the library.document version history
  • Draft Item Security
    Drafts versions are items that have not been approved so here you can control the view of those items in your library, in other words who should see them. So, we have options like:

    1. Any user who can read items: users who will have read access also.
    2. Only users who can edit items: users who will have contribute access.
    3. Only users who can approve items (and the author of the item).draft item security in sharepoint
  • Require Check Out
    This option, when selected, will make it mandatory for the users to check out the item before they edit the item.require check out
    I hope this article helpful.

No#1 Best Recommended SharePoint 2013 Hosting

ASPHostPortal.com

ASPHostPortal.com  is Perfect, suitable hosting plan for a starter in SharePoint. ASPHostPortal  the leading provider of Windows hosting and affordable SharePoint Hosting. ASPHostPortal proudly working to help grow the backbone of the Internet, the millions of individuals, families, micro-businesses, small business, and fledgling online businesses. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability.