Gunnar Peipman's ASP.NET blog
ASP.NET, C#, SharePoint, SQL Server and general software development topics.
-
Show your Twitter log in SharePoint
About year ago I wrote how to display blog feeds in SharePoint sites using XML Web Part. Today is Twitter very popular and we can use XML Web Part to render Twitter feeds. To see how to configure XML Web Part check out blog feeds entry referred above. This time you have to insert user Twitter feed as XML link, by example http://twitter.com/statuses/user_timeline/12358522.rss. Click XSL Editor button and insert the following XSL to dialog window.
-
Please help - Visual Studio SharePoint development environment is very slow
I run SharePoint development environment on virtual machine. Virtual machine has 2GB RAM and 30GB disk space. Also I have no complaints over processor (I can run here two usual ASP.NET development virtual machines parallel). All other Visual Studio projects are working well except those that use VSeWSS 1.2. Hard performance problems occur usually at these moments:
-
Links 2009-02-19
NB! This blog is moved to gunnarpeipman.com
-
Debugging SharePoint solutions using Visual Studio
Debugging SharePoint solutions with Visual Studio on local machine is pretty easy. Although you can find articles about how to deploy your PDB files to global assembly cache etc it is more simpler than that. Just follow the steps below. Btw you can click on images if you want to see them on original size.
-
SPListItemCollection.GetDataTable() – be careful
Seems like I am stuck in ADODB days a little bit and I still expect that query with no results returns at least some meta data. Or at least my code gets no bombed by null references. SPListItemCollection has GetDataTable() method that returns items collection as ADO.NET DataTable objects. Be careful when using this method – if your items collection is empty then this method returns null.
-
Windows Mobile 6.5 screenshots
Guys from wmpoweruser.com have posted some nice Windows Mobile 6.5 screenshots. Feel free to follow these links to see what is waiting for us.
-
Creating cross-site lookup field in SharePoint
Cross-site lookup field is something we need almost every project that is not very small. There is no good OOTB solution but we can use field by Toby Bierman. This kind of field is easy to create because SPFieldLookup is cross-site by its nature. Basically you ave to perform the following steps.
-
SharePoint and Windows Live Authentication
In one of my SharePoint projects I had to implement authentication using Windows Live ID. I’m too lazy to code all this stuff from zero if it is possible to find already working solutions. I found out that Community Kit for SharePoint has something for me – Windows Live Authentication 1.0. After some hacking everything started to work.
-
UserProfileManager.UserExists and “Operation is not valid due to the current state of the object”
I have clean install of MOSS 2007 and I have one .aspx page that makes some request to SSP. All the code in this page is running in elevated permissions and I decide programmatically what kind of content this page shows to visitor. When I check if user profile exists I get the following error message: Operation is not valid due to the current state of the object.
-
Visual Studio add-in: CopySourceAsHTML
When I started with this blog I needed some tool to copy code snippets from Visual Studio to Windows Live Writer so I get formatted code. There is cool online code highlighter called GeSHi, but I wanted my code to look like in Visual Studio editor. After some searching I found Visual Studio add-in CopySourceAsHTML.