Skip to main content

Questions tagged [asp.net-mvc]

Model-View-Controller for the ASP.NET framework

17 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
4k views

Logging in ASP.Net MVC project

I want to implement a Logger and use Serilog as Provider. My Project is ASP.NET MVC Framework (not core). Initially I tried to replicate ASP.Net Core Logging framework. I created a ...
Hooman Bahreini's user avatar
3 votes
0 answers
2k views

Controller in an ASP.NET Web API application which generates a CSV file

I have a controller in an ASP.NET Web API application which generates a CSV file. The controller looks like this: ...
StepUp's user avatar
  • 553
3 votes
0 answers
2k views

AJAX shopping cart with quantity +/- buttons

I'm a junior developer (couple years into it) and very new to AJAX. I'm writing an internal inventory application built on MVC and right now I'm dealing with adding and removing items to/from a cart. ...
Davide Vitali's user avatar
3 votes
0 answers
282 views

Asp.Net MVC Application Controller

I'm developing a webapp in ASP.Net MVC. One of the requirements of the project is that users follow a "workflow". The workflow has a number of steps, and a conditional branch. The workflow is long ...
Alex's user avatar
  • 31
3 votes
0 answers
108 views

Multitenant app authorization

Role based security does not work for me well in a multitenant app, as I need to query DB to decide on permission allowance. Here is the solution I came to. All implementations of this interface will ...
Dmitry Nogin's user avatar
  • 6,131
3 votes
0 answers
1k views

Wrapper for jQuery Ajax to ensure redirects occur on clientside - Round 2

A while back I posted Wrapper for jquery ajax to ensure redirects occur on clientside on handling ajax and redirects when a server side error occurs. Since that post I've been using this module ...
dreza's user avatar
  • 6,437
2 votes
0 answers
65 views

Managing invalid cookie when 2 users use the same computer and therefore share the same cookie

I have asked this question on stackoverflow... here, I am asking for some feedback on the solution that I have implemented. I am using ASP.NET MVC default template to logout user: ...
Hooman Bahreini's user avatar
2 votes
0 answers
1k views

RESTful API combining three other APIs

I have created a RESTful API that uses three other APIs with Visual Studio 2017 in .NET Core. It is the first time I have ever programmed in .NET so I am sure the code could use a lot of improvements. ...
molundb's user avatar
  • 21
2 votes
0 answers
535 views

Passing a complex object across cross domain

I am working with two web applications, one is webform-based Site1 and other is an MVC application Site2. TODO: Pass a complex object from Site1 to Site2. In response get View from Site2 to Site1 ...
Ankita's user avatar
  • 121
2 votes
0 answers
8k views

Mapping Excel columns to table columns, then processing data

I have written some code for mapping excel columns to table columns and processing data after mapping columns. Please review this code, check for SOLID, OOP principles and suggest any improvements and ...
Aftab Ahmed's user avatar
2 votes
0 answers
82 views

Authentication terminology

Below comes a Value Object to represent UserId in ASP.NET application. It implements Value Identity, so equality is defined by matching of the state calculated at ...
Dmitry Nogin's user avatar
  • 6,131
2 votes
0 answers
138 views

Business logic in controller

Led by the recently read premise "Lean controllers and fat models" I've come to the conclusion that my controller might be too fat at the moment. Basically, what I'm trying to achieve is simple Edit ...
wegelagerer's user avatar
1 vote
0 answers
60 views

Credit based order system

I'm implementing a system, which requires an order to be active. I have a class called Yritys, which is the customer account who would have credits. 1 credit would mean 1 day of service use. Yritys (...
jluck's user avatar
  • 11
1 vote
0 answers
1k views

Asset management system

I'm relatively new to developing and I'm mostly self taught so a lot of what I know simply comes from googling & figuring things out from there! That being said I've put together an ASP MVC ...
Paul Evans's user avatar
1 vote
0 answers
999 views

.NET MVC Infinite Child record add

Here is my working attempt to allow multiple/infinite child record entries with the original parent post in .NET MVC. Any refactoring to simplify my code would be greatly appreciated: Controller: <...
jbruce's user avatar
  • 11
1 vote
0 answers
2k views

ValidationAttribute to validate a string against a JSON schema

This is my implementation of an .NET ValidationAttribute to validate a string against a JSON schema. The JSON schema file is stored within the application as an ...
James Law's user avatar
  • 497
1 vote
0 answers
1k views

MVC application internationalization using a database provider and dependency injection

Following Nadeem Afana's article about how to include internationalization into an MVC application, I have introduced i18n into one of my MVC applications. These ...
Alexei's user avatar
  • 1,806