Umbraco 7 version control

If you had request from your customer to create a web site with extra possibility that allows publishing, editing and modifying content, static or dynamic data, you was always in dilemma should we use CMS (Content Management System)?

There is lot of different CMS systems (programming languages, different functionalities, community etc.). CMS is good to be used like it was expected. But if you want to change something, that can be nightmare sometimes. Then you start thinking, would be it easier without CMS?

Half a year ago I had a project that required CMS to be used. Based on the team knowledge, I decided to go with C# solution.

It was reasonable options because it has great integration with C# MVC4 and it has grate community to be consulted. And it was really easy to set up development environment and to introduce this to team members.

One mayor problem that I had to solve was version control of data that is dynamically created using GUI (Document Type, Template and Content). First idea was to backup data base and restore it on staging and production environment. But this solution is ok, just until client doesn’t generate any content. And because idea of this site is to use CMS to generate new content (new pages etc.) this solution was not possible. So I a had to find different solution.

So I was thinking, if it is not possible to restore data base (this will revert changes made on staging or production) , maybe I can track changes and than apply them on staging or production? At the end, I didn’t found any free tool that can help me in versoning changes made automatically by Umbraco on data base when something was added trough GUI.

Then, I finally found solution how to do it. Continue reading →

.NET MVC4, Ajax.BeginForm() and @Html.Action()

Purpose of this post is to explain how much time you can save using some of the basic .NET MVC4 features like Ajax.beginForm and Html.Action().

The example will be really simple to understand but it will contain enough information, so you can build more complicated stuff using same principles.

I will demonstrate how you can create simple address book page. On this page you can add new address and overview existing addresses. At first look, nothing special, but there is one thing. Data in table should be refreshed automatically using Ajax when new address is added using Ajax also. So basically we need to have all this without page refresh.

So when someone visit address book page, web form for new address is shown. If there is some address already, table is shown. If there is no existing address, table is hidden. User should be able to add new address via Ajax call and table should be refreshed also. Continue reading →

Stream video on your web site

This simple article will show you how to stream video content from your web camera to your web site. To do this, you will need web camera, computer that has access to internet, access to your rooter and Yawcam.

Yawcam is a webcam software for windows written in java. The main ideas for Yawcam are to keep it simple and easy to use but to include all the usual features. One of Yawcam interesting feature that we gone use in this article, is called video streaming. Continue reading →

.NET MVC 4 SimpleMembership

        There are number of ways to provide authentication support for your web site. You can create your own, reuse some existing third party solution or you can use ASP .NET authentication model. Using ASP .Net authentication model is simple and it supports a number of models such as form, windows, passport etc.

Continue reading →