Posts

Showing posts from 2011

SharePoint 2010 – Making title column required on Document and Picture libraries

Image
If you want to make title field mandatory when uploading files to a document library do the following steps. This will make title column required on the document library. Go to document library “Library Settings page” Go to the “Advanced settings” page in the library settings page Make “Content Types” Allow management of content types to “Yes” and press ok. In the “Library Settings page” click the “Document” content type Click on Title In the Column settings make it as Required. Now once you upload a document to the library it will ask for the Title of the document. Hope this small tutorial will help you to complete your solution .

Introduction to SharePoint 2010 Master Pages

Image
Today I wanted to dig deep in to the SharePoint master pages. Following is a blog post from http://sharepoint.microsoft.com/Blogs/GetThePoint which include most of the basic difference between different master pages which comes with SharePoint 2010. I think this will be helpful for those who want to get basic knowledge about SharePoint 2010 master pages and who wants to create custom master pages. http://sharepoint.microsoft.com/Blogs/GetThePoint/Lists/Posts/Post.aspx?ID=386 Enjoy

SharePoint 2010 Logging

I have practice of logging when handling exceptions and rest of the important things which I think will need when we want to find something important while fixing bugs in the future. Following is a one of the way you can log messages in to the ULS log from the code. You can use this method in a common place and call it from any place you want in SharePoint 2010 code. 1: private static void LogMessage( string message, string category, TraceSeverity traceSeverity, EventSeverity eventSeverity) 2: { 3: // retrieve app settings for logging 4: if (WebConfigurationManager.AppSettings != null && WebConfigurationManager.AppSettings[APP_SETTINGS_LOGGING_ENABLED] != null ) 5: { 6: // get the accessdenied page path from the app settings 7: string loggingEnabled = WebConfigurationManager.AppSettings[APP_SETTINGS_LOGGING_ENABLED].ToLower(); 8:   9: if (loggingEnabled.CompareTo( "true" )

SharePoint 2010 My Site–Error when opening the My Profile page

Image
Today just after I configure My Site host in my environment I tried to test the My Site pages by navigating to those pages. But I got the following error once I go to those pages. Following is the stack trace. Unhandled exception caught during execution of Microsoft.SharePoint.Portal.PageBase::ErrorHandler(). Exception information: Exception information: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.Server.Utilities.UrlUtility.SafeAppendQueryStringParameter(String strUrl, String strKey, String strValue)     at Microsoft.SharePoint.Portal.WebControls.EditProfileButton.OnPreRender(EventArgs e)     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiv

WP7 Samsung Focus

Image
WP7 is battling with IOS and Android to dominate the smart phone market in the world. Currently I’m using a Nokia 5530 which is 2year old smart phone. I also wanted to join to the new trend and explore all new apps given by different vendors. The problem I have is that which one to choose . IOS is out from the beginning due to its cost. Then Android seems to be a good cheap choice. but I feel that as I most of the time interact MS related tools and applications WP7 will be the best option. I have two WP7 phones models which I wanted to try and both of them seems to be affordable when I search through the ebay. One is Samsung Focus and other is LG Quantum. Following is  one of link I found which has a full review of Samsung focus. I wanted to buy this device in near future. http://www.ubergizmo.com/2010/11/samsung-focus-review/

SharePoint Formulas and functions

I recently wanted to write some formulas to put column validations for SharePoint list columns. Following is a link which provide more details on API which we can use to get more insight on how to defining validations. http://office.microsoft.com/en-us/sharepoint-foundation-help/CH010372694.aspx

SPQuery not executing the query and returning all results

Today i faced a problem when I create a SPQuery object and when in get the result its giving all the records in the list. Finally i figure out that we don't need to put ... tags in to the query. As most of us using the Camel query builder we are used to use tag. Next time make sure to remove the .. tags from when you are using SPQuery objects. Hope this tip help you struggle in future.

List of free MicroSoft books

Click here to get the list of free MicroSoft Ebooks. Enjoy...

The Future of Screen Technology - Information Everywhere

I found an interesting video of future of screen technology. The concepts that are have focused really useful and I also have the same requirements like my phone to be a kindle like reader :). Watch this.. What do you think? How much time will it take to companies to invent similar products to the consumers? I think its not far away. Yesterday I saw Microsoft has started a partnership with Nokia ( http://conversations.nokia.com/ ) I believe this is kind of a good news where great software companies starting partnerships with mobile gadget inventors. They will together can archive this definitely :)

Sharepoint 2010 Hotfix for list of issues

Refer http://support.microsoft.com/kb/983497 Following are the list of issues fixed in the hotfix. After you move a site to a new content database, the Microsoft SharePoint Foundation 2010 sync does not work on that site. If you change your information, a Microsoft SharePoint Server 2010 site still displays your old information after you log on to that site. The Welcome Name field is not synced with a user profile as expected if the user obtains access to a site through an Active Directory group. This issue occurs even if the administrator uses the synchronization job to sync profile details for inactive site users. If a user profile synchronization service uses a named SQL instance, the service no longer starts after you provision the service. For example, this issue ocurrs when you stop the service. You cannot obtain most activity properties from the ActivityManager object without obtaining the LinkList property first. When you add a Windows user to SharePoint Ser

What is best Windows Phone 7 or IPhone ?

Image
I’m also not really sure what is the best. But as I can see still most of the ppl believe that IPhone is best that Windows Phone 7. I think they have evidence to stick to there opinion as they have used IPhone for quite a lot of time. Simply they are now used to it. But Windows Phone 7 as a new comer still didn’t get enough time to  show its colors I believe. To check the usability of these two phone I don’t have that much of wealth to afford any of these phones. Luckily the organization that I work for do both IPhone and Windows Phone 7 development. So they bought both IPhone and Windows Phone 7 I’m LUCKY enough to get some hands on experience of these two amazing mobile devices. What I think is the concept that Windows Phone 7 has come up with much more different that the IPhone. Panaroma view and Pivot view which are the main development application flows that Microsoft has introduced for Windows Phone 7 development. Today I told to one of my friend that the Window Phone 7 Pan