Showing posts with label Web Programming. Show all posts
Showing posts with label Web Programming. Show all posts

Sunday, September 01, 2013

Enable directory browsing for IIS 8 Server Express

Visual Studio Express 2012 for Web Update 3 comes with IIS 8 Server Express. By default, the server is configured not to list directory contents for security reasons. But since I am using it for development purposes, security is not my main concern but speed of development.

When trying to browse a directory, you may get this error message:

HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory.

To enable browsing do:
  1. Open console (cmd.exe)
  2. Change directory to C:\Program Files\IIS Express
  3. Type appcmd set config /section:system.webServer/directo
    ryBrowse /enabled:true
    to enable browsing.

Wednesday, September 08, 2010

Embed Javascript in blog post

This shows a simple example of embedding Javascript in blogger. Not sure if this is supported as it messes up the anchor tag when post is edited using "Compose" instead of "Edit HTML".

Click on "Hello world" below to see Javascript in action.
Hello world


The key to embed the script is the CDATA tag.
Hello world


Reference(s):
Adding javascript to Blogger posts (link)

CPP Quick Guide

Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...