Did you try to set
web.Settings.JavaScriptEnabled = true;
? And what's the port number of your webapp?