Mixing logic and html can easily end up with messy, hard-to-maintain code. In MVC it’s easy to separate the parts with the controller / view-separation. But how to do it nicely in WebPages or in an Umbraco macroscript? Ultimately I want my Razor to be free from variable assignments other than for loop iterators function […]
Read moreA Razor application within an Umbraco site (notes from a current project)
We’re in the middle of re-developing a web application that previously was made as an asp.net Webforms app. The current requirements is to integrate the application into an Umbraco 4.7 site, to use a new design (delivered as a html, CSS & js prototype) as well as to change some of the underlying database workings. […]
Read moreFrån noll till en komplett webbplats med Umbraco CMS på mindre än en timme
Umbraco är ett gratis opensource-CMS byggt på Microsofts ASP.NET ramverk. Det är byggt för att vara lätt att förstå och använda, samt enkelt att bygga ut. Det är ett av de 3 mest populära nedladdade programvarupaketen i Microsofts Web Platform Installer och det används över hela världen för i stort sett alla typer av webbplatser. […]
Read moreThe MvcMiniprofiler nuget in WebMatrix (WebPages) [5 minutes]
The MVC3-guys gets a lot of fun tools, but what about us that sometimes prefer WebPages for getting things done on the web? Mostly it’s cool since we’re on the same good solid Asp.Net platform. The MvcMiniProfiler for example. I just read Scott Hanselman’s introduction to it and wanted to try on a WebPages site. […]
Read moreA first look at SlickGrid with read, insert and update (in WebMatrix)
A few days ago I had a quick look at Flexigrid and I planned to continue with it to enable updates. However when I searched a bit further I got recommendations to use SlickGrid instead and so I did. As with my Flexigrid post this post is based on what I learned in a short […]
Read moreA first look at Flexigrid (using it with WebMatrix and Json)
We all need a nice grid to display data from time to time. I found out at Stackoverflow that Flexigrid has some popularity and the images I saw of Flexigrid in action impressed me. This is a brief introduction post describing a way to use it for basic display of data in a WebMatrix (WebPages) […]
Read moreA first take on a C# HtmlFormHelper with client and server side validation
I have been looking for a pretty basic way of automating creation of Html Forms from C#. There’s ofcourse the MVC-way with scaffolding. But I’m not happy with that. I want to easily create my html tag setup in code and add / edit the fields and validation rules in a DRY way. If someone […]
Read moreAn ordinary WebMatrix app in an Umbraco subfolder
I have an ordinary WebMatrix app with a bunch of .cshtml’s, a SQL CE database, some nuget dlls and helpers. And now after very little effort I seem to be able to run it beautifully together with an Umbraco 4.7 site. I still need to test it more thoroughly but initial tests have been running […]
Read more5 min: WebMatrix + jQuery UI + json + jQuery templates
Lets use WebMatrix to create a very basic db – > ui sample using jQuery goodness. We’ll get from 0 to a working sample in five minutes (more or less). 1. The WebMatrix site First create a new site in WebMatrix using the Empty site template. 2. Database Next define a Sql CE database file, […]
Read moreWebMatrix MVC-ishness with Simple.Data and FormHelpers for CRUD
Building upon what I started with in my last post – a controller like cshtml page in WebMatrix – I have now added some functionality which means I have a basic, but working (demo state), generic CRUD workflow mimicing important parts of a regular Asp Net MVC 3 application. The code here is in an […]
Read more
November 6, 2011 