Search This Blog

Friday, July 17, 2015

Change the "SharePoint" text in the top left corner


$webApp = Get-SPWebApplication http://tozit-sp:2015
$webApp.SuiteBarBrandingElementHtml = "New Text Here"
$webApp.Update()

Thursday, July 16, 2015

How to enable and disable Quick launch in SharePoint 2013


To display the Quick Launch menu using the SharePoint 2010 web interface, follow these steps:
  1. Navigate to Site Actions, Site Settings, Tree View (under Look and Feel).
  2. Select the Enable Quick Launch check box and click OK

This will enable and disable the quick launch.

View all Webparts on your SharePoint Page

All you need to do is add this string to the end of your URL "?contents=1" on any of your SharePoint Pages

How to Enable session in your web application

Change settings in your web.config file

change enable session as true

<pages enableSessionState="true">

add the following code with in the  <modules> tag

<add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition="" />

Thats it.. Now you can store values in session.

This content database has a schema version which is not supported in this farm

we usually face this issue when we try to mount content db.

It is because of the database version conflict.

Just go to your local database and open Versions table and check the version of your database.

now open the database which you are trying to mount and open the Versions table and change its version as per your database version.

now try to mount your database again.

Mount Content DB:

Mount-SPContentDatabase -Name WSS_Content_DB_ToAttach 
-WebApplicationhttp://mywebapplication:port

Dismount Content DB:

Dismount-SPContentDatabase -Identity WSS_Content_DB_ToAttach

Remove Content DB:

Remove-SPContentDatabase -Identity WSS_Content_DB_ToAttach




Thursday, July 9, 2015

link button property to open in new tab?

 By Adding following onClientClick even in your link button we can open the url in new tab.

OnClientClick="aspnetForm.target ='_blank';"

so on click it will call Javascript function an will open respective link in News tab.

<asp:LinkButton id="lbnkVidTtile1" OnClientClick="aspnetForm.target ='_blank';" runat="Server" Text="New Tab"  />

and another option is you can go for Hyper link control to achieve this. By default it has the Target property and you can set that to _blank.

thank you,

Restricting Custom People Picker to only one Sharepoint group programatically

Refer the following script files in your page,     <!-- For People Picker -->     <script type="text/javascript" src...