Interview Questions administrator

Best SharePoint administrator Interview Questions and Answers with topic wise:


Recycle Bin | MMS | ManagedVsCrawledProperties |

Wednesday, May 30, 2012

sharepoint 2010 modal dialog scrollbars issue


Recently I have created a custom master page for our new SharePoint server, First I have noticed that when the page loads, SharePoint runs a java script function and sets the width of the page.

It is searching for the div tag with Id #s4-workspace and if it finds one with this id, sets its width to fit the content. So I have added a class s4-nosetwidth. If we add this class to s4-workspace, SharePoint won’t set its width.

But very first time when I tried to create fixed width master page, I have faced so many issues with scroll bars and SharePoint modal dialog windows are not opening correctly. They are opening either with in small height and added scroll bars or opening in fixed width and height without scroll bars.
Mainly IE7 adding its own scroll bar to body  , as the page is fixed width so the scroll bar that is showing in the middle of the page is looking pretty ugly. I have fixed all these issues and below am the styling.

Monday, March 12, 2012

How to write custom Error Log File Code:

A common headache for all developers is how to handle errors? Sometimes it's very difficult to find where the errors comes. So, Better solution is write custom log files. Here I am sharing my custom handling techniques.

My custom log files highlights are: 
  • It stores all our logs in the specified folder with the log file name? We just have to give the log file path in the web.config file 
  • Will get the classname, methodname, logged username and exception name for each generated log file. 
  • Log files are stored with log file generated date/time. Here is my custom log file code:

Thursday, March 8, 2012

Custom GlobalNavigation in SharePoint

It’s a very common requirement to apply nested nodes to the top level global navigations for most of the SharePoint developers. But, by default SharePoint limits up to one level only. Don’t worry I have done it. You can implement the nested nodes to the top navigation by following the below steps.

Step1: Create a sitemap file and place that file in “app_bin” folder.

Note:
·         <siteMapNode title="Home" url="/site/subsite/default.aspx" target="_new" />
·         To customize menu items to new popup window as target than default “_top” window.

The file _app_bin/Web.sitemap required by XmlSiteMapProvider does not exist

Even I also got this exception; I have checked the sitemap file that I am using exists in “80/app_bin” folder or not? Yes it is available then why I am getting this error? I don’t have any idea on it so I thought it’s better to search in Google. I understood why it is happing by referring the below post.

 
Let me briefly explain what the post says, the users should have permissions to access if you place the sitemap files in web applications “app_bin” folder. By default, SharePoint administrators have permissions to access it. I then added read permissions to domain users group on file Web.sitemap to access domain users also. Then - problem disappeared! :=) 

Now, I got one more question? If you want to use the same sitemap file in multiple web applications, then what will we do? Is this better approach to give permissions to the sitemap file explicitly for each deployment?

Tuesday, March 6, 2012

Client Object Model:SharePoint 2010

The Client Object Model is a new object model introduced in SharePoint 2010 which is aimed at making things easier for the developer when developing client-side applications for SharePoint 2010. Client Object Model can run on the client machines (Where SharePoint is not installed) and communicate with the SharePoint server remotely.

In my previous post, i already shared all types of client object model examples.