Questions tagged [asp.net-mvc-3]

For Questions about the ASP.NET MVC 3 Framework

48 questions
44
votes
2 answers

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 various tools (like Elmah), but I feel like I've gone…
RyanW
  • 829
  • 1
  • 6
  • 10
32
votes
5 answers

Javascript modularity, server based MVC & business reality

I understand this is a very broad question, but I have worked with various aspects of this problem individually and am struggling to bring all the concepts and technologies together. I'd like to specify that answers should include these…
Terry
  • 421
  • 4
  • 7
13
votes
3 answers

MVVM or MVC? Want to use the same set of classes for WPF and ASP.NET

I am a newbie in terms of Design Patterns. I just started learning MVC when I am hearing a new buzz, MVVM. I want to learn the insights of both of these by redesigning an old inventory and invoicing application I developed for a client. I want to…
RPK
  • 4,378
  • 11
  • 41
  • 65
10
votes
2 answers

How Do You Organize Your ASP.NET MVC 3 Applications?

The one thing that I am having a hard time figuring out with developing an extensible application platform in ASP.NET MVC 3 is how to modularize everything into an easy to update and distributable form. The ideal solution I think would be to be…
ryanzec
  • 2,747
  • 3
  • 24
  • 30
10
votes
2 answers

Use-cases for node.js and c#

I do quite a bit of ASP.NET work (C#, MVC), but most of it is typical web development. I do Restful architecture using CRUD repositories. Most of my clients don't have a lot of advanced requirements within their applications. I'm now looking at…
Chase Florell
  • 641
  • 2
  • 5
  • 16
8
votes
3 answers

Which is better : Storing/retrieving images on/from SQL server or in a directory on server

I am working on a project in Asp.net MVC and need to work with images. There is an SQL database with a Product table. Every product in the table will have it's own image. I have two ways to do this : 1) Save the image in a web directory and store…
Pankaj Upadhyay
  • 5,060
  • 11
  • 44
  • 60
7
votes
4 answers

Whats the logic behind making ViewBag a dynamic object in ASP.NET MVC 3

Last time I checked C# was loved by many because it's a statically typed language but the introduction of ViewBag in ASP.NET MVC 3 brings the same problem that is there with strings: in a controller you type one thing and in the view you can by…
7
votes
3 answers

What is the biggest obstacle ASP.NET MVC ever had for you? Why and how it can be fixed?

What aspects of ASP.NET MVC can be considered bad practices of Microsoft or problematic? In ASP.NET web forms, thing like ViewState, Automatically generated Id and names, single form usage and pattern like this are many times problematic. As no…
Saeed Neamati
  • 18,142
  • 23
  • 87
  • 125
6
votes
4 answers

When developing a MVC web application should views or models be created first?

I have to build a new application from scratch, so I want to implement it using MVC3 and try to follow general best practices as closely as possible. However, I'm developing it as a one man army. Does it make more to create the views first so I…
MVCylon
  • 597
  • 4
  • 15
6
votes
3 answers

Inversion of Control in ASP.NET MVC

I was going to refactor my ASP.NET MVC application and inject some IoC. Last time I was using IoC, Unity was all the rage, but I hated it. It was difficult to setup and had very nondescript errors. Does anyone have any suggestion or preferences?
Steve3p0
  • 181
  • 1
  • 5
5
votes
2 answers

Why does microsoft's own included MVC3 template not follow fat models, skinny controllers?

From Microsoft's own built in template for MVC3 The model is extremely skinny, having basically no code. Model public class RegisterModel { [Required] [Display(Name = "User name")] public string UserName { get; set; } [Required] …
MVCylon
  • 597
  • 4
  • 15
5
votes
3 answers

Is the .NET/Microsoft technology stack a financially viable option for a startup with limited finances?

I have an unpaid internship for a very new startup company with little tech experience that's trying to be a Groupon clone. They're currently using Wordpress and I've been trying to decide what web framework to push them towards, since I'll have to…
Ein Doofus
  • 921
  • 2
  • 9
  • 13
5
votes
3 answers

What is the best way to scale a CQRS system?

In the previous months I have been asking a lot of questions concerning the architecture of an application I'm working on. Thanks to the answers the architectural design has changed - in fact, it has really been simplified as shown in the following…
L-Four
  • 333
  • 2
  • 10
5
votes
2 answers

ASP.Net MVC ambigious action methods - why the path choosen

Is there someone who could shed a light on why ambiguous methods are not allowed in ASP.Net MVC?I updated my question just to clarify it (using Carson63000 example from his answer), the question itself remains the same. So, lets say we have the…
Major Byte
  • 159
  • 1
  • 8
4
votes
2 answers

Use model for “everything” in MVC?

This question is a result out of the discussion HERE and was moved from HERE. Is it really good practice to supply EVERY value you display in any view via a model? Especially variables like the current username. Even Microsoft odes the following in…
1
2 3 4