You are hereMonthly archive / July 2010
I spent the better part of yesterday trying to Ajax upload a File using a Web Service and Ext.Net (formerly Coolite). Let me first explain the situation I was working in.
I had a Page that renders to the browser. This page then loads appropriate UserControls from the server depending upon user actions. One of these User Controls allowed the User to upload files to the server, together with some data about the file being uploaded. A naive (and easy) approach would have been to handle the file upload in a normal ASP.NET Postback, or Ext.Net DirectMethod or DirectEvent.
I am currently working on multiple projects which require me to connect my Windows 7 laptop to different networks in a day. A couple of these networks assign a dynamic IP to the system, when I connect to them, but one of them (Windows 2003 IPv4 Active Directory based) requires me to assign a static IP address to my machine to be able to communicate with the other systems on the network.
As a matter of habit, I have made it a point to always declare variables inside a js function with the var keyword. I know many of us consider var optional for declaring a js variable. But how big a difference can this make to your code is best demonstrated by an example. Try clicking the "Click Me" button below, and analyze the output generated: