Skip to main content

Questions tagged [asp.net-mvc]

The ASP.NET MVC Framework is an open source web application framework and tooling that implements a version of the model-view-controller (MVC) pattern tailored towards web applications and built upon an ASP.NET technology foundation.

Filter by
Sorted by
Tagged with
1 vote
1 answer
55 views

My ASP.NET MVC app is building fine still, but since moving to VS 2026 the intellisense is broken. When I hover over the "red squiggles", I get an error CS0103 message: the name 'model' ...
cavillac's user avatar
  • 1,321
0 votes
1 answer
43 views

I have a web application implementing Azure Search. It is also using interception to build filters for the search prior to execution. The path of execution is: controller calls search provider ...
Matt's user avatar
  • 1,196
0 votes
1 answer
75 views

I'm new to ASP.NET MVC and want to create a web-based recipe app. In this app, I want to read XML files from my computer or mobile. For that reason, I want to copy the file location into a text file ...
Kees Dapperens's user avatar
0 votes
1 answer
87 views

I have an ASP.NET MVC web application on .NET 4.6 that works just fine in one environment, but fails in the second, when all configurations are the same. Doing a bit of debugging showed that the ...
Sallew's user avatar
  • 3
0 votes
0 answers
58 views

I’m using ASP.NET (.NET Framework) and trying to display an equirectangular tiled panorama using Photo Sphere Viewer v5.14.1 with EquirectangularTilesAdapter. The ...
Adi's user avatar
  • 27
1 vote
0 answers
69 views

So I actually implemented it, but there is one last problem I need to resolve. My implementation can be summarized by these two classes: Hooking into the ASP.NET MVC startup code to register ...
mark's user avatar
  • 63.8k
Best practices
0 votes
1 replies
36 views

I'm working on a custom e-commerce CMS built on ASP.NET MVC 5. I need to send marketing / analytics events server-side to multiple platforms such as: Google Tag Manager Server-Side Facebook ...
Tbz's user avatar
  • 13
0 votes
1 answer
131 views

I'm working with Visual Studio 2022 v17.14.23 on my very first Blazor project. I ran into an unexpected behaviour when leaving a TODO comment in a .razor file: as ...
AmicoHuber's user avatar
0 votes
0 answers
48 views

I have an ASP.NET MVC application which retrieves current logged in user id (Windows login id). It works in Visual Studio, running with localhost. But after publishing, this value is returned as empty....
Sjk's user avatar
  • 387
1 vote
0 answers
85 views

I have an ASP.NET MVC form with cascading dropdowns (Category -> Sub Category). Everything works fine when the form is rendered normally in the view. However, I changed my code to render the form ...
Mohamed Abdul Hamid's user avatar
0 votes
1 answer
80 views

I have a form in a partial view. The view receives a "model". ...
AMP59's user avatar
  • 45
0 votes
1 answer
71 views

I've created a custom API page in Dynamics 365 Business Central (sandbox environment) for my custom "Warehouse Activity Line" table. ...
LordOrbnauticus's user avatar
0 votes
1 answer
31 views

I'm using Filepond to edit an item with its images. The user should be able to modify the images (move, delete, add). The previously uploaded image files are loaded (from a folder on the server) and ...
AMP59's user avatar
  • 45
1 vote
0 answers
67 views

I am implementing Two-Factor Authentication in a C# & ASP.NET MVC project using the GoogleAuthenticator NuGet package (v3.2.0). The issue: the authentication works perfectly on all desktop ...
J M's user avatar
  • 471
1 vote
1 answer
144 views

I'm using Visual Studio 2022 17.14.21. I have a VB.Net .NET Framework 4.8 based ASP.NET project that I upgraded to SDK-Style using the "Upgrade Assistant". After the migration, I manually ...
sevzas's user avatar
  • 841
0 votes
1 answer
79 views

I have added Microsoft DependencyInjection nuget to a .NET 4.8 project and used this post to help set it up: https://stackoverflow.com/a/73414927/2739613 My code looks like this - ...
stefan's user avatar
  • 313
0 votes
0 answers
33 views

In my ASP.NET MVC 5 project, I am migrating to a strict Content Security Policy (CSP) to eliminate the use of 'unsafe-inline' for scripts. While I have successfully ...
Priyanshi vasoya's user avatar
Best practices
0 votes
2 replies
87 views

From my research, best practice for project structure in ASP.NET seems to vary massively, particularly depending on the size of the application. I found this page from Microsoft: https://learn....
92carmnad's user avatar
  • 172
Best practices
0 votes
3 replies
66 views

I come from a MVVM in WPF background moving towards ASP.NET MVC. I have a model that is composed of another model called Message, like so: ...
92carmnad's user avatar
  • 172
Advice
0 votes
2 replies
56 views

I have this scenario: I have an ASP.NET API which is deployed on IIS under the default web site. I have added the API by right click on default web site -> add application. API is working fine and ...
Midlaj's user avatar
  • 31
0 votes
0 answers
50 views

I am experiencing an issue when using Syncfusion PDF Viewer with PDF files after making edits using the Draw Ink tool or any other tools : I opened a PDF file using PDF Viewer. I added text using ...
shahad tariq's user avatar
2 votes
1 answer
74 views

I've implemented SignalR as an add-on to a user-to-user messaging system. I use it to notify the recipient that they've received a message. This works when the recipient is already viewing their ...
AMP59's user avatar
  • 45
0 votes
0 answers
45 views

SustainSys has been working for webforms, ASP.NET MVC on .NET 4.8, and ASP.NET Core on one server for a while. I want to move the apps to some other servers using the same certificate. I was able to ...
Buggy's user avatar
  • 1
0 votes
1 answer
94 views

I'm working on a messaging platform type sales platform. A buyer can contact a seller about a product. Their message concerns a specific product. The exchange of messages is only possible between a ...
AMP59's user avatar
  • 45
2 votes
2 answers
224 views

I'm trying to add a dropdown to the connectorsSettings section in the form builder using FormsConnectorDefinitionsExtender. My ...
Muhammad Ahmod's user avatar
0 votes
0 answers
50 views

After several days and multiple attempts using examples, I am still struggling to get a partial view to page inside a tab control. In the code below, when selecting the 'tab4' Tab 1st time, it ...
PeteN's user avatar
  • 15
1 vote
2 answers
124 views

I have the following classes in my (code-first) Entity Framework Core database schema: ...
In Hoc Signo's user avatar
0 votes
0 answers
53 views

I have an ASP.NET MVC application, that uses the following package ActionMailer.net This has been going beautifully for many years, but lately we have been hitting issues with the mail servers we have ...
Crudler's user avatar
  • 2,316
0 votes
1 answer
117 views

.NET has [FromQuery] to get query parameters on the path. For instance my/foo?bar=1 maps to: ...
Keith's user avatar
  • 157k
1 vote
1 answer
122 views

My program has recently began support of Keycloak and I have been doing my best to learn it while managing my other tasks. However, I recently came across an issue that I simply can not seem to solve. ...
Cyber's user avatar
  • 97
1 vote
0 answers
72 views

I am trying to dockerize an existing ASP.NET MVC application running on .NET 4.5.2. I am using ...
Ganesh Pg's user avatar
0 votes
0 answers
80 views

I'm running a .NET framework 4.7.2 application using OWIN cookie authentication under IIS as a virtual application locally (e.g., https://example.test/cms/) but I end up in and endless redirect loop ...
IkBenDeSjaak's user avatar
0 votes
1 answer
152 views

I have a simple ASP.NET MVC app with .NET 4.8. I want to use keycloak as security management and my app connect to it via openid connect protocol. To do this, I've created a ...
hdv212's user avatar
  • 95
1 vote
1 answer
76 views

I have an iframe embedded in an ASP.NET web form. I have included what I thought was the correct Content-Security-Policy values in the web.config. However, I still ...
Joel's user avatar
  • 141
0 votes
0 answers
59 views

Starting yesterday, an ASP.NET MVC web application running on .NET 4.7.2 that is called in an IFrame stopped working with the following error: The required anti-forgery cookie "...
Patrick's user avatar
  • 2,795
0 votes
0 answers
57 views

I have an ASP.NET MVC application (on .NET 4.8). Currently, the DevOps team has set up Nginx to handle requests with: location: / and this works fine. Now they want ...
yousef saeedi's user avatar
1 vote
1 answer
154 views

I’m running an ASP.NET MVC application on IIS. The site structure is simple: a single IIS server (not a web farm or cluster) with one site that hosts several applications. From time to time, I get the ...
Soner Kochan's user avatar
0 votes
0 answers
66 views

I have an ASP.NET MVC application that is configured to use SQL Server to save the session state. If there is an issue with the session state connection string (invalid password, server, etc) my ...
Jim R's user avatar
  • 55
0 votes
0 answers
75 views

I have been scanning our deployed (ASP.NET Framework 4.7.2) applications for vulnerabilities and on one of them have encountered the OWASP warning Generic Padding Oracle. My understanding of this ...
Martin Vaughan's user avatar
2 votes
1 answer
121 views

I recently upgraded a .NET Function App from the in-process worker model to the isolated worker model. After the upgrade, I noticed that none of the HTTP-triggered APIs were returning any data. On ...
Mervyn Ludick's user avatar
0 votes
1 answer
39 views

This a continuation of this question: ASP.NET MVC Create View - Where to place ValidationMessage (Fluent Validation) for a variable ASP.NET MVC Firstly, all the validation rules are firing except the ...
Sally Parkes's user avatar
0 votes
1 answer
71 views

I have this validator class: ...
Sally Parkes's user avatar
1 vote
1 answer
69 views

I am using ASP.NET MVC. I have a PIF controller and on the details view, I have data showing from a variety of other models, one of which is called SAEs (I will use this as the example). For each of ...
Sally Parkes's user avatar
0 votes
1 answer
49 views

I am using ASP.NET MVC with a SQL database backend. I have a table that lists individuals which I use for two fields in another table. One field is for the Chief Investigator (ChiefInvestigatorID), ...
Sally Parkes's user avatar
1 vote
1 answer
56 views

I'm using ASP.NET MVC. This code sits in the Index.cshtml view (I will also place it in the details view). I have a href link ...
Sally Parkes's user avatar
0 votes
0 answers
85 views

Using model binding, ASP.NET MVC can take FormData from a form with repeating elements, signified by the use of indexes in square brackets, and populate a .NET ...
Mr Rusty's user avatar
1 vote
1 answer
197 views

I have an Outlook web add-in which reads the currently selected email from Exchange Server, using the Graph API, before doing further processing on it. The relevant code is: ...
Christian Hayter's user avatar
0 votes
1 answer
50 views

I have a kendo grid on an MVC site with several integer columns, and I am using a row filter. The problem is that when you enter a number in the filter, it shows up with commas and two decimal places. ...
ShawnO's user avatar
  • 1
0 votes
0 answers
81 views

I have multiples PDF created with the iTextsharp library in C#. Those PDFs are created and are also using AcroFields.Item to create fields and field them with the ...
Keras-JOB's user avatar
  • 135
0 votes
1 answer
123 views

This project is ASP.NET MVC Framework 4.8 with Entity Framework 6 and uses: dynamic GetSystemSetting(string paramCode, string paramType) It contains Int, Float, ...
Guhan Srinivasan's user avatar

1
2 3 4 5
4014