Wednesday, April 29, 2015

How to use SPSiteDataQuery in sharepoint

Below is the example how we can use spsitedataquery in sharepoint

using (SPSite site = new SPSite(ServerText.Text))
    using (SPWeb web = site.OpenWeb())
        // Fetch using SPSiteDataQuery
        SPSiteDataQuery query = new SPSiteDataQuery();
        query.Lists = "<Lists ServerTemplate=\"105\" />";
        query.ViewFields = "<FieldRef Name=\"Title\" />" +  /* Title is LastName column */
                "<FieldRef Name=\"FirstName\" Nullable=\"TRUE\" Type=\"Text\"/>";
        query.Webs = "<Webs Scope=\"SiteCollection\" />";

        DataTable dataTable = web.GetSiteData(query);
        dataGridView3.DataSource = dataTable;

Thursday, April 9, 2015

SharePoint URL Shortcuts

Sandboxed Solution Gallery:

Workflow history hidden list:
/lists/Workflow History

Filter toolbar for Lists and libraries (Added by Asimaili):

Site usage page (Added by @Dnyag):

Site content and structure  page (Added by @Dnyag):

Site settings page (Added by Aowworld):

View all site content page (Site content) (Added by Aowworld):

Manage site collection features - CASE SENSITIVE 

Manage site features :

 Get the version of the SharePoint server (Patch level) :

Web Part Maintenance Page :

Show Page in Dialog View :

Application page for registering SharePoint apps :

Save Site as a template : 

Sign in as a different user :

Enable SharePoint designer :

Welcome Page (Default page settings) :

Change Site Master Page :

Page Layouts and Site Templates :

Master Pages library :

User Information List :

Quick Deploy List :

Open Page in Edit Mode :

Taxonomy Hidden List (MMS) :

User Information List :

Force displaying the user profile in the site collection :

View size of all lists and libraries :

Wednesday, April 1, 2015

how to get the current ui culture using CSOM

use the below line of code to get the current UI culture