Month: July 2013

Default Master Page in SharePoint/ SharePoint OOB master pages

The master pages available in SharePoint 2010 are described here.

Name / default file name
Uses on a SharePoint site
Primary master page
Used for content and administration pages. Provides the interface and layout for SharePoint 2010.
Team Site home page, list and library pages, and site settings page.
Minimal master page
Contains minimal SharePoint content, used for full-screen functionality or embedded applications.
The home and search results pages on a Search Center, pages that host Word or Excel web applications.
Publishing master page
Used for pages on a SharePoint Server publishing-enabled site.
The home page, about us, or press release page on a publishing intranet, extranet, or Internet-facing site.
2007 default master page
Used to support legacy SharePoint sites, which haven’t been visually upgraded to SharePoint 2010.
Home page, site pages, and list pages on a SharePoint 2007 site before visual upgrade.

There is one more master page, simplev4.master, which is used for SharePoint-specific screens, like Login.aspx, Error.aspx, and Confirmation.aspx. This master page, however, is located on the server and cannot be customized in SharePoint Designer 2010.

Back to Basic: Passing Parameter to method

What could be output of below code block:-

 using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Default2 : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        Int32 varInt = 0;
        String strTestString = String.Empty;
        strTestString = “Before Function Call String Object”;
        varInt = 987;
        test userObj = new test();
        userObj.n = 34;
        userObj.str = “Before Function call Test Object”;
        check(userObj, varInt,strTestString);
” + userObj.str);
” + varInt);
” + strTestString);
    public void check(test userObjRec,int varIntRec,String strTestStringRec)
        userObjRec.n = 110;
        userObjRec.str = “After Function call Test Object”;
        varIntRec = 555;
        strTestStringRec = “After Function Call String Object”;
public class test
   public int n;
   public String str;



After Function call Test Object
Before Function Call String Object

“Updates are currently disallowed on GET requests”- error trying to access web-application general settings in SharePoint Central Admin

Error Message:-

Updates are currently disallowed on GET requests. To allow updates on a GET, set the ‘AllowUnsafeUpdates’ property on SPWeb


Run below Powershell Script to get rid of this error:
$w = get-spwebapplication

This should resolve the error and General Settings page should load as expected. 🙂