Friday, July 26, 2013

Default Master Page in SharePoint/ SharePoint OOB master pages


The master pages available in SharePoint 2010 are described here.

Name / default file name
Description
Uses on a SharePoint site
Primary master page
v4.master
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
minimal.master
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
nightandday.master
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
default.master
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.

Friday, July 5, 2013

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);
        Response.Write("</br>"+userObj.n);
        Response.Write("</br>" + userObj.str);
        Response.Write("</br>" + varInt);
        Response.Write("</br>" + 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;

}
.
.
Output
    V

Wednesday, July 3, 2013

Thursday, June 13, 2013

LookUp Column Re-mapping to List (Get information from is null)

When you create a list with lookup columns using VS 2010. You may find all Lookup column missing there mapping to parent list.

"Get information from" will be null on Column settings page.

Use Below code to remap those fields on Feature activated:

Friday, May 31, 2013

How to kill a session on Windows Server(Log off other user from server)

This post is continution to my previous post

http://gadekarsatish.blogspot.in/2013/02/log-off-other-user-from-server.html

In alernative to above approach we can also use below approach

Warm Up Script for SharePoint

You can use this warm up script after deployment in SharePoint it will bring back your site faster thna browser.


Write below line in text file and save as BAT file


####################################################################
powershell -command "& 'D:\Satish\WarmUp\Satish\WarmUp.ps1'"
####################################################################


Write Below lines in text file and save as ps1 file

Discussion Board SharePoint Invalid index. (Exception from HRESULT: 0×80070585)

I got this error When I created SharePoint Discussion Board using C# code.

Resolution

  • Navigate to List Settings
  • Open Current View
  • Unchecked Last Updated field
  • Save view
  • Enjoy
  • SharePoint document metadata not updating

    I faced a weird issue today, Metadata for document which has lookup column was not updating even after saving the item. There was no erro...