An Introduction To Use Episerver with MVC
Episerver has supported MVC since Episerver version 7 and since then hundreds of websites have been built using it. For those of you new to .NET, MVC is an architectural pattern that makes it easier for you to rewrite code that is easier to maintain,[...]
How To Create a View Model For Your Layout View In Episerver CMS
If you are familiar with MVC then the concept of abstracting your presentation files from your business logic should be pretty self-explanatory. If you're not sure about this, then I recommend reading up on MVC a bit. Most people are very familiar [...]
How To Display Episerver Blocks In Your MVC Views Using The PropertyFor Helper
Back in the days before MVC, when the only option of using Episerver was with web forms, we used the 'EPiServer:Property' control to render our page type properties on a page, like so: <EPiServer:Property runat="server" PropertyName[...]
How To Redirect To Another Episerver Page From A MVC Controller
When we work with Episerver, it is sometimes necessary to have to do things like re-direct to different actions or pages from an MVC controller. In today's guide, I'm going to cover a few simple ways to achieve this: In normal MVC we can re-direct[...]
How To Use A "Normal" Page Controller In Episerver?
When working with Episerver, you get very used to rendering pages and blocks, however, if you want to render a normal MVC controller, life can be a little more difficult without the right know how. Routing Before we go into the code, we need to tal[...]
The Differences Between An MVC Page Request and an Episerver Page Request
One of the biggest challenges I think a lot of developers struggle with is understanding the difference between MVC and Episerver. I have heard untold conversations between developers blaming Episerver for doing something unwanted, when in the major[...]
What Should The MVC ViewModel Be Used For in Episerver ?
We recently had a discussion in the office about the point of using a view model in Episerver, what should go in it and why it's needed. A lot of the team had very conflicting views, so I thought I'd share my views. For a quick MVC overview recap[...]