For Questions about the ASP.NET MVC 3 Framework

learn more… | top users | synonyms

25
votes
5answers
1k views

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 ...
0
votes
0answers
19 views

Create a model for scenario having textbox depending on checkboxes

I have a scenario, <input id="Order" type="checkbox" name="Order">Order <input id="MobileChk0" type="checkbox" name="Mobile"> <input id="Mobile0" type="text">Mobile ...
30
votes
2answers
12k 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 ...
-1
votes
0answers
36 views

MVC random pause before executing controller

My MVC app started to stall on a POST or GET. It is not every POST or GET, but I was able to trace it to a startup problem. I added a breakpoint to the first line in my controller ...
1
vote
2answers
234 views

MVC : Does Code to save data in cache or session belongs in controller?

I'm a bit confused if saving the information to session code below, belongs in the controller action as shown below or should it be part of my Model? I would add that I have other controller methods ...
-3
votes
0answers
17 views

NUnit Check availability my ActionFilterAttribute on CONTROLLER (not action) [closed]

How can I check for the availability of my ActionFilterAttribute on controller in ASP.NET MVC3? I'm using NUnit.
49
votes
22answers
23k views

When to favor webforms over MVC

I know Microsoft has said "MVC is not a replacement for webforms". Some developers say webforms is faster to develop than MVC, but I believe this all comes down to comfort level with the technology; ...
0
votes
1answer
384 views

Building Portfolio ASP.Net MVC

I have been working on building a sample application to add to my portfolio (for freelancing). I am working on building a Shopping website using ASP.Net MVC. My question is - what are the good ...
3
votes
1answer
275 views

Should I use a CMS for a new large application with a lot of common features (login, profile edit, blog etc)?

I'm currently planning a new ASP.NET MVC3 project which will be quite bespoke. However, there will be a lot of common features (login, profile edit, blog etc). Initially I was planning on building ...
0
votes
0answers
216 views

ASP.NET Mvc3 - application/request lifetime and dependency injection

I thought of asking on SO, but it seems this is more of a "concept" type question than a "problem" type question. If it needs to be moved, please do so. Anyway, I'm having a tough time finding ...
2
votes
2answers
176 views

Overcoming circular reference

I am working on an asp.net MVC web application which contains several projects. One is BusinessObjects, which contains business logic / processes. Another is EmailGeneration which is used to send ...
0
votes
3answers
230 views

Using xml datatype to store a “shopping cart”

For my final project in school we have to develop an online shop. This shop should have a cart where items can be placed whether or not you are logged in. If you log out the cart shouldn't empty and ...
0
votes
2answers
158 views

Separation of development responsibilities in a new project

We have very recently started a new project (MVC 3.0) and some of our early discussion has been around how the work and development will be split amongst the team members to ensure we get the least ...
3
votes
1answer
405 views

Where to put custom validation while using Entity Framework

I am using MVC3 and Enitty Framework 4 with the Database first approach. It created the context template with its own validation for the fields based on the database. My question is where should I put ...
9
votes
2answers
6k views

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 ...
-1
votes
2answers
639 views

Problem with MVC3 application [closed]

I am working on MVC3 application. I use entity framework, NInject, Fluent Validation and some more Nuget packages. I am using Tortoise SVN for versioning. Recently I changed the structure of my SVN ...
0
votes
1answer
480 views

Actions and Controllers managing strategy in MVC apps

Can anyone name any usefull strategy/architectural pattern for allocating actions between different controllers when using MVC pattern for developing web application? I am now developing web app ...
4
votes
3answers
1k views

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 ...
3
votes
2answers
707 views

What are the differences between Castle Monorail 3 over ASP.Net MVC?

I have been using Castle Monorail for some years now with great success, although I haven't bothered to update the version I'm using (2 or 3 year old). Now I'm making a decision on go to ASP.Net MVC 3 ...
0
votes
1answer
281 views

Why would he say “We don't want to support MVC3”?

I work in a small shop at a fairly big company doing intranet web applications. By small, I mean there is 1 other guy in my position... and he graduated with me last December. (we aren't the only IT, ...
4
votes
4answers
1k views

How do you deploy your ASP.Net MVC3 application to the production server?

I just want to find out the best practice to deploy your MVC3 application and what tool you use to get the job done. I am using Visual Studio 2010. I publish my web site, then manually backup whats ...
4
votes
1answer
1k views

Session Flash vs TempData C# MVC 3

A little background. A developer I used to work with insisted on disabling Tempdata and using Session Flash for passing data in the return view. Question is, is there any advantage to doing it ...
4
votes
4answers
419 views

Javascript client - which is likely to be better serverside? WCF or MVC3 controller with restful messages?

I'm looking to write a server side service, which will be accessed from a Javascript/HTML5 client. The client will likely be sending a bunch of restful messages over HTTPS. All other things being ...
3
votes
3answers
1k views

Unit of work principle is causing a problem in MVC3 application

I am implementing a website using MVC3, Entity Framework 4.1 and Repositoty pattern, Unit of work principle. But I am facing a big problem while implementing this. I have developed a static ...
2
votes
3answers
728 views

Telerik ASP.NET MVC components licensing

There's thread on stackoverflow about this http://stackoverflow.com/questions/5524046/is-telerik-extensions-for-asp-net-mvc-free It says that it is ok for internal site, but I think it is still not ...
1
vote
2answers
651 views

Best practice modelling an active record entity using Linq-To-SQL as DAL

Currently I'm starting a new system on my company, and we are using a good separation between models, views and controllers, basically using Asp.Net MVC 3 for the user UI, and a C# class library for ...
2
votes
3answers
2k views

My Asp.net MVC is running like a dodo ! Any recommendations

Following is the Url for my website, http://www.price-tag.org . If you visit any category link, you will see it performing very slow. For example, if you visit ...
3
votes
2answers
646 views

ASP.NET MVC 3 Blogs to Follow [closed]

What are some good blogs about ASP.NET MVC 3 out there to follow? Anybody know of any? Thanks in advance.
6
votes
5answers
1k views

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. ...
2
votes
4answers
4k views

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 : ...
0
votes
1answer
571 views

Traditional ASP.Net WebForms vs ASP.Net MVC [duplicate]

Possible Duplicate: When to favor webforms over MVC ASP.Net MVC has been around for some time now. The latest one, i.e MVC3 comes with Razor View Engine. My question: How long is ...
0
votes
1answer
180 views

ELMAH - Where does it fit right…?

The question title may not be correct. I have worked in a very big ASP.NET web application (without using MVC), there I used a simple error handling strategy : Enclose every statement in try..catch ...
1
vote
1answer
2k views

Asp.Net MVC CMS or Shopping Cart or any other type of System [closed]

I have been learning Asp.Net MVC for a while now and have gone through numerous tutorial ranging from MVC Music Store to Code-First to Custom Membership to Data Annotations. In essence, I have a firm ...
3
votes
4answers
4k views

Is Microsoft certification a waste for ASP.NET MVC development? (MCTS 70-515 and MCPD) [closed]

I'm at a point where I want to improve my 'marketability' as much as possible before dropping out of permanent programming roles and getting into contracting. I've looked at Microsoft ceritifcation in ...
2
votes
1answer
1k views

Implementing your own Membership Provider in ASP.NET MVC

Are there are any specific rules and regulation to follow while developing a custom membership provider. Like, implementing a particular Interface or Abstract class. Or a definite model architecture ...
3
votes
5answers
998 views

Are ASP.NET MVC automated code good enough to be used in real live applications

I have been trying to get my hands dirty with ASP.NET MVC which looks pretty good (I am not certain, but some users say that even StackOverflow and other StackExchange websites made use of it). The ...
5
votes
2answers
785 views

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")] ...
3
votes
2answers
647 views

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 ...
3
votes
3answers
599 views

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 ...
9
votes
1answer
395 views

Is there a way to visualize an ASP.NET MVC project, ie class diagram but with the web pages too?

Maybe I'm looking for a dependency visualizer/matrix. I'm not sure. I'm just trying to wrap my head around an existing and large web app, and I like pretty pictures. I know of Autodiagrammer but I ...
7
votes
3answers
606 views

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

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 ...
4
votes
3answers
2k views

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 ...
0
votes
2answers
667 views

Designing an administrator area in my CMS

I am trying to create a small CMS with ASP.NET MVC3, but I got confused in designing the administrator section. I decided to create two areas, one for users and another for admin. In my CMS I have a ...
6
votes
4answers
2k views

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 ...
1
vote
3answers
757 views

Models should match table structure, Viewmodels match how the data need to be displayed?

I have a database table with many columns, that I want to display over several pages, similar to a turbo tax style information collection form. With only 1 or 2 items per page. Is it right to ...
1
vote
1answer
875 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 ...
1
vote
2answers
319 views

Solution organisation

I have been working on asp.net applications for 6 years but almost all of it has been extending and maintaining existing applications. I now have the need to develop a new application and I am ...
4
votes
4answers
443 views

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. ...
10
votes
2answers
4k views

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

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 ...
1
vote
2answers
353 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 ...

1 2