Navigation and service panel


Content

Posts in category "ASP.NET MVC"

Behavior-driven Development in .NET

By Dawid Dworak on 17. June 2016, No comments

Good communication between business and development is one of the biggest predictors of project success. It is proved by The Standish Group CHAOS report. It identifies user involvement (15.9%), executive management support (13.9%) and clearly stated requirements (13.0%) as the greatest factors of project success. Behavior-driven Development (BDD) is a software development process that significantly improves communication between business and IT and elevates TDD to the next level by filling a gap between user stories, their acceptance criteria and developed code.

read on
Categories  ASP.NET MVC  Best Practice Tags  BDD  TDD  .NET

The Sitecore MVC puzzle

By Kevin Brechbühl on 24. June 2015, 1 Comment

I got the chance to hold a presentation at the Sitecore User Group Conference Europe this year in Eindhoven (NL). My topic was "Sitecore MVC Advanced". This blog post should give you a recap of my session. You can also get the slides and there is also a recording of my session available.

read on
Categories  ASP.NET MVC  Events Tags  sugcon  session  presentation

Get url for area controller action from a View Rendering

By Kevin Brechbühl on 4. February 2015, No comments

Sitecore doesn't support Mvc Areas out of the box, but of course we can use these anyway. This post shows how to resolve an url for a controller action from a Sitecore View Rendering within an area.

read on
Categories  ASP.NET MVC  Best Practice Tags  Mvc  Url  Areas

Custom date format in Sitecore MVC forms

By Kevin Brechbühl on 10. November 2014, No comments

Usually in .net solutions, date formats are based on the current culture. In Switzerland the situation is a bit complicated: We have three cultures (German, French and Italian) but almost every website also covers English, which is not an available culture. This means we don't have a valid combination of language and format infos. With this blog post I want to show a way to use custom date format in MVC forms.

read on

Dependency Injection sets you free from Conditional Statements

By Dawid Dworak on 10. September 2014, No comments

Conditional statements have been present to developers for nearly as long as the programming itself. Unfortunately in the world of OOP they are very often abused even by most exceptional developers and thus increase complexity of created applications. There are number of campaigns all over the world that raise awareness of effective use of software design principles and practices first of all by removing bad IFs and replacing them with alternative constructs. Dependency Injection make it possible to enhance the maintainability of code and let developers stay away from overwhelming amount of conditional statements.

read on

Differentiate ViewModels and DomainModels in view renderings using Glass Mapper

By Kevin Brechbühl on 29. August 2014, No comments

In an ASP.net MVC application, DomainModels and ViewModels are widely used. But often it's not clear what these are for and how we should separate them. This blog post shows my architectural point of view about how to differentiate ViewModels from DomainModels, how to use them in theory and how to integrate them into Sitecore view rendering with Glass Mapper.

read on

Add custom attributes to form tag with Sitecore MVC

By Kevin Brechbühl on 18. August 2014, No comments

A form tag often needs additional attributes like the css class. Because in Siteore MVC we can have multiple renderings and controllers on one page request, this can't be done exactly the same way as in pure ASP.NET MVC. In this small blog post I will explain you why and how you can do this with Sitecore MVC.

read on
Categories  ASP.NET MVC  Best Practice Tags  Attributes  Forms  Html

Sitecore Glimpse

By Tobias Studer on 11. August 2014, No comments

Glimpse is an amazing diagnostics platform for the web. Providing real time diagnostics & insights. Adam Conn did a great job extending the tool with some Sitecore information. He gave me the opportunity to extend it with an Sitecore MVC tab and create NuGet packages for Sitecore 6 and 7 for easier distribution.

read on
Categories  ASP.NET MVC  Tools Tags  glimpse  mvc  diagnostics

Sample Items in Playground nach ASP.NET MVC konvertieren

By Kevin Brechbühl on 15. May 2014, No comments

Nachdem ein neuer Sitecore Playground aufgesetzt wurde sind bereits einige Sample Items und Sample Renderings vorhanden. Leider sind diese alle in ASP.NET WebForms umgesetzt und nicht in ASP.NET MVC. In diesem Beitrag möchte ich euch ein Package zur Verfügung stellen, um dies ganz einfach zu ändern.

read on