Blog entries tagged with C#

PowerShell for EPiServer – cheat sheet – Part 2

by: Adam Najmanowicz (Cognifide)

  Most of this post is also based on the Microsoft’s Windows PowerShell Quick Reference however despite the sharing scripting runtimes the nature of the both shells differ considerably as described in the previous post: PowerShell for EPiServer –... [ Read full article ]

10 May 2011  0 Comments


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


Building a Twitter Workflow

by: Allan Thræn

For a long time I’ve wanted to play more with Windows Workflow Foundation (WWF) in conjunction with EPiServer, and today I finally did  it. And luckily it turned out to be a lot less scary than I had imagined. First of all, I decided to check out ... [ Read full article ]

06 January 2010  3 Comments


Easy Enum property for EPiServer

by: Adam Najmanowicz (Cognifide)

One of the most frequently and eagerly used programming constructs of the Microsoft.Net Framework is Enum. There are several interesting features that make it very compelling to use to for all kinds of dropdowns and checklists: The bounds factor –... [ Read full article ]

26 December 2009  0 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


Aggregating Feeds

by: Mats Hellström

I played around with the SyndicationFeed the other day and found that it was really useful in combination with the link collection property in EPiServer CMS. By using the trusty old friend LINQ you can aggregate the feeds, sort them and databind t... [ Read full article ]

12 June 2009  0 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


Page Type Tool - Strongly Typed Properties

by: Fredrik Tjärnberg

There has been quite some buzz in the “EPiSphere” around the property framework lately. It turns out that a lot of smart people has spent time on finding the way to strongly typed properties in EPiServer…. and so have I. Back in March I posted the... [ Read full article ]

23 May 2009  12 Comments


SoakIE – a Web Server Stress Tool with a twist

by: Adam Najmanowicz (Cognifide)

Last week or so ago a couple of friends in another project in Cognifide has run into a wall while trying to load test their website. the problem was as follows: The website is highly AJAX based – the page merely loads a stub in the initial request... [ Read full article ]

10 May 2009  0 Comments


SoakIE – a Web Server Stress Tool with a twist

by: Adam Najmanowicz (Cognifide)

Last week or so ago a couple of friends in another project in Cognifide has run into a wall while trying to load test their website. the problem was as follows: The website is highly AJAX based – the page merely loads a stub in the initial request... [ Read full article ]

10 May 2009  0 Comments


Revisited: Northwind Page Provider

by: Allan Thræn

Back in august of last year I published a post with a small coding example on how to make a Page Provider for the classic Northwind Database. Since it has turned out to be quite popular as a demo for Page Providers (I guess geeks get nostalgic ove... [ Read full article ]

27 April 2009  43 Comments


A voyage with the SharePoint Connector

by: Dan Matthews

Last week I had to set up a demo to a potential partner to show how EPiServer can be used to pull information together within an Enterprise and expose it in different ways. After giving it some thought, I decided that the best way to show this wou... [ Read full article ]

14 April 2009  14 Comments


Advanced Language Manipulation Tool for EPiServer

by: Adam Najmanowicz (Cognifide)

Have you ever (or have your customers) created and edited a page in one language only to realize that their selected locale was wrong? Have you ever wished you could delete a master language branch of a page  after creating its localized counterpa... [ Read full article ]

06 April 2009  0 Comments


Get out of my way! … or the story of file metadata for VirtualPathProvider in EPiServer

by: Adam Najmanowicz (Cognifide)

Immediately after you implement the VirtualPathProvider proxy from my previous post you will notice a one fairly serious lack in it. Namely all the files within that provider will be hiding behind the registration form. That is not cool for a coup... [ Read full article ]

17 March 2009  0 Comments


Simple registration for files served by EPiServer

by: Adam Najmanowicz (Cognifide)

With the culture of knowledge sharing and open source spreading, everyone races to show they have something valuable that you may want. And while you may not ask for money for your content you may still want to get something in return, say a... [ Read full article ]

15 March 2009  0 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


Please dev's, you are making a framework p2. Dont referer to fields, use a Property.

by: Anders Hattestad

A while ago I had a blog where I pointed out too the developers that they are making a framework and asked them not too use private/internal. The reason for this request was that its make our life as a developer much easier when we can reuse code... [ Read full article ]

08 February 2009  5 Comments


Automatically Load Property Types as Dynamic Content

by: Allan Thræn

Dynamic Content is cool! Really cool. However, even good things can always get better. Back in october last year I wrote about how to automatically register dynamic content by attaching an attribute (like all other plugins in EPiServer)... [ Read full article ]

26 January 2009  2 Comments


WebParts based Sidebar for EPiServer – how to use it?

by: Adam Najmanowicz (Cognifide)

Once you’ll update the framework to the extended one, you will immediately notice that… nothing has changed. Hmm… did something go wrong? Well, not really. By default the framework will be run in the “legacy mode”. Thanks to an old article by our... [ Read full article ]

08 January 2009  0 Comments


WebParts based Sidebar for EPiServer – the motivation and specification

by: Adam Najmanowicz (Cognifide)

Back in the day when we started designing our last project we’ve been presented with a following problem – a big number of templates with slightly different sidebars. Hmm… Is sidebar a part of content? No, rather not. We don’t want the editors to... [ Read full article ]

08 January 2009  0 Comments


Page events, what events are registered

by: Anders Hattestad

When you make some code based on events it's easy to lose control on what events are registered where. I therefore made my self a small report to inspect the different page events and to show me the registered events for each of them. The differen... [ Read full article ]

19 December 2008  8 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


Choosing the MasterPage through a Dynamic Property

by: Allan Thræn

Yet another answer to a question I've heard several times: "How do I make it possible for the editor to change the Master Page used for the site." It's easy to image a lot of uses for this (especially in an enterprise environment), and it's actual... [ Read full article ]

24 September 2008  0 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


Edit Page - Shortcut/External link tab

by: Marek Blotny ( Cognifide )

Shortcut/External tab in edit mode is a useful thing. You can create different types of links there, you can also specify target frame which allows you for example to open external links in a new window. It all sounds great but do you really use i... [ Read full article ]

03 September 2008  0 Comments


404 to Search

by: Jacob Khan

The exception 404 means that a page could not be found or opened. There is an open source 404 handler for EPiServer CMS 4 on coderesort . Ted Nyberg has written a great blog post about it here . As Ted states the issue is often going from your... [ Read full article ]

01 September 2008  2 Comments


Building your own Page Provider: Northwind

by: Allan Thræn

EPiServer CMS 5 R2 CTP is awesome! I've now finally found a few hours to play around with some of the new cool functionality and I really like what I see. In particular I've grown fond of custom page providers. It's extremely cool to be able to... [ Read full article ]

08 August 2008  6 Comments


Pimp up your search I

by: Allan Thræn

Let's face it, the EPiServer CMS built-in search isn't the best in the world. Neither is it intended to be - there are a lot of 3rd party search engines available for EPiServer that are great at what they are doing - and in general I highly... [ Read full article ]

21 July 2008  8 Comments


Output EPiServer Pages as PDF

by: Allan Thræn

Got a question today from a partner about how he could make a "Download this page as PDF" functionality on a customers web site. I suppose there's quite a lot of ways to do it (just as many as there are HTML -> PDF libraries out there) but I... [ Read full article ]

07 July 2008  2 Comments


PlugInSettings - Use this class if you wish to store simple relational data ...

by: Marek Blotny ( Cognifide )

Recently I had to create plugin for editors (EPiServer 5) which would allow them to change some internal settings. It's of course possible to create a new page type for that but it's not always the coolest approach. If the requirement is to provid... [ Read full article ]

02 July 2008  0 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


Text-Image generation - VirtualPathProvider for EPiServer (and ASP.NET in general) – Part 2 (configuration)

by: Adam Najmanowicz (Cognifide)

The configuration of the module is a descendant of any EPiServer Virtual Path Provider configuration. This aspect is fairly well described on EPiServer pages. A sample configuration for the TextImageVirtualPathProvider can look as follows [ Read full article ]

24 June 2008  0 Comments


Text-Image generation - VirtualPathProvider for EPiServer (and ASP.NET in general) – Part 1

by: Adam Najmanowicz (Cognifide)

The module code is already available on Epicode SVN, the relevant wiki pages will be following as soon as documentation is complete. The use case is as follows: The client wants the site to look exactly as in a template provided as a image, the te... [ Read full article ]

23 June 2008  0 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


File upload in XForm

by: Jacob Khan

Hello, My name is Jacob Khan and I am the newly employed rookie researcher at EPiServer. One of my first projects was building a small EPiServer site in order to learn more about the partner experience of EPiServer. One feature of the site was tha... [ Read full article ]

13 June 2008  9 Comments


CogniScale - virtual hosting made easy

by: Adam Najmanowicz (Cognifide)

We’ve not been talking much about it and that’s partially my fault as well (busy with other projects), but Cognifide has a really cool initiative called Cognifide Labs that we intend to grow over time. The plan is to devote up to 10% company time... [ Read full article ]

02 June 2008  0 Comments


Blog Template for EPiServer CMS 4

by: Allan Thræn

The old Research Team site isn't completely dead yet. It's still getting expanded with new cool freebies for EPiServer CMS 4. Just now, Ruwen and I published a set of nice Blog templates for v.4, which makes it easy to build your own blog, complet... [ Read full article ]

06 March 2008  5 Comments


When and Where to attach DataFactory Event Handlers

by: Allan Thræn

This is a classic problem with a lot of solutions: You're building a fancy plug-in for your favorite CMS (EPiServer of course), trying to fulfill your lifelong ambition to become an EPiServer MVP , when you suddenly realize that you your plugin to... [ Read full article ]

06 March 2008  3 Comments


NotSupportedException: The property Title is read-only

by: Marek Blotny ( Cognifide )

Few lines of code which are quite self-explanatory and used to be working in pre-EPiServer 5 era. // get page instance PageData page = DataFactory.Instance.GetPage(new PageReference(id));// set new value page.Property["Title"].Value = "here comes... [ Read full article ]

04 March 2008  0 Comments


NotSupportedException: The property Title is read-only

by: Marek Blotny ( Cognifide )

Few lines of code which are quite self-explanatory and used to be working in pre-EPiServer 5 era. // get page instance PageData page = DataFactory .Instance.GetPage( new PageReference (id)); // set new value page.Property[ "Title" ].Value = "here... [ Read full article ]

04 March 2008  0 Comments


Replacing Property Rendering Using Adapters

by: Mari Jørgensen

  My colleague, Steve, wrote an excellent post on how the new property architecture in CMS 5 allows us take control of the property rendering . This post is a followup, illustrating the same example as Steve did, but this time using Controls... [ Read full article ]

02 March 2008  10 Comments


EPiServer 5 vs. EPiServer 4.61 part I - GetPage()

by: Marek Blotny ( Cognifide )

We have been using EPiServer 4.61 intensely for over a year now, during this time we have managed to deliver a few successful projects on this platform. It took us some time to learn how to use EPiServer effectively. Release of EPiServer 5 was... [ Read full article ]

01 March 2008  0 Comments


EPiServer 5 vs. EPiServer 4.61 part I - GetPage()

by: Marek Blotny ( Cognifide )

We have been using EPiServer 4.61 intensely for over a year now, during this time we have managed to deliver a few successful projects on this platform. It took us some time to learn how to use EPiServer effectively. Release of EPiServer 5 was... [ Read full article ]

01 March 2008  0 Comments


EPiServer Pie with freshly cut MVC

by: Allan Thræn

Or how to integrate ASP.NET MVC into an existing WebForms Web Application Project.   After having studied Scott Guthrie's excellent posts on ASP.NET MVC and attended a pretty good Tech Talk at Microsoft yesterday I decided the time was right to... [ Read full article ]

21 February 2008  8 Comments


Nightly Fun with 301

by: Allan Thræn

WARNING : GEEKY STUFF.   Do you ever have difficulty falling asleep at night, because your brain begins to code the moment your tired body hits the bed? Well, I do every once in a while. And then I know that I can either toss and turn all night or... [ Read full article ]

14 February 2008  3 Comments


EPiServer and the Visual Web Developer 2008.

by: Fredrik Tjärnberg

I've heard the question "Can we use the Web Site model of Visual Studio to build our EPiServer solution" a couple of times and up until now the answer to this question have been "No!". The reason for this is that there is no way to exclude files a... [ Read full article ]

24 January 2008  4 Comments


UpdatePanel in EPiServer CMS

by: Johan Björnfot

In the released version of EPiServer CMS 5 (version 5.1.422.4) there is a problem when using UpdatePanel when FURL (Friendly URL) is activated on the site. The problem occurs because the AJAX callbacks from UpdatePanel will in some cases update th... [ Read full article ]

10 December 2007  4 Comments


Using LINQ to read opml

by: Ruwen Jin

I need read opml and translate it to my objects. Instead of work with Xml Document I use System.Xml.Linq :   using System.Xml; using System.Xml.Linq; ... ...   XmlReader reader = new XmlTextReader(opmlUrl); XElement opml = XElement .Load (reader);... [ Read full article ]

05 December 2007  0 Comments


The &rdquo;as&rdquo; operator in C#

by: Peter Hultgren (Sogeti)

I don’t know if it’s just me, but I don’t see people using the ”as” operator in C# a lot when I read code. It’s a shame, because it’s really nifty. For example, you can use it like this when you retrieve something from the cache: string s =... [ Read full article ]

04 December 2007  2 Comments

Tags:


Is EpiServer a hard-shelled clam or what?

by: Adam Najmanowicz (Cognifide)

As much as I seem to be enjoying my trip with EpiServer there are some little things I don’t seem to appreciate all that much and I’m not quite sure how to work around some of them in an elegant way. EpiServer has a fairly advanced way of dealing... [ Read full article ]

30 August 2007  0 Comments

Syndications


Archive


Tag cloud

EPiTrace logger