Smooth scrolling in IPad and IPhones

Add the below for the body{} class in the Custom CSS file associated with your masterpage,

-webkit-overflow-scrolling: touch;



how to get current URL in SharePoint?

To get current URL using SPContext.Current try to use below
SPContext.Current.Web.Url for absolute url
SPContext.Current.ServerRelativeUrl for the relative position of web on site
string SiteUrl = SPContext.Current.Site.Url;//Get the url of current site
SPSite site = new SPSite(SiteUrl);//open the site with the url passed
SPWeb oWeb = site.OpenWeb();//open the web
Get current page absolute url

Sharepoint 2010 – Custom Error Pages

Unless you love the default Sharepoint error pages for 404 (not found) and 401 (access denied), it is usually a good idea to change them. The steps are a bit different than a standard application.

1) Browse to C:\inetpub\custerr\

2) You should now see a list of localization folders like en-US or fr-FR. Open the folder you want to edit and modify the error pages for 401,403,404 and 500.

3) Now browse to C:\inetpub\wwwroot\wss\VirtualDirectories\ and open the folder associated to the Sharepoint site you would like to affect.

4) Edit the file web.config and find the keyword customErrors. Replace the complete customErrors code block with:

1.<customErrors defaultRedirect="404.htm" mode="On">

2.       <error redirect=“401.htm” statusCode=“401” />

3.       <error redirect="403.htm" statusCode="403" />

4.       <error redirect=“404.htm” statusCode=“404” />

5.       <error redirect="500.htm" statusCode="500" />


5) Now find the keyword <system.webServer>. Inside this block, place the following block code. (If the httpErrors block already exists, replace it completely!)

1.<httpErrors errorMode=“Custom” existingResponse=“Auto”>


6) Save web.config and do the usual iisreset command if needed.


Accidentally deleted a file? Ways to get back

It only takes a moment of carelessness to permanently delete important data from your PC. But don’t worry, you may still be able to recover most of it, if you stop using your-PC immediately and use data recovery software. When a file is deleted, even from inside the Recycle Bin, it doesn’t actually vanish from the hard drive. Instead, the computer merely changes the file’s properties to make it invisible to the user. The file truly gets deleted only when the operating system overwrites fresh data to that space. You can try to recover thedeleted files using free software.

 MiniTool Power Data Recovery

This is a versatile software. It can not only recover the deleted files, but also help you save data from damaged partitions, pen drives, SD cards and CDs. MiniTool puts the retrieved files in folders, but you will have to go through several folders, Lost Files and Desktop, for example, before you find the actual files you were looking for. Once you have found the files, just click “save files” to get your data back.


 This lacks the advanced features of Mini-Tool , but one advantage of using Recuva is that you can see a preview before saving the retrieved files. This is handy because the computer often changes the names of deleted files to something like $ABC.MP3.

 Glary Undelete

 In our tests, this was the slowest of the three. But one good feature is its ability to home in on the full name of the deleted files. This makes finding the right files a lot easier. utilities/glary-undelete/

Installing SharePoint 2010 in Windows 7 (64 bit)

Many people faces problem in installing SharePoint 2010 Server in windows 7 because it doesn’t directly support it and you will get error about operation system while attempting to install. But there are certain steps which can guide you to install SharePoint 2010 in your machine. I hope you know how to install SharePoint 2007 in windows 7. Don’t afraid, it is not the prerequisites for the installation of SharePoint 2010. However, if you need it you can see it here. But that tweaks doesn’t work for 2010. So you must follow some steps to run SharePoint 2010 in your Windows 7 (64 bit) machine.

1)      Install the following update.

2)      Extract the installation files from the setup using command d:\Software\SharePoint10\SharePointServer /extract:d\SharePointServerFiles. In my case source directory is d:\Software\SharePoint10 and target directory is d:\ SharePointServerFiles.

3)      In the target directory find the config.xml a following d:\ SharePointServerFiles \files\Setup\ and add the following line of text in configuration node <Setting Id=”AllowWindowsClientInstall” Value=”True”/>. Now your configuration file would be something like below:

01 <Configuration>
02     <Package Id="sts">
03         <Setting Id="LAUNCHEDFROMSETUPSTS" Value="Yes"/>
04     </Package>
05     <DATADIR Value="%CommonProgramFiles%\Microsoft Shared\Web ServerExtensions\14\Data" />
06     <Package Id="spswfe">
07         <Setting Id="SETUPCALLED" Value="1"/>
08     </Package>
10     <Logging Type="verbose" Path="%temp%" Template="SharePoint Server Setup(*).log"/>
11     <!--<PIDKEY Value="Enter Product Key Here" />-->
12     <Setting Id="SERVERROLE" Value="SINGLESERVER"/>
13     <Setting Id="USINGUIINSTALLMODE" Value="1"/>
14     <Setting Id="SETUPTYPE" Value="CLEAN_INSTALL"/>
15     <Setting Id="SETUP_REBOOT" Value="Never"/>
16     <Setting Id="AllowWindowsClientInstall" Value="True"/>
17 </Configuration>

4)      Now, it is the time to install the prerequisite installer files.  First install filter pack in the path d:\ SharePointServerFiles \PrerequisiteInstallerFiles\FilterPack\ FilterPack.msi.  Now install following components:

  1. Microsoft Sync Framework
  2. SQL Server Native Client
  3. Windows Identity Foundation (Windows6.1-KB974405-x64.msu)

If you have Visual Studio 2010 installed in your machine then you may not have to install previous two components.

5)      Now, turn on the windows features for IIS for the components as shown in figure (AT LEAST, please). Type ‘optionalfeatures’ in run and enter to open windows features.

Fig continue:

6)      Now run setup.exe from ‘d:\ SharePointServerFiles’ to get installation wizard and choose Standalone installation to install all on one developer workstation.

7)      After the end of installation you need to run the configuration wizard. But before that you need to install some hotfix for SQL Server. Install SQL Server 2008 KB 970315 x64. You need to request the hotfix and Microsoft will send you in email the link and password that required for extraction. Note that you must install this hotfix to avoid the exception while configuration wizard is creating configuration database.

8)      Now, you can run your configuration wizard to configure SharePoint in your machine. Don’t panic; it takes time. Good luck.


1. I can open the Central Administrator site but links are not enabled in Central Administration -> Application Management -> Manage Web Applications. You cannot create new web application and extend existing oneL.

Sol: Make sure you have Windows Identity Foundation installed. Get it from here.  Now do not directly open the central admin site but first open Internet Explorer as administrator and open central admin page. Now, if still it is not working, you would like to use 64-bit IE (Same happened in my case). Furthermore, you can disable UAC to enable link but it is not good practice to disable UAC just for SharePoint.

NOTE: If you have any issue, feel free to post it.

Set up your desktop for Office 365

After you’ve signed in to the Office 365 portal for the first time, you should set up your computer to work with Microsoft Office 365 for enterprises. This involves installing updates for your desktop applications from the Office 365 Downloads page, and then configuring your computer. This topic will walk you through these tasks.

When you have set up your desktop, you will be able to:

  • Install the complete suite of Microsoft Office 2010 desktop apps, if you have a Office Professional Plus subscription.
  • Install Microsoft Lync 2010, your workplace connection for instant messaging and online meetings including audio and video.
  • Use your Microsoft Online Services ID to sign in to Office 365 from your desktop applications.

To set up your desktop for Office 365, follow these steps:

  1. Sign in to the Office 365 portal. In the right pane, under Resources, click Downloads.
  2. If you have Microsoft Office Professional Plus, under Install Microsoft office Professional Plus, select your desired language option and choose either the 32-bit or 64-bit version, and then click Install.
  3. Under Install Microsoft Lync 2010, select your desired language option and choose either the 32-bit or 64-bit version, and then click Install.
  4. Under Set up and configure your Office desktop apps, click Set up. The Microsoft Office 365 desktop setup tool starts.
  5. Sign in using your Microsoft Online Services ID.

Office 365 desktop setup will check your system configuration. If the scan completes without detecting any problems, you’ll be presented with options to configure your desktop applications and learn more about the important updates Office 365 desktop setup will install. If a problem is detected, see Troubleshoot update and configuration issues for Office 365 for more information.

  1. After you have selected the applications you want to configure, click Continue, review the service agreements, and then click I accept to begin installing updates and configuring desktop applications.
Some of the applications may have shaded checkboxes. This can occur if your account has not been provisioned to use this application with Office 365 or if your computer does not have the required applications already installed.
  1. When the installation and configuration have completed, you may have to restart your computer to finalize the installation and configuration processes.

After running Office 365 desktop setup, a shortcut to the Office 365 portal will be added to the Start menu on your desktop.

If you encounter a problem while setting up your desktop, a support agent or administrator may ask you to collect a log by pressing Shift, Ctrl, and L simultaneously on your keyboard.