views:

177

answers:

3

I just want to know why people use dot net over something like php for web dev. What are the advantages? Is it true that .net generates your javascript and html?

+2  A: 

WebForms provides an abstraction of Web development that mimics classic Windows development. plus, the C# and VB.NET can be used to develop desktop programs, and the business object libraries that can be shared between ASP.NET and Desktop applications easily.

I know developers who develop ASP.NET applications with only rudimentary knowledge of CSS/HTML/Javascript, but you cannot completely forgo that knowledge -- an ASP, like PHP page, is mostly HTML.

Jimmy
+1  A: 

I'd use .NET for web programming because of it's powerful framework. (I.E. all the System.* things.)

You can generate your JS and HTML using WebForms and the WebForms designer, but if you're the person who values POSH design techniques, this isn't really an option.

Basically, it just comes down to a matter of opinion, whether you want to use the built-in WebForms and ASP.NET MVC frameworks with .NET, or whether you long for CGI-style PHP or mod_perl scripts.

MiffTheFox
+2  A: 

I use it because it's really powerful and the IDE (Visual Studio, Intellisense) is amazing. You can do anything from creating a quick app to a full-blown enterprise app relatively easy with a lot of the boring stuff abstracted out. Of course if you like the boring stuff you have the ability to modify it as well.

But I would say that Intellisense is why I use it.

Jason