33,584 questions
0
votes
1
answer
45
views
Set dotnet version to use for debugging
Is there a way I can set the dotnet version to use for the debugger. I am using the one (debugger) that comes with C# Dev Kit. I currently have dotnet 8 and dotnet 2.2 installed but the debugger ...
1
vote
0
answers
134
views
Send array of objects to .NET controller action
I am trying to pass a javascript array of objects to a .NET controller action List<> parameter. Below is my C#
public bool ImportACE([FromBody] List<Element> elements)
{
foreach(...
0
votes
0
answers
80
views
hight memory usage problem in MVC web app
in mvc web app, first chrome memory snapshot is ~ 51mb
after i call ajax to re render partialView,
second snapshot take double or more! ~ 100bm.
and in every call partialview memory usage get larger ...
0
votes
0
answers
63
views
How to create a route with parameters only, while still retaining predefined routes
I am attempting to create a very flexible routing system that allows users to configure their own publishable url paths to their own content pages, sort of like a CMS. To achieve this, I created a ...
-2
votes
2
answers
129
views
Need to download a file to for independent requests [closed]
I am developing a process in MVC to take input from a database object and convert the data to an Excel file export. I am using NPOI tool to do this.
The current conversion process is made completely ...
-3
votes
1
answer
104
views
I'm trying to use Spring Tool Suite for TDD and I get this error while running code
It appears to be a syntax error though I can't seem to find it in my code.
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Before;
import org.junit.Test;
import org.junit....
0
votes
0
answers
57
views
Error Store data with React Laravel Database Not Found
I want to store a data customer with this system, I was copy from other my system. the other system is worked fine but why this system not work as the other
FormCustomer
import { PlaceholderPattern } ...
0
votes
0
answers
127
views
Problem with $_SESSION in PHP: array(0) { } before storing user data
I'm trying to authenticate a user and store the data in the session.
I expected that the session should contain the user's data after login, but the current behaviour is that var_dump($_SESSION) ...
2
votes
3
answers
228
views
Manage and consume npm packages in ASP.NET Core MVC application using Visual Studio
I installed couple of npm packages in an ASP.NET Core MVC app following instructions at one of the MS Learn's how-to guide: Manage npm packages in Visual Studio
After setting up everything, my ...
4
votes
1
answer
105
views
Dynamic TableView creating with JavaFX
I'm new. Let's say I want to create a TableView dynamically based on someString with a query like this:
TableView<???> table = new TableView<>();
ResultSet rs = statement.executeQuery(&...
0
votes
0
answers
21
views
C# MVC asp.net core, wouldn't load Views after changing path [duplicate]
I have my MVC asp.net core project, it normally worked with structure ProjectName/Views/Main/index.cshtml, but after changing it to ProjectName/Web/Views/Main/index.cshtml, it won't load my views. In ...
0
votes
0
answers
76
views
InvalidOperationException: Unable to resolve service for type 'Amazon.S3.IAmazonS3' while attempting to activate DocumentController'
I have an ASP.NET Core MVC app that uploads a document to AWS S3 and upon success, adds a row to a database. The project compiles clean, but when I run it the browser throws the following:
I have ...
0
votes
0
answers
71
views
Handling input requests in MVC pattern with an FSM
As a university software engineering project, my group has to make a videogame out of the board game Galaxy Truckers (rules summary, if it helps), using the MVC pattern (we're using Java as a language,...
-1
votes
1
answer
47
views
PDO to draw data from parent tables through the conjunction table
How could you draw data from the parent tables, through the conjunction table using PDO in PHP & MySQL?
I have a Games table with gameId and gameTitle. and a Platform table with platformId and ...
1
vote
0
answers
43
views
MVC 6 JavaScript post not working on server but works on localhost (503 Service Unavailable) [duplicate]
I have an ASP.NET Core MVC application where a JavaScript fetch POST request works perfectly on localhost but fails with a
503 Service Unavailable
error when deployed to IIS. The request is made to ...
0
votes
0
answers
39
views
Delay when loading transacions (BLS) SAP MII
I’m reaching out because I’m encountering an issue when making a request for 3 objects (BLS - SAP MII Transactions) to display information on the screen. The problem is that the last object doesn’t ...
0
votes
1
answer
24
views
Why would checkboxes show text in checkbox instead of a checkmark?
I have an odd problem that I can not seem to resolve. I have an MVC Net8 website. On a Razor view of the website, a few checkboxes show "True" or "False" in the checkbox and not a ...
0
votes
0
answers
29
views
MVC page has form. but the control is not hit when debug the jquey code
MVC page has form. but the control is not hit when debug the jquey code.
the breakpoint is not reaching inside of this code : document.addEventListener("DOMContentLoaded", function () {
The ...
-1
votes
1
answer
82
views
How to use the API in the same app in express.js
let's say I have a REST API in express. For example this endpoint
async function getStoreController(req, res, next) {
try {
const { id } = req.params;
const storeData = await Stores....
0
votes
0
answers
77
views
call update API if data exists in database from store method'
I’m building a Laravel API, and I need to implement a logic where:
First, I check if a particular record exists in the database table
1.If the record exists, I want to call an external update API with ...
0
votes
0
answers
52
views
retrive form data in controller method in codeigniter 4 and routs requirements
i have a form submission in my view page as follow:
<form class="propertyForm" method="POST" action="<?= url_to('props.estimate.price'); ?>">
<...
0
votes
1
answer
67
views
"Laravel Route Redirects to Deleted View Despite Clearing Cache and Restarting Server"
I just started learning Laravel, and I faced an issue. I made two view files. The first one is home.blade.php and the second one is welcome.blade.php. In the routes folder, web.php, I used the Route::...
0
votes
0
answers
23
views
new Api Proxy in constructor vs. adding scoped service
We currently use a mix of either approach. Is there a (performance) benefit of one vs the other?
example 1: ILogicAPI injected into controller constructor:
services.AddScoped<ILogicAPI, LogicAPI>...
0
votes
1
answer
56
views
Conditional @section for stylesheets and scripts
I was curious if there is a way to make my scripts conditional based on the environment?
I've seen some examples similar to mine but for some reason the scripts do not render when published.
...
0
votes
0
answers
49
views
How do we decide whether we need to use ModelAndView or String in the method of Controller of Spring?
I have seen somewhere we use ModelAndView or Model or String in the method of Controller - how do we actually decide what's need to be used ?
I am just confused after reading multiple resources. Can ...