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

learn more… | top users | synonyms

0
votes
1answer
36 views

AngularJS and ASP MVC

We have started to implement AngularJS in our web-applications using ASP MVC. I am wondering what approach to use for building application in the future. Keep using our current stategy: Build the ...
0
votes
1answer
63 views

ASP.NET synchronous commands handlers

A question about DDD, for validating a Proof Of Concept. Let's say we have a webpage that triggers a Domain Event. For instance, updating the status of a client after an interaction occurred on that ...
2
votes
1answer
80 views

Bower, NPM, Gulp in ASP.NET MVC, what problem am I solving? [closed]

I work at a small web development company, and we use no dependency management whatsoever at the frontend side. External libraries are simply downloaded and pasted into the lib folder of whatever ...
0
votes
2answers
132 views

Repository pattern with service layer - too much separation?

I have an MVC site which uses the repository pattern. I don't feel like I'm using the MVC style enough, so I'm getting ready to re-architect some of it. But I'm also wanting to do it so if the ...
3
votes
2answers
193 views

Unit Testing without DI

I am starting a small ASP.NET MVC project, each task on the board must come with unit tests. The project is small, just a few pages with not that much processing, so I decided not to implement DI. My ...
3
votes
0answers
116 views

Domain Driven Design - DataServices vs Repositories for Domain Models vs Database Models [closed]

I've been trying to refactor an old design in to an Onion Architecture in DDD style. To that point, the project went from a monolith to 4 sub-projects: /src /Project.Application /Services ...
5
votes
1answer
192 views

How should I test the HTML output my class creates?

As a learning project, I am trying to create something similar to the WebGrid that comes with ASP.NET MVC. Now this component MyGrid<T> looks like this: public class MyGrid<T> where T : ...
10
votes
3answers
365 views

Is that good idea to add ViewModel exactly same as Model

I have following layers in my solution: App.Domain App.Service App.Core (maybe you call this one App.DataLayer) App.Web Software design pattern is not my question, I have following Model in Domain ...
1
vote
0answers
60 views

Refactoring to avoid circular references

I'm working on an ASP.NET MVC solution that has two projects, WebUI and DAL. WebUI references DAL. DAL has the repository and context, while WebUI contains Authentication and Authorization classes. ...
0
votes
0answers
45 views

EF “Code First” and Object/Relational Impedance

I'm trying to learn more about the current orthodoxy with respect to ASP.NET MVC application design, and I stumbled upon something that confuses me, relating to the choice among database design ...
0
votes
0answers
48 views

Asp.net MVC web application and iOS mobile app

I am currently writing a web application in ASP.NET MVC, so far it is mostly a simple CRUD web app. The database is hosted on the cloud and I am using Entity Framework to interact with it. I know ...
2
votes
2answers
61 views

Where should i put the WebAPI

I've just started the project and I have this sort of parts in my solution MyApp.Web MVC Web Application MyApp.Data Class Library MyApp.Domain Class Library MyApp.Service Class Library MyApp.Utility ...
0
votes
0answers
21 views

MVC OAuth with keeping user logged in

I am creating a news site where one can add some news. User will be registering with theirs facebook accounts like on this site. There will not be other type of users, just facebook users. And I wish ...
0
votes
0answers
54 views

Emulating `tail` to stream log data via asp.net mvc

In similar fashion to this bit of node.js, I'm interested in streaming the ongoing output of a text log file via ASP.NET MVC. I'm having trouble even thinking how I would implement this using the ...
0
votes
0answers
50 views

ASP.NET MVC : How asp.net mvc view engine bind model and render data in html form in browser?

How mvc model binder binds data to model and when I submit form or pass model to view. //Action public ActionResult ShowStudent() { Student student = new Student(); return View(student); } ...
0
votes
1answer
44 views

File sharing web application - folder PIN code entry best practice

I'm developing a web app for internal file sharing and one of the requirements is to have PIN code protected folders. What I came up now is a folder like structure with the following: Folder ...
2
votes
1answer
78 views

Is there a standard way to handle assigning and managing tasks for users/groups in asp.net? [closed]

Take for example what I would assume to be a fairly standard process flow, where certain users are assigned a role which allows them to create requests, but another group (or subset) are assigned a ...
0
votes
0answers
109 views

Any “Gotchas” to using Entity Framework for Identity & Dapper for all other DB access in a .NET MVC application?

I'm firing up an MVC project in which I'd really like to use Dapper as my ORM, as I like to be as close to the database as possible for performance and SQL tweaking reasons, yet still have the power ...
1
vote
1answer
68 views

Combining simple and complex APIs in a web application?

We use C# MVC and Angularjs as the primary tools to develop our web applications. We've recently been discussing best practices, with an eye towards revising our development approaches into something ...
0
votes
1answer
39 views

Optimizing and caching frequently accessed but rarely updated Tables

My app has some tables that will be rarely updated, probably just once in the beginning and at the system setup. Despite that, they will be frequently accessed. Almost every operation depends on ...
0
votes
1answer
119 views

Is having a Data Access Layer as singleton a good ideea

I'm working on a project(web application) where I have a DataManager(IDALContract dalImplementation) class that does some stuff with the data after retrieving it from the database or before saving it ...
0
votes
2answers
87 views

How can I check if answer the user typed in is unique in the form submission?

So, I have a form that has security questions and textfields for the user to type in their answer. I want to prevent the user from typing in the same answer to every security question selected. So I ...
228
votes
13answers
35k views

Should you write your back-end as an API?

I had a heated discussion today about our MVC application. We have a website written in MVC (ASP.NET), and it usually follows the pattern of do something in the view -> hit the controller -> ...
0
votes
0answers
70 views

How would you load controllers and routes after startup in mvc 6 without restarting the application?

I would like to create a plugin system to allow new controllers to be added at runtime. These will be api controllers and not views. I know I can add controllers from other assemblies at startup by ...
2
votes
2answers
199 views

Client-Side JavaScript Business Logic in .Net Solution Stack

Fellow developers on other teams I interface with seemingly question my judgement calls as they pertain to the placement of coded business logic in a .Net MVC/Knockout web application currently under ...
2
votes
0answers
67 views

What's the best pattern to validate a conditional entity? [duplicate]

I'm developing an ASP.NET MVC 5 website and I have a view with a grid. In this grid I have a column which represents an URL property. This url is a link to download some files, but this url should be ...
6
votes
1answer
263 views

DDD Architecture in a MVC web application

I am putting together a web application using DDD however am strugleing to put the text book DDD model into a real world MVC application. I currently have these layers: Controllers > ...
0
votes
3answers
278 views

How can I reinforce that security questions answers should not be the same and how to encrypt?

When my users are creating an account they need to fill and set several security questions pertaining to their account. I am wondering, how can I make sure that the answer the user enters for each ...
0
votes
0answers
181 views

Single sign-on flow using ASP.NET MVC + Active Directory

I'm looking into creating a single-sign-on portal built in ASP.NET MVC. This single sign on portal should give users the option to sign in with their individual account (which should be verified ...
0
votes
0answers
53 views

ASP MVC Performance Analysis in Azure

I have a web application based on asp net boilerplate using EF6. The site is in it's finishing phase and I'm trying to tweak the performance to the best of my abilities. I was able to reduce the ...
1
vote
1answer
40 views

Share service instances amongst all controllers?

We've taken over coding on a .NET MVC project, and as I'm relatively inexperienced with many of the MVC design approaches, I'm working on getting a good understanding of the design choices. One ...
2
votes
2answers
152 views

What are my options for exposing customization settings to the admin user?

I'm writing a blog system as a learning exercise and I would like to allow the admin (or blog owner) to select/change some custom options based on features that I choose to expose to them such as: ...
1
vote
2answers
121 views

.NET solution dependency workflow for a small dev team

We have a team of 5 developers working on a product and are at a crossroads trying to determine a better way (if one exists) of managing development workflow and project dependencies. We currently ...
3
votes
1answer
523 views

Is FormsAuthentication obsolete? [closed]

I am creating a website using ASP.NET MVC 5. I want to know if it is still OK to authenticate user using FormsAuthentication? Did Microsoft release any technology to replace FormsAuthentication?
1
vote
1answer
48 views

Bundling and minifying options for MVC2

I've just been handed an MVC2 application and noticed that there is no bundling or minifying of the JavaScript or Stylesheets. I've used the built in bundling and minifying logic that comes out the ...
3
votes
2answers
205 views

Understanding how layers are separated in an MVC application

I am using Visual Studio 2013 MVC 5 application using Razor. I want to understand in which order layers sit and interact with each other. In my solution I have: UI Layer (Main Project) - ...
3
votes
1answer
161 views

Partial Model Updates From View

I hope this is on-topic here since I'm a bit new to the whiteboard... I'm currently developing an application using ASP.NET MVC 5 (and WebAPI 2). One of my domain entities is huge, and is stored in ...
0
votes
0answers
67 views

Authenticating users of a chrome extension against a ASP.NET MVC web application

I have a chrome extension which is supported by a ASP.NET MVC web app as the back end. I want the chrome extension user to login through my web application and once he is logged in, the chrome ...
0
votes
2answers
128 views

Handling Business Logic/Validation Race Conditions

I'm working on a Training Enrollment web application with the following (simplified) features: Maintenance (Add, Edit, Deactivation) of Trainings Student sign-up Student enrollment to Active ...
0
votes
1answer
204 views

Project architecture for application with dynamic database

We've a project that has some tables are defined and some will be generated runtime, means dynamic and no pre-defined structure. We generally use Entity Framework to communicate to the database(in ...
1
vote
1answer
130 views

Where view models inside Web project of n-tier application should be placed?

Let's assume we have an ASP.NET MVC web application with following tiers: Business logic Entities (business domain and database POCOs) Common (resources, consts) Data access (database EF queries, ...
0
votes
1answer
383 views

How to test model binding within an MVC controller when Bind attribute with Include list is used?

Auto-generated action methods in MVC5 make use of the BindAttribute with an Include list that contains the field names in a string literal. Example: // POST: MyTable/Edit/5 // To protect from ...
0
votes
0answers
99 views

REST Services with ASP MVC WebApi architecture feedback

I'm working on a new project and I had to design some REST Services with ASP MVC WebApi. I would like to show you my app architecture and learn from more experienced architects what I have ...
1
vote
2answers
200 views

Asp.net caching strategy/pattern

In my WebApi controller I have the following (pseudo) code that receives update notifications from Instagrams real-time API: [HttpPost] public void Post(InstagramUpdate instagramUpdate) { var ...
1
vote
1answer
408 views

Asp.Net MVC from in modal bootstrap

First, some of the technologies in play: Asp.Net Mvc 5, Bootstrap 3, JQuery. On my view I want to create a bootstrap model dialog, with a simple form in it. When the user clicks submit, there are two ...
5
votes
1answer
913 views

Async Controllers in ASP.NET MVC: Real Advantages / How Achieved?

I have been working through an article about asynchronous controller methods in ASP.NET MVC (http://visualstudiomagazine.com/articles/2013/07/23/async-actions-in-aspnet-mvc-4.aspx) and I think I may ...
2
votes
2answers
264 views

Where is the entry point for ASP.NET MVC's HttpContext?

I've got some custom FormsAuthentication with a custom AuthorizeAttribute where I'm maintaining the cookie manually, but I'm doing it within the filter's context. What I want to do is move this to ...
6
votes
3answers
239 views

Is this breaking SOA?

We're havng a bit of a disagreement in our team, and I would like to hear other people's views. We have a mature solution that uses an Entity Framework model, which is accessed by a repository layer, ...
2
votes
1answer
567 views

Seperating ASP.NET IdentityUser from my other entities

I have a ProjectName.Core library containing all my business logic and my entities and their behaviour. There's currently no relation whatsoever to Entity Framework or any other DAL because I like to ...
1
vote
0answers
101 views

Single page application automatically download dependent HTML

I'm currently developing an application using ASP.NET MVC5 and Knockout. For now, the typical architecture is this: FooController.cs: public ActionResult GetFoos(){ //... var model = // ...