Because I'll forget if I don't write it down.
RSS icon Email icon Home icon
  • Calling Code-Behind Method from JavaScript

    Posted on March 23rd, 2009 Dave 8 comments

    It shouldn’t be too hard should it? You want to use some Javascript on the client-side to call a method on in the Code-Behind of your aspx page – how hard can that be? Surely it must be possible.

    I was developing a DotNetNuke module (so the code below is VB.NET and not C#) which would allow the user to search for locations using Virtual Earth and store the latitude and longitude (as well as the zoom level) in a database.

    The problem is that the Virtual Earth API is a Javascript (and hence Client-Side) technology and in the normal scheme of things cannot access .NET code on the server. So how do you do it? How do you get a Javascript function to call a Server-Side method – Is it even possible?
    Read the rest of this entry »

  • Problems with the WAMP Stack

    Posted on March 10th, 2009 Dave 1 comment

    Had an interesting problem at work today trying to configure the WAMP Stack on a Vista PC.

    I needed this configuration to evaluate the Joomla CMS application for an internal project. I had some minor experience with Joomla and the LAMP stack on a Ubuntu Linux system but as it didn’t fit my needs I never got very far into it. Now I had a change to continue my climb the learning curve and get paid for it – neat huh!

    Read the rest of this entry »

  • Recording Internet Radio Stream with Ubuntu

    Posted on March 4th, 2009 Dave 1 comment

    A friend of mine recently started co-presenting a show on a local radio station but due to the timings I was unable to listen to it live. I thought about trying to record it off the radio but this was not going to be straightforward as I would not be in when the show started or finished – and this is the 21st century for heavens sake, why was I thinking about going back to cassettes and ‘pressing play and record as the same time’? Surely there had to be another way, preferably one that meant I could get the show in MP3 format so that I could listen in the car, at the gym or at work.

    A podcast was what I needed but unfortunately the radio station in question did not produce one. However, they did provide an live stream – great, now what is the equivalent to pressing play and record at the same time on a computer?

    There are probably ways of doing it in Windows using Media Player or iTunes (I don’t know because I haven’t checked) but where was the fun in that? I wanted to see if Ubuntu could do it – for free and maybe learn something in the process!
    Read the rest of this entry »