well...
you can't compare asp.net to php.
asp with php yes you can but not asp.net
asp.net uses vb.net and/or c# code, the asp works only like a translator, it isn't a real language like php.
you could compare vb.net or C# with php, but php is inferior to them in certain aspects.
just my 2 cents