All Questions
350
questions
0
votes
1
answer
37
views
How to change from readonly to not readonly of input in ASP.NET Core
MODAL
<div class="modal fade" id="residentModal" tabindex="-1" role="dialog" aria-labelledby="residentModalLabel" aria-hidden="true">
...
0
votes
1
answer
44
views
Display the all the details of Resident after clicking the view button using ASP.NET Core
Manage.cshtml
<table class="display table" id="ManageResident" style="width:100%">
<thead>
<tr>
<th>Resident ID</th>
...
0
votes
1
answer
70
views
FileContentResult return - 2 different controller methods, different result
I am using ASP.NET Core and ClosedXML to generate an Excel export.
Export Method 1
Here is the controller method that DOES return an .xlsx file to the browser. The method gets called from a .cshtml ...
1
vote
2
answers
41
views
Cascading dropdown AJAX loop call
there is a part of my form in which a user can enter the building and room and click the add button if they want to enter another building and room. I am using AJAX to populate the rooms based on the ...
-4
votes
1
answer
32
views
Recorder Screen in .net [closed]
I have website exemption system i want when user open website record session and save video to wwwroot and when finish session end video i want in JavaScript or c#
project : asp mvc core
when finish ...
0
votes
0
answers
67
views
When i load my PartialView html using jquery, an controller that i didn't call is called with 0 value id parameter
I have this View Edit.cshtml
@model ProdutoViewModel
@{
Layout = "_Layout";
}
<nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb" class="...
0
votes
1
answer
28
views
ASP.NET Core MVC validations not being displayed on view for child entities
I'm experiencing the issue while displaying errors in my view for child element.
I've got 2 entities Restaurant and Menu with their respective relationships described as below:
public class Restaurant
...
0
votes
1
answer
46
views
ASP.NET Core - Change Url of Product Details when select Color
I am working on E-commerce Laptop. I want when the user chooses another color in the select drop-down, it will redirect to the product of that color.
I am using JavaScript to redirect the URL, here ...
-1
votes
1
answer
47
views
How to make a dropdown value is selected during the page load based on the values fetched from DB in .net core?
I have fixed dropdown values in the .cshtml file.
`**
Yes
No
Ask Me` like this..
I'm saving these values into the DB and during the page load I'm fetching the values and assigning into the ...
0
votes
0
answers
77
views
Why are my parameters always passed as null to my OnPost method?
I've got a simple function that receives a string representing the binary data of a PDF file, a filename string and an integer employee ID.
This is the function:
public JsonResult ...
0
votes
1
answer
73
views
Disable Login details from being autofilled into input fields .Net Core Identity
When I want to create an account I don't want any fields being populated by chrome passwords as I have a hidden field that appears if a certain option is selected from a select. The field is shown, ...
0
votes
1
answer
79
views
when change checkbox from Yes to No not sent value correctly to submit function when click approve button?
I work on asp.net MVC application I face issue when change check box (Yes to No) OR (No to Yes)
not detect value true or false correctly .
I have two check box
Yes represent true value
No represent ...
0
votes
2
answers
395
views
Why does FormData cause 400 bad request?
UPDATE 3:
//program.cs
using Microsoft.EntityFrameworkCore;
using Zeel.Onboarding.DataModels;
using Zeel.Onboarding.Models;
var builder = WebApplication.CreateBuilder(args);
// Add services to the ...
1
vote
2
answers
62
views
Why doesn't any jQuery code and some icons work after loading the partial view in ASP.NET Core?
I have a page with a list of information, and I can search this information using a series of fields and Ajax. I can reload the information on the page by loading it as a partial view. However, after ...
-1
votes
3
answers
303
views
How to add form validation to a modal in ASP.NET MVC?
I need to create a form in a modal which has a required field. The user must only be allowed to submit the form once the required field is filled and if it is empty an error message must be displayed. ...