Questions tagged [asp.net]

ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites and web applications. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages (ASP) technology. ASP.NET is built on the Common Language Runtime (CLR), allowing programmers to write ASP.NET code using any supported .NET language.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
46 views

Implementing a selectable requirements with level of advancement in a web app [closed]

I'm doing a project to teach myself more about MongoDB and ASP.NET development and I am stuck. The project is a mockup of a JobBoard website, where Companies would post offers for potential Employees. ...
AdrianIT's user avatar
0 votes
1 answer
199 views

Separating Application (Business Logic) Layer to Multiple Module Layers in Clean Architecture

Currently, I'm designing the Project based on Clean Architecture composing with 4 layers: Domain Application Infrastructure Presentation Since the project is pretty huge, I'm now considering to ...
Steve.NayLinAung's user avatar
2 votes
1 answer
1k views

How should I handle docker containers and SSL certificates

Background We have a number of backend api's that do work; some connect to equipment, some store data, etc. The original setup was each service was a native c# asp.net 6 minimal api running on a ...
Felix Castor's user avatar
-2 votes
1 answer
93 views

CRUD for hierarchical data in ASP.NET - single view/controller vs. separate view/controllers?

I'm trying to develop a CRUD feature for an ASP.NET app that lets me manage customer information. Each customer can be subscribed to one or more services, and each service can have one or more terms. ...
David's user avatar
  • 1
0 votes
0 answers
287 views

.Net Core Api - multiple Dto’s for single entity

I want to know the best Practice is about having multiple dto’s for different use cases. Let’s say we have an api with a set of controllers to handle requests coming from a administration backend and ...
Martin C's user avatar
4 votes
5 answers
10k views

Is it a bad practice to use Singleton for DI in Asp.net rather than Scoped, Transient whenever possible?

We had a conversation (with coworkers) about why we needed to use Singleton for Controller, Business Services, and Repositories. The reason for this, they claim, is because singleton ensures that code ...
Udemytur's user avatar
0 votes
1 answer
185 views

Replacing ASP.Net 4 app with microservices and React

Backstory: My new employer has Dynamics CRM on-prem and it is used by all office staff and other colleagues that are consultants. All other employees are a working force out on various construction ...
MrDim's user avatar
  • 1
1 vote
1 answer
2k views

How to unit test public method which internally calls many internal or private methods which are already individually unit tested [duplicate]

In our ASP.NET Core application, we have many APIs which are calling public method from the service class. Service class is implementing an Interface. Each service method (depending upon complexity ...
WAQ's user avatar
  • 113
3 votes
2 answers
1k views

Why do backend web frameworks use "MVC" when they have no persistent UI to update?

Model View Controller (MVC) is focussed on UI based applications. In MVC the model notifies the UI (view) when its values change and the view then decides what and if to update. I can understand this ...
Eoin's user avatar
  • 309
0 votes
1 answer
404 views

How do you identify unused parts of app and web .config files in .NET? [duplicate]

I am working on removing obsolete/unused pieces of configuration from a .NET product starting with appSettings. There are multiple solutions and I've noticed that appSettings can be in a .config file ...
Astrophe's user avatar
  • 113
1 vote
2 answers
319 views

Colleague wants web apps to behave like Windows desktop programs

I have been creating new ASP.Net web apps for my workplace intranet (it is a closed system, not accessible to customers) and also re-creating some existing Windows programs as web applications. One ...
BreakingGnus's user avatar
1 vote
1 answer
3k views

why controller lifetime is transient by default in asp.net core? [closed]

I know the lifetime of the controller class is transient by default, but I think it's better to be singleton. should explain to me why creators choose transient instead of singleton or scope lifetime? ...
Mujan's user avatar
  • 141
0 votes
2 answers
64 views

Strategy for Chrome timing out on a Database cleanup job which takes a long time

I have a notifications app which sends users notifications. It uses a .NET core backend, an angular frontend and Cosmos DB. Within this I have an API endpoint function which is linked to a button used ...
Watchdogs1499's user avatar
-1 votes
1 answer
189 views

ASP.NET Web API - what is the design pattern?

In Visual Studio, ASP.NET MVC project template is designed for MVC pattern, but what about ASP.NET Web API project template? I know that we can create API from MVC project, also we can build MVC app ...
veryfreaky's user avatar
1 vote
2 answers
111 views

How to provide error details back to REST request?

In an ASP.NET MVC 4 REST API application, we have SQL errors which are occuring during the request. However, since the requests are big, we are streaming the data back to the client, which means we ...
drew's user avatar
  • 29
-2 votes
1 answer
60 views

How to deliver a website to the customer VM (real server) with a trial period?

I have a website that was writing using .net stack technologies. It is accessible via the internet. Some of my potential (Enterprise) customers want me to install the whole website on their own VM and ...
Sanprof's user avatar
  • 107
3 votes
1 answer
567 views

ASP.NET MVC Caching of ViewModels

My question is regarding caching and ViewModels in ASP.NET (Core) MVC. I have a service which injects a Repository<T> which is used to fetch domain models from the database. The service layer ...
Duane's user avatar
  • 139
1 vote
1 answer
171 views

Is there a library or algorithm I can use to solve this type of problem efficiently in C# (.NET Core 3.0)?

I'm having trouble defining this problem space (example below), where to look, what to search etc. and would appreciate any help with suggestions of algorithms or libraries that I should look into. I'...
3r1nnn's user avatar
  • 29
0 votes
0 answers
70 views

Where to carry JWT Tokens in Requests

I have an AspNet application which I'm authenticating using a separate AspNet Core application. It returns a JWT token which is then carried in a Http Cookie. The AspNet application validates each ...
user3167162's user avatar
0 votes
1 answer
42 views

When dealing with session level data in a web app, is it better to maintain a static store of that data, or pass it around as needed?

I have a web app that is capable of connecting to multiple databases that are identical in structure but contain different data; each of our clients who uses the app gets their own copy of the ...
ekolis's user avatar
  • 501
-2 votes
2 answers
58 views

Poor execution of ASP.net software architecture and how I resolve some of their issues

MVC+ xml web service using MS MVC. The project is made with MS ASP.net front end and business logic, and the logic contains does coded with some complicated logics to interact with the front end ...
RAY's user avatar
  • 123
1 vote
2 answers
6k views

How to retrieve a device information (e.g. device name) via web page

What we want to do is very simple We have a check-in kiosk website (C# ASP.NET MVC), and we are trying to set up 30 kiosk stations at each building (each building is about 200 ft away from each other)....
kabichan's user avatar
  • 113
1 vote
0 answers
146 views

Does my ASP.NET architecture implement DDD in a safe and future proof way?

I'm very new to DDD and sometimes confused by it because many people inside the DDD community tend to have very different approaches when it comes to implementation. I tried to summarize all what I've ...
nikstffrs's user avatar
  • 111
0 votes
1 answer
116 views

Treeview column chooser devexpress asp.net WebForms

Due to a lot of columns to chose from, the standard column selector in Devexpress doesn't cut it for me. So I thought of something like a "grouped" column chooser. This should work like a treeview ...
bautista's user avatar
  • 117
-4 votes
2 answers
1k views

Implementing heartbeat in terms of best practice

I have a web application that is running under .NET framework and that is using JS/JQuery on the client side. I am the owner and the only developer of this web application, and it is not totally under ...
Mehdi Souregi's user avatar
0 votes
1 answer
2k views

Is it good practice to save an entire ViewModel in Session (C# ASP.NET MVC)

I have an C# MVC Application which is basically a large application form. We are using a large ViewModel to store all the information the user enters as they pass through multiple steps in the ...
TroySteven's user avatar
1 vote
1 answer
752 views

Should I separate client-side API calls into a separate .js file and class, and reference that?

Summary Instead of calling WebApi straight from a Web Forms User Control, I have created JS class which contains functions returning jQuery AJAX requests. The control would instantiate the class and ...
Brownish Monster's user avatar
-1 votes
3 answers
529 views

Using a separate desktop application for handing scheduled tasks in an ASP.NET MVC Application

I have an ASP.NET MVC application and I will need to execute a task every one minute. The task is: -> Go to database -> Check from Table 1 if a record has value = "something" -&...
knewit's user avatar
  • 17
0 votes
3 answers
5k views

ASP.NET MVC - Using Session Variables or Caching to prevent unnecessary calls. Is it a good practice in general?

I have an application that consists of multiple sections of which each section will need to load data from various API calls. Now I'm thinking of taking advantage of Session variables(or caching) to ...
knewit's user avatar
  • 17
2 votes
1 answer
163 views

Is there a proper way to setup and use fake data in development for a DDD project using DI?

I have a project that has a DD design, and also uses dependency injection. During development, we connect to a test database which contains a former snapshot of production. This works well 95% of the ...
RLH's user avatar
  • 533
0 votes
0 answers
754 views

Elegant way to prevent global CSS styles from being inherited by views (C#, ASP)

I've been working on a web app that's divided up into different web pages (around 20). It's only used within my company and it looks at financial data. It's a few years old and is in dire need of an ...
Bodrov's user avatar
  • 109
2 votes
1 answer
425 views

At what point does a microservices architecture become "worth it" vs. a monolithic ASP.NET web application?

I'm the maintainer of an ASP.NET WebForms application and am contemplating a refresh of the application in order to eliminate dependency on some legacy libraries, add some features, fix some areas ...
Matt's user avatar
  • 2,232
0 votes
1 answer
104 views

I'm building a file management app and need to know the best approach for dealing with folders

So you open up file explorer on your computer and can create folders, add files, rename, etc. I'm doing the same thing in a web application that interacts with the file system on the server. I'm ...
user1447679's user avatar
1 vote
0 answers
288 views

Is ASP.NET Core Identity a leaky abstraction?

As far as I know, the DBContext or underlying persistance technology should be only contained inside the Data layer. Also, it feels very wrong to me to have identity package inside the user ...
Excessive's user avatar
2 votes
3 answers
272 views

Choosing between derived classes and adding an additional property in entity framework

I have the following StudentGroup class: public class StudentGroup { [Key] public int Id { get; set; } //the set of peers who will review the work of the StudentGroup [ForeignKey("...
renakre's user avatar
  • 131
-1 votes
3 answers
89 views

Is it wise to locally debugging a solution with a framework version that differs from production's?

A small, neglected project has recently been reported by users as having time out errors and some object reference exceptions. As I am a recent replacement for a developer who was responsible for this ...
8protons's user avatar
  • 1,369
4 votes
1 answer
1k views

Why is it bad to map between a Model and a ViewModel in an extension method

In a recent Pull Request (PR) of mine, a colleague suggested that it was a bad idea to map between a model and its view model via extension methods. I asked why and he said: It isn't how extension ...
J86's user avatar
  • 297
1 vote
1 answer
587 views

Queue management project - Recommendations

I would like to develop a Patient Queue management system with online booking. In this case there are options to generate queue tokens for various departments. For example dept A will have tokens ...
Surensiveaya's user avatar
2 votes
2 answers
761 views

3 layer architecture In DI based software

I'm building software with 3 layer architecture and asp.net core , as you know the Dependency Injection is Built Into Asp.net core As i know the 3 layer architecture diagram is like this: ...
Curllog's user avatar
  • 131
1 vote
2 answers
2k views

Should an ASP.NET Web API application use Entity Framework in the API controllers?

Im a bit confused about what is best practice when working with Entity Framework and ASP.NET Web API. I am working on a project that contains a iOS/Android app and an API the app will use to ...
Martin C's user avatar
0 votes
2 answers
230 views

Need suggestions for creating field level permissions which can be changed dynamically in an app

This is currently my User-Role-Permission model in the Db schema (excluded other tables to avoid confusion). My implementation goes like this: I have a Customer table and each Role has a different set ...
long_hair_programmer's user avatar
1 vote
0 answers
101 views

How are changes populated to FrontEnd in Microservices Event First scenario?

I've been reading recently about Event First approach to microservices where Event Store is a Single Source of Truth for all the applications (https://dzone.com/articles/data-consistency-in-...
cah1r's user avatar
  • 302
0 votes
2 answers
340 views

Building Client Specific Application on Top of Standard Application

I have a standard application and in this case, it is an Accounting ASP Net MVC application. Now, I have a new client that has their own specific requirements like other fields and some custom ...
Lawrence's user avatar
  • 123
0 votes
1 answer
176 views

Authorization & Profiles considerations for ASP.NET MVC Customer Portal

there's an up and running self-serve customer portal built that I'm trying to make a bit better when it comes to displaying proper items for different client types and auto-logging users. Here are a ...
Daniel Tsvetkov's user avatar
1 vote
1 answer
116 views

Should all my asp.net MVC controllers use Web APIs?

The thing that I don't understand is the prioritization between MVC Controllers and Web APIs. Consider I want to make a website. I can either program to APIs and for the presentational layer, force ...
user335505's user avatar
2 votes
2 answers
1k views

Create a Azure Pipeline for staging then production environments

I have a question about best practice and Azure Pipeline. I have a web site (ASP.NET API old version) I need to publish on 2 environments staging production I think this schema is classic. At the ...
Bastien Vandamme's user avatar
1 vote
2 answers
8k views

How to consume nested objects in API resource

I am building my first web application, it links to the serverside through RESTfull Web API (Angular on client side, ASP.Net Core and EF Core on serverside, Automapper to map API Resources to/from ...
Superman.Lopez's user avatar
4 votes
4 answers
880 views

Refactoring ASP.NET Web Forms App to use MVP vs incrementally rebuilding it using MVC?

My team has inherited a Web Forms application that was built over the past decade or so into a monolithic code base with massive dependencies. In order to maintain this system we are going to have to ...
user avatar
2 votes
2 answers
450 views

Multiple database system design

I am designing a few different systems that revolve around a core system used to manage users, groups, associations between users, group memberships, user profiles and some other things. System A ...
MavisBeacon's user avatar
1 vote
1 answer
661 views

Correct approach to pass data to service layer

I'm curious what's considered the (best) correct way to pass data to a service layer in ASP.net Core. Say I have a Person entity that has a relation to a Image (profile picture) entity and another ...
jerojitov's user avatar

1
2 3 4 5
13