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
0answers
47 views

Architecture Decoupling

I have set up my ASP.NET MVC project as follows: Presentation Layer : ViewModels, Views, Certain logic to handle service responses Business Logic / Service Layer : Services that work with data from ...
-1
votes
0answers
64 views

Push Notification from Server ASP.NET with SignalR v1.2 [on hold]

I was developing an ASP.NET website which would require real time notification based on events from Server. Basically there are two Classes of Users. Back Office Front Office In the event that a ...
-2
votes
0answers
19 views

How to create a Twitter or Facebook-style Thumbnail Selector using ASP.NET MVC [on hold]

I'm looking at implementing a Facebook-style thumbnail creator using ASP.Net MVC but haven't a clue where to start. The feature in question is most easily-recognised when you upload a new profile ...
2
votes
0answers
62 views

How to model users accounts in ASP MVC Framework with Entity Framework using code-first approach?

I am working on a small application that requires user login, the application is in c# / ASP MVC 4. The ASP MVC framework takes care of memberships, authentication and authorization features when i ...
0
votes
1answer
54 views

REST API design for associations/aggregation

I am building RESTful API that manages persons and lists. There can be many List and many Person each with its own set of properties. Person can be in zero or more lists, List can contain zero or more ...
-6
votes
0answers
34 views

IIS Express Worker Process has stopped working [closed]

I have installed IIS7 in my system. IIS is working fine. But IIS Express is not working properly. I hope, It is not coding problem. Because I executed same application yesterday (27-Aug-2014). It was ...
0
votes
0answers
28 views

When are request headers read by ASP.NET code

I've got an issue with my MVC 4 website where iOS Safari is automatically sending the DNT header with the first request to the site. Here's my question on StackOverflow. Even though the iPhone has the ...
0
votes
2answers
41 views

Issues regarding new instances of controllers on view pages [closed]

Is there any issue with creating a new controller within the ascx view pages. I don't want to create a model, are there any issues with doing it this way. Normally, the controllers control variables ...
2
votes
1answer
42 views

Using json as database with EF, how can I link EF and the json file during DbContext initialization?

For a personal testing-project I am considering to create a SPA with the following technologies: ASP.NET MVC + EF + WebAPI + AngularJS. The project will make use of small amount of data, so I was ...
1
vote
1answer
149 views

How to manage security of these self hosted web apis, to ensure that the request coming for accessing data is authenticated?

Let's pretend I am going to work on an enterprise application. Say I have 11 modules in the application and I would have to develop Dashboards for every role in the organization for whom I are going ...
2
votes
2answers
63 views

Generic Repositories with DI & Data Intensive Controllers

Usually, I consider a large number of parameters as an alarm bell that there may be a design problem somewhere. I am using a Generic Repository for an ASP.NET application and have a Controller with a ...
0
votes
2answers
31 views

Separating roles authorization and database

Something really bothers me about the way authorization tends to be done with roles in ASP.NET MVC. The way it is normally done is that you have a Users table and a Roles table. A User can have many ...
8
votes
2answers
394 views

Why is there no WSDL type support for Web Api?

So I am just getting started with .Net WebApi and one thing that I am noticing straight away is that there is no Contract defining how the Api looks and should be consumed (Request/Responses from each ...
0
votes
0answers
32 views

Can a type provider mimic an anonymous class?

I'm working on building a website using the F# MVC 5 template, and I noticed that the template creator uses formally declared types for the route defaults. In VB.Net and C#, this is typically done ...
1
vote
1answer
74 views

Domain model for a notification system

I'm trying to build a modular notification service in a ASP.NET MVC web application. The application generates notifications and the service is responsible for delivering the notifications to the ...
0
votes
0answers
46 views

How to validate information on server without using database or session

Each user has multiple sites they can access reporting data for in an application I am working on. To prevent having to go to the database on every single request, I validate that they have access to ...
0
votes
2answers
66 views

How do I ensure my site will be crawled when articles are generated by the database?

I wasn't sure how to ask the question. But basically, it's a textbook scenario. I'm working on a site that's article based, but the article information is stored in a database. Then the page is ...
0
votes
0answers
43 views

Hosting image oriented ASP.NET MVC site; how to keep things fast?

I have a site that heavily relies on high res images being uploaded and viewed constantly. Currently it's hosted internally which keeps everything fast. I now want to move the site externally, but I ...
0
votes
0answers
61 views

TryUpdateModel vs Parameter and ModelState.IsValid

As I was originally learning about MVC, the book I was using taught the following technique for Controller actions: public ActionResult MethodName(Model model) { if (ModelState.IsValid) { } ...
2
votes
2answers
121 views

Wrapping constructor arguments

Given a base class with around 25 or so subclasses, I have found that adding an argument to the base constructor is painful. protected AbstractController(Service1 s1, Service2 s2, Service3 s3){ ... } ...
0
votes
1answer
55 views

Should arguments always be passed to an Action in a MVC controller

I have a number of controllers that take a 'site' as a parameter within their actions, like so: [AuthoriseSite] public ActionResult Index(string site) { var model = ...
2
votes
1answer
136 views

Choosing between the view and the controller for my code

I'm aware there are a lot of topics about MVC design but it's hard to find good explanations: what I should do, what are the consequences of the different possibilities... So I'm working on an ASP ...
4
votes
5answers
2k views

Is this a good practice or not?

I have a colleague who has come up with a way of 'genericizing' information from a database so that all his web application's drop-down lists can share the same object in his MVC.NET C# code and ...
0
votes
0answers
53 views

Multitier architecture using API

I have been reading a number of posts and I am leaning towards building an SOA. My main dependencies are: Need to support multiple clients Need individual client environments to not effect other ...
0
votes
0answers
29 views

return nhibernate entity from web api?

Is it a good idea to return nHibernate Entity from WebApi? For simple entity I tried to use this but what about complex entities. How will lazy loading be handled in that case?
1
vote
0answers
204 views

ASP.NET MVC WebService - Security for Industrial Android Clients [closed]

I'm trying to design a system that will allow a bunch of Android devices to securely log into an ASP.NET MVC REST Web service. At present neither side are implemented. However there is an ASP.NET ...
2
votes
3answers
265 views

Is ASP.NET MVC too much overhead for smaller projects? [closed]

I will be honest I don't really know much about MVC other than the stuff you can read online in 5 minutes. Unfortunately this doesn't really tell me whether its suited to smaller projects or not. I ...
1
vote
2answers
229 views

REST Service and CQRS

I am struggling with architecture on a new project. I am using the following patterns/technology. CQRS - anything going in goes through a command REST - using WebAPI MVC - asp.net mvc Angular - ...
1
vote
0answers
359 views

How to tell SignalR Notifications Hub that there is a new notification without having SignalR poll on that table

I'm developing a push-notifications system for my ASP.NET MVC app. The idea is to use Redis for queueing, ServiceStack for queue processing and SignalR for push-notifications to implement a system ...
3
votes
5answers
1k views

Pure Front end JavaScript with Web API versus MVC views with ajax

This was more a discussion for what peoples thoughts are these days on how to split a web application. I am used to creating an MVC application with all its views and controllers. I would normally ...
0
votes
0answers
36 views

Web Services and Computer Services to access low level system functions

So I think I'm in the right place to ask this question. Its fairly conceptual. I love web development, I work in ASP.NET MVC 3/4/5 C# and have created industry standard applications such as CRM's and ...
0
votes
1answer
259 views

Javascript/ui framework to compliment WebAPI/TypeScript/ASP.NET MVC? [closed]

We're about to venture into building a brand new SAAS application that needs to have a great looking and sophisticated front end. The UI is meant to be single-page, built on top of Web API and using ...
0
votes
1answer
62 views

Deleting Old Nuget Package Folders after upgrading

Should you delete the old Nuget package files/folders under the packages directory after you upgrade a package? Maybe I'm just being overly picky, but seeing files/folder for older package versions ...
1
vote
4answers
468 views

MVC4 : How to create model at run time?

In my project I am dynamically creating table by giving table name (ex. student) and adding fields to that table and then save table. Now, my table is created in SQL Server database. Assume table ...
2
votes
2answers
202 views

As a .NET WPF developer what are key differences I should be aware of when working with ASP.NET MVC? [closed]

I'm a fairly experienced desktop .NET developer with a solid feel for MVVM and WPF, and I've worked with JavaScript, jQuery and HTML/CSS in the past - though I'm pretty dated and haven't had a ton of ...
0
votes
1answer
535 views

Back button after doing posts on the same page

I have 3 pages to my site. The 1st page allows you to select a bunch of options. Those options get sent to the 2nd page to be displayed with some data about those options. From here I can click on a ...
1
vote
0answers
140 views

Authorization and Authentication using multiple types of authentication in MVC

Currently I am managing a team where we're building a new SaaS application. The way it is currently structured is that we have a solution that has our business logic and data, and a solution that ...
4
votes
1answer
151 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 ...
1
vote
1answer
572 views

Most Appropriate Authentication Type for MVC5 project

I am about to start a new ASP.NET MVC5 project and I am planning the authentication / authorization requirements at present. The client wants Windows authentication, to prevent their users having to ...
1
vote
2answers
83 views

Organising models in ASP.NET MVC

I'm building websites in ASP.NET MVC and I quickly figured out that my models are getting harder to organise as they grow. What I normally do is create one model to add and edit data. But in my add ...
2
votes
1answer
126 views

how to process document state transition?

Imagine there is an application (ASP.NET MVC) that processes some documents. The document must be revised several times by different group of users. state/role rules: simple user can only publish ...
0
votes
1answer
67 views

Running multiple versions on the same .NET website

I have a website (which is actually mainly a Web API site) and I'd like to be able to simultaneously access multiple versions of it. What I'm currently doing is creating a new website for each ...
1
vote
4answers
2k views

asp.net mvc vs angular.js model binding

So I've noticed a trend lately of .net web developers using angular.js on the client side of applications and I've become more curious as I play around with angular and compare it to how I would do ...
0
votes
1answer
110 views

Design MVC site such that UI developer can work without access to data tier? [closed]

I'm working on an ASP.NET MVC site (using Team Foundation Service for source control) that I've divided into a few separate projects under one solution: Project.WebAPI (Main entrypoint, contains ...
1
vote
1answer
114 views

How does user confirmation box work?

How does the client know to send request to server only when the confirmation box result is ok and stay on page if cancelled? Also, is this mechanism any different in ASP.Net and ASP.Net MVC? I want ...
4
votes
5answers
4k views

Server side C# MVC with AngularJS

I like using .NET MVC and have used it quite a bit in the past. I have also built SPA's using AngularJS with no page loads other than the initial one. I think I want to use a blend of the two in ...
3
votes
1answer
69 views

Where should CMS data logic go

We have a large web site written in WebForms and have begun implementing some new modules in MVC. We have a custom CMS in place. I put the data structure to hold CMS data in a BaseModel class. Now I`m ...
2
votes
3answers
210 views

How to completely avoid business logic in DAL?

In our ASP.NET MVC application, we try really hard to separate concerns to each layer (we use DDD). Nevertheless, it seems that we can't avoid having at least some business logic in DAL. For ...
0
votes
1answer
103 views

How can I capture an incoming email with ASP.net-mvc?

I would like to write a web system that can capture and parse incoming emails, traditionally the web system I write are asp.net-mvc, running in a cloud hosted environment like AppHarbour or Azure. ...
2
votes
5answers
251 views

secure photos on server [closed]

I would like to hear advice from the more experienced developers. The project is now in the design stage. It's mobile application and a simple web application. Content is pictures, comments, personal ...