Tuesday, June 29, 2010

SharePoint 2010 + ADFS 2.0

A client wants us to provide them with an intranet site, in which several organizations are able to work together, but without adding any trust between their independent AD's.

The solution was to use ADFS 2.0. There is a lot of information going on, but I found it quite hard to find exactly what I wanted, in an easy and fast manner.

Here it is for you:
http://blogs.pointbridge.com/Blogs/nielsen_travis/Pages/Post.aspx?_ID=33

Friday, June 25, 2010

Send custom Response on Page_Load

Ever had a scenario where you'd like to stop the current Response and give an entirely different one?

From ASP.Net 2.0++, you'll have to not only do a Response.End(), but before that a HttpContext.Current.ApplicationInstance.CompleteRequest();

Why? Because Response.End() no longer stops the page processing, so if you, for instance, are sending a file to the response stream, for some reason, it will get the page's HTML in the end of the file's contents.

Special thanks to a post by Rick Strahl, here.