So many people assume that ASP is dead. After all, at the time of this post little brother ASP.NET is almost 10 years old. That is like 32 human years, which makes ASP 56 and counting. It is true that ASP’s family at Microsoft has favored his younger brother for his depth and resourcefulness. They have all but cut off support for ASP, and most have turned their back on him. If you are one of those individuals I have news for you. 56 is far from dead and ASP does not need Microsoft’s support. He is mature, stable, and has a world of experience. Many articles have been written and ASP is rich in resources. As long as Microsoft does not shut the doors to IIS for ASP, then he will be there to run your code.
All joking aside, the fact is that ASP is a great scripting language. ASP.NET is just bit too cumbersome for some of our simple projects. I can write an ASP app in notepad and it will handle about 95% the projects that come across my desk. There are still plenty of happy and productive ASP developers around today that just do not feel the need to switch yet. You can do just about anything with ASP. In fact, everyone did do anything with ASP for a decade before ASP.NET was ready for prime time.
If you are like me and still have some love for ASP this post is for you.
Here is an example of ASP Localization. It uses the “SetLocale” method and works in much the same way as ASP.NET, but far more simple.
As a bonus this application allows for a separate currency than the default Locale (In case you want to sell World Cup T-Shirts in EUROs, instead of Pounds). This application has a drop-down to change locale and currency. There is a function to display the correct formatting and a function to normalize the data back to US format so it can be saved to the database. It will also put that currency symbol on the correct side of the number (for those of you in France).
Enjoy!