Tuesday, November 15, 2011

Avoid checked out issue while drag and drop multiple documents using Explorer View

When multiple files are dragged and dropped into SharePoint using explorer view, all files are shown as checked out in SharePoint even though check-in/check-out are not required on document library.

Solution: Enable content type at document library level and make the Title column as optional for the content type document. Then try to upload the multiple documents using explorer view. It will work fine as expected.

Wednesday, November 9, 2011

Enable Web folders in SharePoint Explorer View

Some of the below points you should aware if web folder is not working properly in your SharePoint site.
*       When you try to access an Explorer View page on Windows Server 2003, you will sometimes receive the following error: “Explorer View requires Internet Explorer 5.0 or greater and Web Folders.”
This is typically caused by the fact that Windows Server 2003 does not include Web Folders (FPRPC) technology and, by default, the Web Client Service is disabled.
You can resolve this in one of two ways:
1. Install Microsoft Office 2003 or FrontPage on the server. Office 2003 and FrontPage install Web Folders components which will then allow you to access the Explorer View using FPRPC.
2. Enable the Web Client Service on the server. (We have tested in our production which did not work out)
*       If anybody out there has been building demo machines on Windows Server 2008 or Windows Server 2003 you will have run into this issue at some point. Explorer View does not work on document libraries, nor can you map a network drive to a SharePoint site.
Solution:  The server platforms effectively don't like web folder views until you install the fix KB907306. That fixes works for both Windows 2003 and 2008.
Now you can happily map a SharePoint site to your network places and use the Windows Explorer to browse the SharePoint sites.
*       It does not seem to be the problem with an internet explorer. When you attempt to way in an Explorer View page on Windows 7 then you must receive the following error: “Explorer View requires Internet Explorer 5.0 or greater and Web Folders.” Actually this issue comes when your operating system does not include the Web Folders (FPRPC) technology and this service is disabled by default on client machine. To solve this problem, you just need to install the FrontPage on the server then you may try doing the same thing.
Reference Link:

Thursday, September 8, 2011

Tips: Unexpected issue in the out-of-box functionality of SharePoint site

One interesting issue !
Suppose just before yesterday you checked that your SharePoint site was working fine, but today you start getting unexpected issue in the out-of-box functionality of SharePoint site( like displaying All Items data, Deleting List Item/Library or Creating View etc.), Then you might thought that without any changes how can the issue arise. Yes you are right, but do you regularly verify the content database size of the site collection. Yes, those unexpected error comes whenever the Content DB has no free space to use. Now it's your task to increase the Content DB size.
I got below error while displaying All Items data for a library.
<---Render Method ----!>
Then I verify the event Viewer where I got the error that TempDB is expecting some space to do the SharePoint transactions(whether displaying data, creating or deleting items etc).
-Samarendra swain

Friday, April 8, 2011

SharePoint 2010 : Display new form, edit form and display form of a list/Library in full page instead of in dialog box.

Go through the below steps to achive the same.
  • Open the List/Library.
  • Go to settings of the list/library.
  • Go to advanced settings.
  • Select 'No' in Dialogs section like below screen shot.

Now check the New form, Edit form and Display form for that list/library. You will able to see the forms in full page instead of dialog, like below screen shot.

Enjoy !

Thursday, February 17, 2011

Remove ’s while exporting excel file using RenderControl method of GridView or DataGrid or DataList control.

Example: ‘Employee’s home’ was coming like ‘Employee’s home’ while exporting to excel file where it should come like the original one.

Code Snippet:
Function  ExportToExcel( GridView  gv)
            HttpContext.Current.Response.AddHeader("content-disposition", string.Format("attachment; filename={0}", "Test.xls"));
            HttpContext.Current.Response.ContentType = "application/ms-excel";

            System.IO.StringWriter oStringWriter = new System.IO.StringWriter();

            System.Web.UI.HtmlTextWriter oHtmlTextWriter = new System.Web.UI.HtmlTextWriter(oStringWriter);


 // add the below marked line to fix that issue
            HttpContext.Current.Response.ContentEncoding = Encoding.GetEncoding("Windows-1252");

            HttpContext.Current.Response.Write(strHeading + oStringWriter.ToString());