How do I perform a 301 redirect for all old .asp pages?
Why not use Drupal 7's core URL redirect interface? It has an option for 301 redirects: Configuration > Search and metadata > URL redirects.

I like it because it captures stats on how many redirects are happening.