Follow this steps to activate the ASP.NET Session in your Server: 1. Open the SharePoint Management Shell. 2. Execute the following command: Enable-SPSessionStateService –DefaultProvision 3. You've to change the parameter "enableSessionState" to true on each web application you have: pages enableSessionState="true" enableViewState=.....
Categoría: SharePoint OnPrem
Remove HREF attribute from any link with JQuery
You can remove any href that contains specific text inside the link. If you want to remove the link to any page that contains "DispForm" you can do it like this: $('a[href*="DispForm"]').removeAttr("href"); '*=' means 'Contains', but you can use anything you need: *= Contains = Equal != Not equal ^= Starts With $= Ends With
SharePoint 2013 + Visual Studio 2012: File «.g.cs» dissapeared
Sometimes, when you're developing a visual web part, the designer file (with .g.cs extension) dissapears in front of your eyes. After finding nothing in the internet, we've just discovered why it is happening: You've to add the "Site URL" property in the Project properties. That's beacuse it is a web part for sharepoint, and Visual …
Sigue leyendo SharePoint 2013 + Visual Studio 2012: File «.g.cs» dissapeared
Javascript: Redirect to Main Site Page
<script language="javascript" type="text/javascript"> document.location.href=document.location.protocol + '//' + document.location.host </script>
How To: Obtain Workflow Trace in SharePoint
You can get a LOG file with your workflow trace following this steps:1. Edit web.config.2. Insert the following code just BEFORE <appSettings> (always AFTER </System.Workflow.ComponentModel.WorkflowCompiler>): <system.diagnostics> <sources> <source name="System.Workflow.Runtime" > <listeners> <add name = "System.Workflow"/> </listeners> </source> <source name="System.Workflow.Runtime.Hosting"> <listeners> <add name="System.Workflow"/> </listeners> </source> <source name="System.Workflow.Activities"> <listeners> <add name="System.Workflow"/> </listeners> </source> </sources> <sharedListeners> <add name="System.Workflow" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:MyWorkflowTrace.log" …
Allow Users To Create New Terms in SharePoint’s Taxonomy Term Store
If you go to the Term Store Management you can add new term sets in the taxonomy term store whenever you want. However, maybe you want to allow users to create new term sets, so you've to do this: 1. Go to the Term Store Management. 2. Select the Term Set that you want. 3. …
Sigue leyendo Allow Users To Create New Terms in SharePoint’s Taxonomy Term Store
Hide Elements List in ‘Details View’ and See Only its Properties in SharePoint
If you want to use the details view on a list or library and you don't want to see the list of elements (maybe you need to show only one item, or you're going to select that item on another webpart) you can hide it doing the following: 1. Edit Page. 2. Create a new …
Sigue leyendo Hide Elements List in ‘Details View’ and See Only its Properties in SharePoint
Backup your Site Collection in SharePoint
You can backup your Site Collection by this steps: 1. Open new Terminal window. 2. Go to: C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14BIN 3. Execute the following: ststsadm -o backup -url http://yourSite.com -filename C:oneFolderanotherFolderyourBackupFile
Hide the Quick Launch on a Specific Page
If you want to hide the quick launch (vertical menu) on a specific page you've to do the following: 1. Edit your page. 2. Insert Content Editor wherever you want (Insert -> Web Part and add Content Editor in Media and Content category). 3. Edit HTML. Once you can write in your Content Editor, select …
SharePoint Calendar – View All Resources By Default
If we create a calendar for resource reservation may not be able to see the items created, because each time we enter this list you must select which resources you want to see. To show you all we have to create the default calendar as follows: 1. Create New Group Calendar. Before click the "Create" …
Sigue leyendo SharePoint Calendar – View All Resources By Default