Category Archives: SharePoint

How to set custom error page in SharePoint 2013/2010

Place the custom error page at “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ TEMPLATE\LAYOUTS\1033” Code :- namespace UpdateErrorPage { class Program { static void Main(string[] args) { using (SPSite site = new SPSite(“http://siteUrl”,SPUserToken.SystemAccount)) { SPWebApplication webApp = site.WebApplication; webApp.UpdateMappedPage(SPWebApplication.SPCustomPage.Error, “/_layouts/15/1033/customerror.html”); webApp.Update(); … Continue reading

Posted in SharePoint | Tagged , , , , , , , , , | Leave a comment

Custom Error Page in SharePoint 2013/2010

Open Web.Config file for your web application. For Custom Error – I change in web config tags <SafeMode MaxControls=”200″ CallStack=”false” DirectFileDependencies=”10″ TotalFileDependencies=”250″ AllowPageLevelTrace=”true”> <customErrors mode=”On” /> For Custom Error – II change in web config tags <SafeMode MaxControls=”200″ CallStack=”true” DirectFileDependencies=”10″ … Continue reading

Posted in SharePoint | Tagged , , , , , , , , , | Leave a comment

How to add Favicon Icon on SharePoint Master Page – SharePoint 2013 Site

<head runat=”server”> <!–SPM:<SharePoint:SPShortcutIcon runat=”server” IconUrl=”/_layouts/15/images/favicon.ico?rev=23″/>–> </head>

Posted in SharePoint | Tagged , , , , , , , | Leave a comment

How to run ecma script on Page Load – SP Execute or

SP.SOD.executeFunc(“sp.js”, “SP.ClientContext”, FunctionName); function FunctionName(){ }

Posted in SharePoint | Tagged , , , , , , , , | Leave a comment