Coding Log

Things learned when moving to MVC from Webforms

  • Thursday, March 30, 2017 11:31 PM

I love working on asp.net webforms sites because I am so used to event driven concepts and methodology. Coming from java and winforms background, asp.net webforms was easy to grasp. Last year, I felt …

Continue Reading

Learning AngularJS

  • Thursday, March 30, 2017 10:17 PM

The following are things I learned in AngularJS that are not straightforward at beginning or are things that can be easily forgotten:

  1. Ng-if don’t use functions to evaluate true or false
    e.g. ng-if="…
Continue Reading

Fix ctrl + s keyboard shortcut for scripting files in the backoffice of Umbraco 7

  • Tuesday, September 1, 2015 7:24 PM

For Umbraco 7.2.8, the old macroscript files (.cshtml) from umbraco 6 and below are no longer advised to be used. But if you have no time to change all your macroscripts to partial views just yet, you…

Continue Reading

Umbraco Forms custom fieldtype

  • Monday, August 17, 2015 6:20 PM

1. Class to be placed in App_Code or in a compiled source code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Umbraco.Forms.Core;

namespace CustomFo…
Continue Reading

Umbraco web.config rule of thumb on URL Rewrite

  • Sunday, February 22, 2015 5:05 PM

There are two methods of setting up URL rewrite in umbraco. The first way is by placing all the rewrites in web.config. Second approach is by writing all the rules in UrlRewriting.config. The advantag…

Continue Reading