JSON in Javascript: crossbrowser JSON.stringify() and JSON.parse()

http://www.json.org/js.html

JSON.stringify(myObject) - converting JavaScript data structures into JSON text
JSON.parse(myJSONtext) - converting JSON text into JavaScript data structures

cross-browser script
https://github.com/douglascrockford/JSON-js


Umbraco: Get a Host name

http://example.com/query/

@Request.ServerVariables["HTTP_HOST"] -> example.com

@Request.Url.ToString() -> http://example.com/query/

Increasing Upload Limit for IIS

By default, the IIS 7 upload limit is 30 million bytes (~3.5 MB)

In order to increase it, in Web Config modify the maxAllowedContentLength attribute:

<system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="524288000"/>
            </requestFiltering>
        </security>
</system.webServer>