Why would anyone resort to AJAX when it's so simple to do server side? What's the gain from crossing layers unnecessarily?
because the OP seemed to want to use JS rather than using server side stuff and AJAX allows you to use the minimum ASP script (admittedly it does require a fair bit of extra JS though).
If he's happy using ASP instead I agree it could be done very easily.