|
.NET without a doubt.
One of the things I love about .NET is that it handles all the repetative boring stuff for you. Take validation for example, all you need to do to is drop in a Validation control and assign it to a form element and ASP.NET handles both the server and client side validation for you. All you have to do is set the attributes...
Then there's Viewstate - ASP.NET will automatically maintain the values of the controls on your web form for you. It's versitile and you can disable it per control if you need to.
Automatic validation for malicios code is usefull. This is something that I bet a million web designers don't do... imagine having a simple guestbook script. It simply drops the form text box contents into the database, and outputs it back to the page when you view the guestbook. You could sign the guestbook and drop some code in the (for example, a bit og JavaScript redirecting the user somewhere else, or a popup advert, or whatever.) ASP.NET protects against this by default and can be turned off if need be.
The fact that it's a compiled language and also that you can utilise output cacheing till the cows come home makes it blindingly fast.
The code is far more stuctured. Instead of mixing PHP code in with your HTML (like you used to with ASP), with ASP.NET, you simply put your controls on the form, in place of (or as well as) form elements, and the code goes either at the top of the page or in a seperate file.
With PHP, if you don't like the language, you're stuffed. With ASP.NET, you can choose the language you code in.
It's a lot easier to get proper support on it, direct from the people who made it. You can also get properly trained and acredited in ASP.NET.
It's a lot more attractive to companies (usually larger companies and higher paid jobs) to have ASP.NET on your CV than PHP. The other thing is that everybody seems to be learning PHP these days, Microsoft developers are getting rarer and more sought after by companies who stick with Microsoft technologies. (i.e. the company I work for, we're a Microsoft partner and have a number of Microsoft Certified people working for us)
|