All of this is available regardless of the language. It is a big mistake to believe that ASP.NET is about programming languages. Indeed, ASP.NET is programming language agnostic. You can use Python, Ruby and even PHP (one of the .NET ports) with the framework as well.
Btw, who uses CGI any more? PHP is almost exclusively deployed as scripts executed by mod_php. No CGI. Rails deployed on mongrel with a lighttpd front is using FastCGI. CGI does not scale at all. It launches a process for each and every request; it has a tremendous overhead.