Posts

How to force Sharepoint to to use Desktop version and not mobile version of a site

You can either edit the web.config and add before the end of system.web node <browserCaps> <result type = "System.Web.Mobile.MobileCapabilities, System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <filter> isMobileDevice=false </filter> </browserCaps>

How to show confirmation alert before closing browser tab using JavaScript

Implementation : Add the below given script in head section of page (webform, Html). < script   type ="text/javascript">     window.onbeforeunload =  function  () {          return   'Please save the changes before close the tab !!!' ;     } </ script > Complete HTML Markup of webform : < html   xmlns ="http://www.w3.org/1999/xhtml"> < head   runat ="server"> < script   type ="text/javascript">     window.onbeforeunload =  function  () {          return   'Please save the changes before close the tab !!!' ;     } </ script > </ head > < body >      < form   id ="form1"   runat ="server">      < div >      < fieldset >  ...

open sharepoint attachment in browser new window

To open sharepoint attachment in browser new window. here is the code $(document).ready(function() { $.each($("a[onclick*='DispDocItemExWithServerRedirect']"), function(i, anchor) { var attUrl = $(this).attr("href"); $(this).removeAttr("onclick"); $(this).removeAttr("onmousedown"); $(this).click(function (){ window.open(attUrl); return false;}); }); });

Convert Part of Excel to Image Using Free Excel API

Image
on Convert Part of Excel to Image Using Free Excel API Convert Part of Excel to Image Using Free Excel API In MS Excel, it is pretty easy to export Excel range as image with following steps: Select a section that you need to export as image. Click Home>Copy>Copy as Picture, then picture will be save in clipboard. Paste the copied picture to your Paint tool, then save the picture to the specified folder in specified format. However, in this post, I’ll introduce how to convert section(s) to image programmatically using Free Spire.XLS  in C#. As a matter of fact,  Spire.XLS  has provide a  Worksheet.SaveToImage(int firstRow, int firstColumn, int lastRow, int lastColumn)  method for programmers to save selected range of cells to image easily, now let’s check the detailed steps as below. Main steps: Step 1: Create a new Excel document and load the test file. Step 2: Get the first sheet from the workbook. Step 3: Save specific cell...

How to find real error in Sharepoint using Correlation ID

Image
For viewing error information in sharepoint some times we get only Correlation ID for the error. So in my previous article  Log files  we have to choose any one log file. If you get error in SharePoint 2010 most of them are generic like this one, where only thing we can see is Correlation ID. Here am choosing  this one.  SharePoint LogViewer by Overroot Inc –  http://sharepointlogviewer.codeplex.com . we have to download it and click the play button. so our application log details will be displayed here.in filter opetion we have to choose correlation option and then we have to enter our correlatin id and click search button. it will display the result which is  belongs to the error.

Edit user Details or Email in sharepoint site

Image
Sometimes AD synchronization stales between domain controller and SharePoint server. This are the steps to solve this issue 1. Go to SharePoint central administration 2. Select manage service applications 3. Manage user profile 4. Find user profile 5. Edit user profile work email field 6. Go to Job definitions on Check Job Status 7. Select Job Definitions 8. Scroll down and select User Profile Service Application – User Profile to SharePoint Full Synchronization 9. Wait for the job to finish running and check if you can set Alerts for that specific user.

SharePoint displays 'System Account' as the logged in user

Sometimes SharePoint administrators would like to update content in their site in certain ways, but don't want everything to show up as being last modified by them by name. Instead, they would prefer that the record simply show that it was last updated by  System Account . On the other hand, sometimes administrators are not sure why SharePoint shows them as being logged in as System Account and why everything they edit or upload is tagged as such. The Problem It is not immediately clear in SharePoint when the user will be shown as System Account. The options to control this are also not immediately obvious. At times the problem is even rooted in what account is being used to run the application pool for a web application. If the identity of the application pool is that of a particular administrator or if the administrator logs in as the farm account or the application pool account, then SharePoint will show that person as System Account. If none of these three is the case t...