8 Advantages of ASP.NET over PHP
1. The code-behind allows you easier to maintain the code when it comes to large websites.
2. You have the freedom of choosing from multiple languages (C#, VB.NET, C++, etc.)
3. SQL Server is also very fast, secure, and it can store extremely large amounts of data; actually, there’s no limit;
4. With ASP.NET you get the whole .NET Class Library and the thousands of third party components as well. There are definitely much more third party components out there for .NET than for PHP.

5. The Visual Studio .NET IDE. makes coding much, much easier. It can highlight syntax, let you know when the wrong stuff is commented, do command completion, and just plain help you organize better. Visual Studio has a really nice debugger.
6. The Compiled Code (vs. PHP Interpreted Code) – .NET compiles code, such as C#, into what its creators have termed MSIL (Microsoft Intermediate Language).
7. In ASP.NET it’s easy to use threads and build asynchronous handlers in your server-side web code.
8. ASP.NET developers are paid better

6 Comments to “8 Advantages of ASP.NET over PHP”
That being said, why are you using wordpress to publish your blog?
Did you actually get to work with PHP?
I used to work in PHP, than worked in ASP.NET and now I am a J2EE developer. Just to put my 2 cents:
1. There are plenty of frameworks that let you use MVC pattern in PHP. Or you can use a template engine like Smarty to split code from presentation
2. That is true. But from a portability point of view – how often do you switch between languages? But I agree you have the choice between C# and VB.NET
3. What does SQL Server has to do with ASP.NET?
Who told you you can not use SQL Server from PHP?
4. There are actually plenty of 3rd party libraries for PHP, don’t forget that PHP in itself as a language/environment is older than .NET. But speaking only for me I can’t tell you how much code is out there written for PHP vs ASP.NET. So in the end you might be correct on this one.
5. Agree, there is no better IDE than Visual Studio.
6. It might come as a surprise to you, but PHP actually compiles it’s code in the so called “opcode”, which is like the MSIL. But, by default this is regenerated every time a script is executed. There are the so called accelerators, that cache this opcode and do not spent time on compiling again.
7. Agree, PHP is not multi thread friendly.
8. I don’t agree. IT depends on the professional, level of knowledge, experience, and many other factors.
sbvmtykq…
sbvmtykq…
and you don’t even use ASP.NET for your blog. you are using WordPress which is a PHP application
))
I have been with .Net for over 10 years and have a book on windows programming.
I just switched to php for all my web projects.
Just found this post now and wow, dude, you’re just wrong.
1. Using Php design patterns such as MVC it’s very easy to maintain large sites with seperation of all layers.
2. Not sure this is actually a point at all. Sure, if you already know the net language it’s an advantage but Php is easy to learn.
3. What has sql server got to do with anything? Sure it comes with net but mysql, or even sqlite, are just as secure, and you can use them with net just like you can use sql server with php.
4. Components for net are typically commerical, meaning you pay for them. Php extensions are typically free as in free. It’s also my experience that a lof of these commerical net components are filling in gaps left by the net framework. Custom controls for instance.
5. Yes, the VS IDE is nice but so is eclipse, netbeans and a dozen or so others, all free and open source. They have the same if not more functionality than VS and can work with the net framework too.
6. How is this a point as to why asp is better than php? It doesn’t even make sense. Php compiles faster and runs faster, it doesn’t have the overhead of the net framework.
7. This is true, but for a website you shouldn’t be using threads at all really.
8. This is the one point I can give you, unless you’re working for yourself!
I find it ironic you’re using WordPress as well given that you’re praising asp. I would hate for some beginner to find your post and actually believe what you’ve written, maybe you do as well, not having a go but please just learn some basics first.