Blog entries tagged with C#

Querying EPiServer PageData using LINQ

by: Johan Olofsson

As I’ve been somewhat involved in the development of the new DynamicDataStore in EPiServer CMS 6 , and especially its LINQ-support, I started to think that much of the same concepts should be able to apply on EPiServer Pages as well to provide a... [ Read full article ]

08 June 2010  9 Comments


A stab at the GoogleAnalytics API

by: Johan Olofsson

This is a first shot at creating a EPiServer CMS module that integrates Google Analytics statistical data using their (Google's) recently published API . The module is released under open source up at Code Resort, https://www.coderesort.com/p/epic... [ Read full article ]

17 June 2009  6 Comments


A typechanging ToArray()

by: Johan Olofsson

In my last post, Joining Strings , I showed how a small extension to the IEnumerable<T> type can come in handy to ease the task of joining a string together from an enumerations of complex types. Another little nifty trick is to define a universal... [ Read full article ]

12 June 2009  1 Comments


Joining strings

by: Johan Olofsson

I often face a situation where I want to “join” a string together using some separator, but have an enumeration of complex items. Say for example that I have an array of Contacts, each consisting of a firstname and a lastname, something like this:... [ Read full article ]

11 June 2009  2 Comments


Generating Excel reports

by: Johan Olofsson

I guess that we all have had to create some Excel files for doing reports from a web page at one time or another, and one quite common approach is to simply render the data as comma/tab-separated text and then specify some appropriate Response... [ Read full article ]

11 February 2009  2 Comments


Silently migrating users from EPiServer 4.x to CMS 5

by: Johan Olofsson

This is an effort to work around the problem with migrating EPiServer 4.x users to the new Membership/Role-provider architecture used by EPiServer CMS5 without having to reset all the users passwords. (Passwords are stored as a calculated hashed... [ Read full article ]

06 October 2008  3 Comments


StickyTabs for EPiServerCMS5

by: Johan Olofsson

Or: “an exercise in hacking EPiServers Edit mode!”   I’ve always found it a little awkward having to do repetitive tasks spanning more than one page in EPiServer’s Edit mode as the selected tab is reset to the default “View” tab when I click on a... [ Read full article ]

23 September 2008  4 Comments


Some ActiveDirectoryRoleProvider issues

by: Johan Olofsson

There has recently poppep up some issues/questions related to the ActiveDirectoryRoleProvider that we made available for download (including sources), and as I have been somewhat involved in investigating them I thought I should share the results ... [ Read full article ]

18 September 2008  6 Comments


Friendly URL with no rebasing

by: Johan Olofsson

I got a question regarding EPiServer CMS friendly url rewriting about wether it is possible to make the rewritten url's relative to the site's root rather than the context of the requested page. If you look at the html source for a page rendered b... [ Read full article ]

01 July 2008  2 Comments


Hack: Faking HttpContext under EPiServer CMS5

by: Johan Olofsson

In my previous posts, I showed how one can "fake" a web request by creating a HttpContext and then assign it to the writeable property HttpContext.Current. Now, there is a problem using this approach under the original release of EPiServer CMS5,... [ Read full article ]

23 June 2008  5 Comments


Hack: Getting the html from a PageData in EPiServer CMS5 Part2

by: Johan Olofsson

Ok, as you found out if you tried to use the html that was generated using the code in the previous post, you'd notice that all links were rendered in the good ol "classic" style: "templates/page.aspx?id=3&language=en" So, how can we fix that when... [ Read full article ]

18 June 2008  0 Comments


Hack: Getting the html from a PageData in EPiServer CMS5

by: Johan Olofsson

I've gotten some requests for sample code showing how to get the resulting html for a EPiServer PageData so I thought I would share some ideas I had around this. The question is: "I have got a PageData instance. Now how can I (server side) get the... [ Read full article ]

18 June 2008  13 Comments

EPiTrace logger