Archive for August, 2013

Save a Site as a Template in SharePoint 2010 missing


String Revers in C#

Categories: C# Tags:

FizzBuzz Logic

public void DoFizzBuzz()
for (int i = 1; i <= 100; i++)
bool fizz = i % 3 == 0;
bool buzz = i % 5 == 0;
if (fizz && buzz)
Console.WriteLine (“FizzBuzz”);
else if (fizz)
Console.WriteLine (“Fizz”);
else if (buzz)
Console.WriteLine (“Buzz”);
Console.WriteLine (i);

using System;
class FizzBuzz {
static void Main() {
for (int n = 1; n <= 100; n ++) {
if (n % 15 == 0) {
else if (n % 3 == 0) {
else if (n % 5 == 0) {
else {

Categories: C# Tags: ,

SharePoint 2010 List “Customize Form button” is not working

SharePoint 2010 List “Customize Form button” is not working

Open SharePoint
Click on tools option in the browser
Click on : Internet options
Click on: Security
Click on : Trested sites
Click on: Sites
Enter your site name in the Textbox
Click Add

Close the browser
Open SharePoint Site in the new browser and go to list–>List Settings
Click on Customize Form button


AddFailOverInstance PowerShell

$fdb = Get-SPDatabase –Identity <id of database>
$fdb.AddFailOverInstance(“failover alias/sql”)

SharePoint 2010: crawl database size

SharePoint 2010: crawl database size

Crawl Database size= 0.046 × (sum of content databases)

How to create Custom Master Page in SharePoint OnLine

How to create Custom Master Page in SharePoint OnLine

1.Open SharePoint Online Site
2.Click on Site Settings
3.Click on Master pages and page layouts (under Web Designer Galleries)
4.Download seattle.master, save in your local system
5.Rename seattle.master to MyCustom.master
6.Open MyCustom.master in SharePoint designer

If you have any custom css, js files or jquery js files, upload in to Style Library folder
Add js and CSS references after

<SharePoint:CssLink runat=”server” Version=”15″/>
<SharePoint:CacheManifestLink runat=”server”/>

<script src=”/teams/MySite/Style Library/jquery-1.6.2.min.js” type=”text/javascript”></script>

<link rel=”stylesheet” href=”/teams/MySite/Style Library/Style Library/css/demos.css” />
<link rel=”stylesheet” href=”/teams/MySite/Style Library/Style Library/css/Style.css” />

Save MyCustom.master

7.Open SPO–>Click on Site Settings
8.Click on Master pages and page layouts (under Web Designer Galleries)
9.Upload MyCustom.master
10. Publish Major version
11.Set your new master page as default to site
12.Site Settings –>Master page (Under Look and Feel)
13.under Site Master Page –>Select the drop down and select MyCustom
Click Ok