Geeks With Blogs
Madhawa Learns To Blog : C#, Java .net, c#, java,sql, OOAD and more mad memory dumps...
Very good insight on using "AllowUnsafeUpdates" in SharePoint object model.http://hristopavlov.w... ......

If you have tried Sharepoint discussion boards, you already know that you cannot offer a PROPER forum experience with it. It's still very primitive and it will take considerable time and effort you to extend and customize.Fortunately I found that there are some third party solutions, and Lightning Storm Forum is a very nice alternative. I'ts not free ......

Yesterday I realized that non of my custom lists enforce content approval by default. That really worried me as 90% of the data we display in the web site which I'm working on are coming from custom lists. Enabling this manually is a piece of cake but I wanted to include this in the list definition. After some research and testing I found out that there ......

These days I'm working on a CMS solution and I had all my list definitions and list instances in one feature, so everything was working fine. But its not ideal as each time I change the list definitions I have to de-activate and re-activate the whole feature. And each time I do that the default data I have defined in list definitions are duplicated. ......

Going over all the w3wp processes in task manager is frustrating if you wanna do this frequently :). So here it is.

taskkill /F /IM w3wp.exe /T

Works in the command line and PowerShell as well.



/// <summary> /// Add Permission Level to a Sharepoint user group collection /// </summary> /// <param name="spWeb">The sp web.</param> /// <param name="permissionName">Name of the permission.</param> /// <param name="groupCollection">The group collection.</param> public static void AddPermissionsToGroupCollec... ......

public static List<string> GetChoiceFieldValues(string listName,string fieldName, string siteCollection, string webSite) { List<string> fieldList; SPSite spSite = null; SPWeb spWeb = null; try { if (siteCollection != null) spSite = new SPSite(siteCollection); else spSite = SPContext.Current.Site; if (webSite != null) spWeb = spSite.OpenWeb(webSite); ......

You know what happens when we change the name of a SharePoint server right? It simply won’t work again unless you run the SharePoint Server configuration wizard. So what would happen if you do the same for the SSRS (SQL server reporting services) server? Some say you might not be able to connect to the reporting services again. I changed my reporting ......

Today I had to work on a project which uses VS2008 and SQL Server 2008. I haven't used SQL2008 but had used VS2008 a little bit. When I tried to install SQL2008 (Developer edition) got this strange error which says "Microsoft .NET Framework 3.5 installation has failed. SQL 2008 Setup requires .NET 3.5 to be installed." Strange thing is I had installed ......

/// <summary> /// Add a user to a Sharepoint group /// </summary> /// <param name="userLoginName">Login name of the user to add</param> /// <param name="userGroupName">Group name to add</param> private void AddUserToAGroup(string userLoginName, string userGroupName) { //Executes this method with Full Control rights ......

Check these really good articles by James Tsai. Understand SharePoint Permissions - Part 1. SPBasePermissions in Hex, Decimal and Binary - The Basics Understand SharePoint Permissions - Part 2. Check SharePoint user/group permissions with Permissions web service and JavaScript Thanks Suranja for sending me these links ......

I have a small question for sharepoint experts. :) Can we deploy a Content Type as a feature with some extended settings like "Workflow settings" and "Information management policy settings"? If so please enlighten me on how to do that ......

Type below in the command line replacing <MC name or IP> with the machine name or IP you want to connect. This works with WinXP and Vista. mstsc -v:<MC name or IP> /f -console Updated: :D There is a easy way. Just type mstsc /console in the command prompt ......

STSDEV is a simple tool for SharePoint developers. It helps you to create SharePoint projects (with solutions precisely) and deploy templates and components into the SharePoint 2007 platform. http://www.codeplex.com/stsdev This tool creates project and solution in same name and in the same folder. We all know we never put the solution and project files ......

Copyright © Madhawa Karunaratne | Powered by: GeeksWithBlogs.net | Join free