Thursday, November 28, 2013

How to solve problem: Visual Studio cannot recognize name space even already added related project as reference?

Check two projects’ target framework are same.
My case: one target framework is .Net 4.0, another is .Net 4.5

CSS box model and element vertical align issue

http://krugerdavid.com/journal/understanding-blueprintcss/
Many vertical align issues are related to margine and padding value, so understand css box model will be helpful.

Wednesday, November 27, 2013

How to solve "This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false". "

When deploy a website on IIS Server first time, get following 500 internal server error:
This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

The first thing to do is to run
turn on/off Windows features:

So can check if related features are enabled on the server




Tuesday, November 26, 2013

How to enable html source button on tinyMCE?

Add "code" into plugins list, then add "code" into button array
        tinyMCE.init({
            // General options
            mode: "textareas",
            plugins: "spellchecker,code",
            theme : "advanced",
            theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,undo,redo,link,unlink,code",
            theme_advanced_buttons2 : "code",
        });

Weinre with Browserstack

http://arafat.azurewebsites.net/2013/11/16/weinre-on-azure-in-combination-with-browserstack/