Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 470 Vote(s) - 3.48 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What's your choice for your next ASP.NET project: Web Forms or MVC?

#1
Let's say that you will start a new ASP.NET web site/application tomorrow. Would you chose Web Forms or MVC, and why?
Reply

#2
ASP.NET MVC because I want to learn how to use it.
Reply

#3
I would choose MVC simply because it's designed to be testable and mock'able. That would be the major factor in my decision.

WebForms are much more difficult to Unit Test because they're rooted in several concrete classes that are difficult, it at all possible, to Mock. These include HttpContext, HttpResponse, HttpRequest and HttpCookie.

MVC is designed to be testable and it's API greatly facilitates doing so.

Good article on the testability of MVC: [

[To see links please register here]

][1]


[1]:

[To see links please register here]

Reply

#4
I would currently choose ASP.NET MVC for 2 reasons: 1) I want to learn to master it. 2) There is already a great community forming around ASP.NET MVC and everyone seems to have very positive entergy regarding it's use. I can't wait to see where it all ends up and I want to be part of it.
Reply

#5
I would like to go with MVC. I always seam to be fighting the abstraction when I work with WebForms.

To use WebForms effectively you actually need to know more about how the web works than if you use something like PHP. I find myself using `<asp:Literal` instead of `<asp:Label` to avoid putting a `<span>` around the text and running labs to figure out the order of events, etc.
Reply

#6
If I were starting today I would probably still stick with webforms because of the volume of knowledge and resources surrounding it.

That said I really want to give MVC a shot and as others have mentioned the excitement within the community means it wont take long before there is a lot of support for it.
Reply

#7
it really depends on the project, since i havent build anything with MVC and if the project has a short time delivery, i will probably find some hinders in MVC that could make me not to deliver the project in Time.
Reply

#8
I wait for MVC on .net for a long time.
I think more than 90% people will choose MVC rather than webform.
Reply

#9
MVC baby! And JQuery!

Edit: OK, it's fair enough to say my response warrants a little more info.

I'd choose MVC for the following reasons:

1. I have worked in Rails and found it highly productive. ASP MVC has borrowed so much from Rails that it feels like a direct port in some ways (and that's a good thing in my mind).
2. AJAX is important, but I *hate* the Microsoft "Atlas" approach to AJAX (whatever the product name is these days). If you're going to do AJAX, you need to understand the HTML and the JavaScript. Frameworks that hide that from you are hurting you more than they are helping you (IMO).
3. JQuery has taken over the world it seems in terms of JavaScript frameworks. ASPMVC is well-integrated with it. I want to learn it, so there's great alignment here.
4. The whole "control" model is a neat idea, but it is more complicated than it appears on the surface. For example, look around on SO for questions about how a UserControl can find its highest level containing control and so forth. The control hierarchy abstraction has leaks in it. Grids are great if they do what you want out of the box, but it's very very hard to customize them to do something they weren't made to do. And the best grid controls on the market (the ones that are highly customizable) are large, bloated, overly complicated beasts. Maybe that shows us that we should drop back down to HTML and let loops in our views do that kind of thing for us.
5. I believe I can build complete, beautiful apps in ASPMVC much faster than in ASP.Net (and I've got some years of ASP.Net under my belt). Look at StackOverflow ... built quickly on ASPMVC with JQuery, and it's fast, scalable and a joy to use IMO.
6. Oh, and it's completely open source! It is ok to read the source code, blog about it, and even modify then redistribute it!
Reply

#10
MVC

... it just seems so obvious that's where the future is
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through