How to: LINQ with SharePoint - .NET 3.5 Framework with SharePoint Part 2

|---------|--------------------------------------------------| | Author: | Tobias Zimmergren (tobias at zimmergren dot net) | | Blog: | http:https:https://zimmergren.net//zimmergren.net//www.zimmergren.net | Introduction In my previous article title "How to: Get up and running with .NET 3.5 in your SharePoint environment" I talked about how you can manually set up your SharePoint environment for use with Microsoft .NET Framework 3.5. In this article I will talk about how you can incorporade some of the technologies used in .NET 3.5 to query a SharePoint list. More precisely, I will talk about how you easily can use LINQ…

Read More

How to: Get up and running with .NET 3.5 in your SharePoint environment

Since I’ve been a bit on the lazy side when it comes to the blog (due to multiple reasons..), I’m thinking about writing up an article-series where I’ll talk about .NET 3.5 and what it has to offer when used in conjunction with SharePoint. Any input is welcome, of course :) Introduction In this article I will try to get you up and running with the .NET 3.5 framework in your SharePoint environment, just like I’ve previously described how you can get AJAX and Silverlight 2.0 up and running: MOSS 2007: Add support for…

Read More

Tip: RequestAccessEnabled programatically using the SharePoint Object Model

I bumped into a strange problem today. It wasn’t hard to solve, but worth mentioning. To manually enable the option to request permissions to the site, you do this from Site Actions – Site Settings – Advanced Permissions – Settings – Access Request. From that page you can specify if users should be able to request permissions to the site, and who should receive the email. RequestAccessEnabled via code instead No worries so far, but this time I had to do this through code upon dynamically creating a new site. This means that we need to speak to the object model in order…

Read More

SharePoint Cross List Queries in a custom UserControl

Author: Tobias Zimmergren Url: http://www.zimmergren.net I got the question last week weather it’s possible to get items from all lists of gathered and displayed on one page. This is – like most things – possible in SharePoint without any greater efforts. With something called Queries we can use the object model to query SharePoint and get a result quite painlessly. To demonstrate a very simple example, I’ve created a very small usercontrol (for use with Jan Tielen’s SmartPart) that looks like this: This code will combine all the items in all of the TaskLists on the…

Read More

Simple Excel Services - Step by step, publishing a spreadsheet to SharePoint 2007

Author: Tobias Zimmergren Url: http:https:https://zimmergren.net//zimmergren.net//www.zimmergren.net In this post I will briefly describe how you can connect your excel spreadsheet to a SharePoint list using Excel Services. I will not go into any details as to what Excel Services is, how you get it online or what the great uses are. I will simply step you through the process of creating a spreadsheet and publish it in a document library and be able to open it in your browser. For any theory on Excel Services, consult any of the hundreds of blogs…

Read More

Zimmergren MOSS 2007 Tip #3: Publishing and displaying an InfoPath form in the browser

In this little tip I’m creating a Sample InfoPath form to be published to my Forms Library on my site and then opened within the browser when you want to edit/update the form. This is a sampleform from InfoPath: Bring up the Design Checker (Tools – Design Checker), make sure you don’t have any errors. Then click the "Change Compatability Settings…" link to get the following dialog: Make sure the "Design a form template that can be opened in a browser or InfoPath"-checkbox is checked, and enter the URL of your server with…

Read More

Zimmergren MOSS 2007 Tip #2: Retrieve stuff by code

This is by no means meant to be anything other than a small tip on how to interact with the object model. If you need more information on how to interact and code with the object model, drop me a comment. But for now this is just to show you guys out there who havn’t done any coding with SharePoint, that it’s actually a piece of cake! Start off by creating a new Visual Studio 2005 Windows Forms application. Add the following namespaces: (Administration-namespace might not be needed depending what you want to do further from this point)…

Read More

Zimmergren MOSS 2007 Tip #1: Anonymous Access

This is the first post I’m making in a series of small "how-to’s" and "aha!"-posts. It will be basic stuff that you often want to know, and why not write them down here instead of in a hidden document that I’ll forget about.. Today’s tip is: Enabling Annonymous Access to your site Begin by navigating to central administration (CA from now) Choose Application Management Choose Authentication Providers in the Application Security section Select the correct web application Click the Default Zone link Check Enable Anonymous Access and hit Save From the…

Read More

Close You've successfully subscribed to Tobias Zimmergren's thoughts on tech.
Close Great! You've successfully signed up.
Close Welcome back! You've successfully signed in.
Close Success! Your account is fully activated, you now have access to all content.