The ASP.NET MVC Framework is a Microsoft web application framework that implements the model-view-controller (MVC) pattern.

learn more… | top users | synonyms

6
votes
5answers
6k views

Can we develop ASP.NET MVC application with MySQL as the database?

I have mostly seen ASP.NET websites using MSSQL as database. Even I developed one some time ago. Why only MSSQL, when MySQL, a free alternative is available. So, the question is, IS it possible to ...
6
votes
1answer
2k views

Using Backbone.js with ASP.Net MVC

I'm currently looking into the advantages of using Backbone.js, but I'll be using ASP.Net MVC as the main bulk of the site. My question is, is it worth blending the 2 together or am I making a rod ...
2
votes
3answers
948 views

Class Design and Separation Of Concerns

I'm working on an MVC application and am wondering about the best way to design one of my models. I have a class called RightLeftPersonToggle which represents two select list boxes on the page. The ...
88
votes
20answers
64k views

When to favor ASP.NET WebForms over MVC

I know that Microsoft has said ASP.NET MVC is not a replacement for WebForms. And some developers say WebForms is faster to develop on than MVC. But I believe speed of coding comes down to ...
7
votes
3answers
382 views

Is it beneficial to have a long-term experience in a specific technology rather than short-term multiple ones?

I am currently working in asp.net and having almost 1 year of experience. Now my company wants to change my technology and wants to put me in mobile development (might be other than .net mobile ...
0
votes
5answers
156 views

Help me in choosing appropriate pattern

From last one week i was searching for most suitable architecture for a new web application. To be honest i did web development for only 1 year (back in 2007). And from last four years i am working in ...
8
votes
4answers
1k views

How can open source projects be successful without documentation about their design or architecture?

I want to improve my programming skills by studying famous open source projects, but I find it is easy to get lost by just jumping into their source code. So I decided to read their documentation ...
0
votes
3answers
422 views

Need recommendation for transferring ASP.NET MVC skills to PHP [closed]

I am looking to translate my skills in .NET to PHP - specifically in regards to ASP.NET MVC. At work I am currently using .NET MVC 2.0 on a variety of projects and thoroughly enjoy the platform. ...
11
votes
4answers
810 views

Is it a “pattern smell” to put getters like “FullName” or “FormattedPhoneNumber” in your model?

I'm working on an ASP.NET MVC app, and I've been getting into the habit of putting what seem like helpful and convenient getters into my model/entity classes. For example: public class Member { ...
0
votes
2answers
324 views

Asp.net certification [closed]

I want to get my certification in .NET, which certification is the best for me? For the past 8 months I have been working in the .NET 3.5 and 4.0 frameworks. How can I grow myself by appearing this ...
1
vote
4answers
666 views

Learning PHP for an ASP.NET Developer [closed]

I am mostly developing on ASP.NET MVC and sometimes on ASP.NET WebForms. But when I hit a PHP web site, I always think that; Should I learn PHP? Assuming answer here is yes, where would be the ...
7
votes
6answers
5k views

PHP framework most similar to ASP.NET MVC3?

I've done a bit of work with CodeIgniter and a lot with straight PHP... I had the opportunity to use asp.net mvc3 recently and was absolutely blown away with my productivity. Despite not "knowing" ...
11
votes
3answers
1k views

Question on design of current pagination implementations

I have checked pagination implementations on asp.net mvc specifically and i really feel that there is something less efficient in implementations. First of all all implementations use pagination ...
2
votes
1answer
1k views

Tips and Tricks on Web Page Design on ASP.NET MVC (Razor Syntax)

I am a newbie in web development and have started studying ASP.NET MVC. I noticed that cshtml replaces aspx when using Razor syntax and design view is not supported. Now designing ASP.NET MVC webpages ...
8
votes
5answers
500 views

What is the standard for modeling modern applications prior to development?

I'm taking on my first enterprise-level application and I want my team to model the entire ASP.NET MVC C# application before we even tap out one line of code. UPDATE: This was not intended to be a ...
3
votes
3answers
371 views

Does a method to check the file type being uploaded belong in the controller?

If I create a controller that has a method ActionResult UploadFile(HttpPostedFileBase file) Where is the best place to add the code that will verify that this is a good and useable file? The reason ...
11
votes
6answers
1k views

How can I convince my company to move to MVC?

I currently write web apps using asp.net web forms and getting my company to move to another technology is like [insert funny line here]. I would really like to start writing apps using MVC, but they ...
3
votes
3answers
2k views

Is ASP.NET MVC slow as compared to traditional approach?

I create three folders in the Project Explorer of any IDE that I use. I name them: App Layer, Business Layer and Data Layer. The App Layer holds all the UI stuff, the Business Layer holds all the ...
1
vote
2answers
407 views

MVC 3 - Any new features to explore for an existing MVC 2 application?

I have an existing ASP.NET MVC 2 application that is working well and is usually easy to maintain. I had a lull in development yesterday so I upgraded the solution to ASP.NET MVC 3 and everything ...
5
votes
1answer
549 views

How should a ViewModel be named?

While starting work on a brand new ASP.net MVC application we've learned that we should have all of our available data pushed to make it easy to create a full view. While learning this we've started ...
4
votes
3answers
1k views

Migrating large system from WebForms to MVC

I'm looking for advice from people who have actually migrated a large system from WebForms to MVC. What are the things to watch out for? The literature says that both can co-exist for the same system ...
5
votes
1answer
2k views

What would your DB Schema look like if you are building a Reddit/Digg-like site? [closed]

Just found out something rather interesting about Reddit's database schema: The way we’ve changed is we use an “open schema”. Sometimes it’s called “entity attribute value”. It’s basically ...
9
votes
4answers
1k views

Should I be a professional in C# programming in order to build good web applications using ASP.NET?

I do not know if there is special programming in C# for the web or it is the same?. If it is the same then what are the topics that I should focus on in C# in order to use it building web application ...
7
votes
3answers
5k views

In ASP.NET MVC3 controllers, where do you instantiate your DataContext?

In your ASP.NET MVC 3 applications that use a DataContext or DbContext, where do you instantiate your data access object? Here is a non-exhaustive list of where I've seen it done: Individually ...
3
votes
3answers
2k views

DDD + POCO does this makes sense?

DDD promotes rich domain models with behavior in it, POCO naked objects without any objects in it. Is it possible to have them both combined? I have a Multi Layer Solution Core - has POCO ...
3
votes
1answer
257 views

Merging functionality from two controllers; should I place all actions in one controller?

Say I have 2 controllers, OrderController and StatusController. OrderController has several CRUD actions for Orders and StatusController has several actions pertinent to changing the satus of Orders ...
3
votes
3answers
4k views

How to properly learn ASP.NET MVC [closed]

I have a question to ask and maybe some of you will think it's lame, but I hope someone will get me on the right track. So I've been programming for quite some time now. I started programming when I ...
2
votes
1answer
4k views

Dynamic Permissions for roles in ASP.NET MVC

We have been developing a web application in ASP.NET MVC. We have scenarios where many actions on web page are dependent upon role of a specific user. For example a memo page has actions of edit, ...
12
votes
5answers
2k views

Going back to ASP.Net Webforms from ASP.Net MVC. Recommend patterns/architectures?

To many of you this will sound like a ridiculous question, but I am asking because I have little to no experience with ASP.Net Webforms - I went straight to ASP.Net MVC. I am now working on a ...
4
votes
6answers
521 views

Was it necessary to build this site in ASP.NET? [closed]

From what I'm told, the whole StackOverflow/StackExchange 'stack' is based on Microsoft's ASP.NET. SO and the SE sites are probably the most complex that I visit on a regular basis. There's a lot ...
11
votes
4answers
931 views

How far to go with unit tests

A question asked many times before but with a specific slant twds mvc development. I've been a very good boy and have been coding all my controller actions with corresponding unit tests which has ...
2
votes
2answers
598 views

Should I migrate to MVC3?

I have a MVC2 project, my question is: should I migrate to MVC3? Why? I'd like the opinion of some who already migrated, or at least used MVC3 and MVC2. Already read ...
4
votes
1answer
255 views

I read Pro ASP .NET MVC 2 Framework - anything else for AJAX in MVC 2?

I read Pro ASP .NET MVC 2 Framework to try and learn the ASP .NET MVC Framework, but I'm really struggling with Ajax in MVC even after going over that chapter again and again. I seem to have a decent ...
33
votes
7answers
15k views

What ASP.NET MVC can do and Ruby on Rails can't? [closed]

ASP.NET MVC and Rails have similar area of use, are built around same architecture, both frameworks are relatively new and open source. So as a Rails programmer I'd like to know, what ASP.NET MVC can ...
2
votes
2answers
618 views

How to structure a project that supports multiple versions of a service?

I'm hoping for some tips on creating a project (ASP.NET MVC, but I guess it doesn't really matter) against multiples versions of a service (in this case, actually multiple sets of WCF services). ...
7
votes
5answers
2k views

MVC Pattern, ViewModels, Location of conversion

I've been working with ASP.Net MVC for around a year now and have created my applications in the following way. X.Web - MVC Application Contains Controller and Views X.Lib - Contains ...
39
votes
2answers
15k views

What are the definitive guidelines for custom Error Handling in ASP.NET MVC 3?

The process of doing custom error handling in ASP.NET MVC (3 in this case) seems to be incredibly neglected. I've read through the various questions and answers here, on the web, help pages for ...
2
votes
3answers
506 views

What's missing in ASP.NET MVC?

I think that most people would agree that ASP.NET MVC is one of the better technologies Microsoft has given us. It gives full control over the rendered HTML, provides separation of concerns and suites ...
12
votes
4answers
1k views

How much sense does it make for a veteran .Net developer to move to ROR professionally? [closed]

I consider myself a moderately skilled (definitely not stupid) .Net developer. Over the past 5 years I've been working with ASP.Net, ASP.Net MVC, SharePoint, WPF, Silverlight, RDBMS (SQL Server and ...
4
votes
4answers
1k views

Do you know any scenario where asp.net mvc can outperform asp.net?

Do you know any scenario where asp.net mvc can outperform asp.net? Because while comparing these two, people always say that each of them are different beasts and may be a better choice depending upon ...
19
votes
4answers
4k views

Why is testing MVC Views frowned upon?

I'm currently setting the groundwork for an ASP.Net MVC application and I'm looking into what sort of unit-tests I should be prepared to write. I've seen in multiple places people essentially saying ...
5
votes
3answers
384 views

What do you do about content when someone asks you to build a website

I am an experienced asp.net developer and asp.net mvc and I have my own CMS that I have written but starting to think there should be another approach. When someone asks you to develop them a website ...
27
votes
3answers
21k views

Best Practices for MVC Architecture [closed]

There are a number of questions on Stack Overflow regard MVC best practices, but most of those seem to revolve around things like using Dependency Injection, or creating helper functions, or do's and ...
15
votes
8answers
2k views

What do you do when a client requires Rich Text Editing on their website?

As we all know by now, XSS attacks are dangerous and really easy to pull off. Various frameworks make it easy to encode HTML, like ASP.NET MVC does: <%= Html.Encode("string"); %> But what ...