My lessons from life and software development

  • Substitute for onLoad with WebParts

    I’ve got a project where I’m using google maps within an ASP.NET web part in an update panel. The google maps code requires you to run some javascript as soon as the page loads. Usually people put this in <body onload=x> or use javascript: window.onload=x, but when I did those either the method wouldn’t run,…

  • Google maps: is null or not an object error

    I’ve got a google maps application on an ASP.NET ajax enabled page through an update panel. I had used setInterval to run a javscript function periodically and update the markers on the map. Over time, I noticed that when the map was updated through ajax while the javascript code was executing, i got the one…

  • Dundas Gauge – Setting pointer values

    I was having trouble getting Dundas Gauge for ASP.NET to reflect the value that I was assigning it. For some reason, the needle always pointed to the default 0. I was using this code: //create circular gauge GaugeContainer gauge = new GaugeContainer(); CircularGauge circleGauge = new CircularGauge(); gauge.CircularGauges.Add(circleGauge); //scale CircularScale scale = new CircularScale(); scale.Minimum…

About Shane

Shane is the creator of musician’s tool SongKeyFinder, and developer inspiration CodeKindly