Skip to main content

Questions tagged [asp.net-mvc-3]

For Questions about the ASP.NET MVC 3 Framework

Filter by
Sorted by
Tagged with
1 vote
2 answers
398 views

Best practice for using models between layers in mvc

I'm working on an MVC application using C#/asp. The project is following an n-tier architecture style with a separate data layer, domain layer and presentation layer. My question is related to the use ...
AnabolicMike's user avatar
0 votes
1 answer
542 views

MVC helper functions business logic

I am creating some helper functions (mvc.net) for creating common controls that I need in almost every project such as alert boxes, dialogs etc. If these do not contain any business logic and it's ...
Menelaos Vergis's user avatar
4 votes
2 answers
1k views

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 ...
Christoph Fink's user avatar
1 vote
1 answer
2k views

What are the tradeoffs for using 'partial view models'?

I've become aware of an itch due to some non-DRY code pertaining to view model classes in an (ASP.NET) MVC web application and I'm thinking of scratching my itch by organizing code in various 'partial ...
Kenny Evitt's user avatar
0 votes
2 answers
675 views

Single sign on if you do not have control of one or more of the client/web apps?

I have a customer who has a client app and when they log in to their client app, they will see a link to my website. When they click on the link, it should log in them in automatically to the website ...
Xaisoft's user avatar
  • 147
1 vote
1 answer
204 views

Primer on moving around in MVC

It was suggested on my Stack Overflow question that this might be better suited to this site, so I'm cross-posting it. I'm working on my first ground-up build of an MVC site. I have a collection of ...
Jeff's user avatar
  • 131
1 vote
2 answers
207 views

When to really focus on performance?

We've just finishing up the first release of a database driven web application, which is now in regression testing. The application has an advanced search with many different filtering criteria. When ...
Rayshawn's user avatar
  • 279
0 votes
1 answer
1k views

Advanced Search Stored procedure

So I am working on an MVC ASP.NET web application which centers around lots of data and data manipulation. PROBLEM OVERVIEW: We have an advanced search with 25 different filter criteria. I am using a ...
Rayshawn's user avatar
  • 279
2 votes
2 answers
3k 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 ...
newbie's user avatar
  • 121
4 votes
1 answer
748 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 ...
Curtis's user avatar
  • 441
3 votes
0 answers
787 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 ...
Ivan Pintar's user avatar
  • 1,177
3 votes
2 answers
552 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 ...
Kev's user avatar
  • 167
0 votes
3 answers
1k 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 ...
The_Cthulhu_Kid's user avatar
3 votes
1 answer
1k 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 ...
DFord's user avatar
  • 1,250
0 votes
2 answers
516 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 ...
dreza's user avatar
  • 3,474
0 votes
1 answer
2k 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 ...
singleton's user avatar
  • 103
5 votes
3 answers
3k 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 ...
Ein Doofus's user avatar
-1 votes
1 answer
414 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, ...
developer1234's user avatar
4 votes
5 answers
3k 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 ...
qinking126's user avatar
3 votes
2 answers
2k 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 ...
yorch's user avatar
  • 133
3 votes
1 answer
2k 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 ...
Brian's user avatar
  • 141
4 votes
3 answers
634 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 ...
blueberryfields's user avatar
4 votes
3 answers
5k 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 ...
Pravin Patil's user avatar
1 vote
3 answers
1k views

Telerik ASP.NET MVC components licensing

There's thread on stackoverflow about this https://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 ...
Giedrius's user avatar
  • 1,324
4 votes
3 answers
7k 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 http://www.price-tag.org/Store/Section/...
Pankaj Upadhyay's user avatar
2 votes
2 answers
2k 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 ...
Machado's user avatar
  • 4,120
32 votes
5 answers
3k 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 ...
Terry's user avatar
  • 421
10 votes
2 answers
13k 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 ...
Chase Florell's user avatar
6 votes
3 answers
2k views

Inversion of Control in ASP.NET MVC [closed]

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. ...
Steve3p0's user avatar
  • 181
8 votes
3 answers
11k 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 : ...
Pankaj Upadhyay's user avatar
0 votes
1 answer
1k 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 traditional ...
Pankaj Upadhyay's user avatar
0 votes
1 answer
390 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 ...
Pravin Patil's user avatar
2 votes
1 answer
2k 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 ...
Pankaj Upadhyay's user avatar
3 votes
5 answers
3k views

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

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 ...
Pankaj Upadhyay's user avatar
5 votes
3 answers
2k 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 ...
L-Four's user avatar
  • 333
5 votes
2 answers
4k 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 ...
Major Byte's user avatar
7 votes
3 answers
1k 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 ...
Saeed Neamati's user avatar
13 votes
3 answers
21k 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 ...
RPK's user avatar
  • 4,378
0 votes
2 answers
812 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 ...
user avatar
2 votes
3 answers
4k 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 ...
MVCylon's user avatar
  • 597
2 votes
2 answers
481 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 ...
mob1lejunkie's user avatar
5 votes
2 answers
894 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")] ...
MVCylon's user avatar
  • 597
6 votes
4 answers
1k 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. ...
MVCylon's user avatar
  • 597
10 votes
2 answers
5k 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 ...
ryanzec's user avatar
  • 2,787
7 votes
4 answers
7k 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 ...
Muhammad Hasan Khan's user avatar
1 vote
2 answers
424 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 ...
Mayo's user avatar
  • 1,173
3 votes
1 answer
2k 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 (...
Sergi Papaseit's user avatar
3 votes
2 answers
663 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 http://weblogs.asp.net/scottgu/...
eestein's user avatar
  • 402
44 votes
2 answers
26k 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 ...
RyanW's user avatar
  • 829