All Questions
17,935 questions
0
votes
0
answers
9
views
DataTable is always empty in ASP.NET MVC
I am working with jQuery datatables, but the datatable is always empty when the page loads. On inspecting the network tab, the request returns an empty response but when debugging the controller ...
0
votes
0
answers
43
views
How to implement client-side and server-side validation for teacher updates in ASP.NET MVC?
I’m working on a school management system (ASP.NET MVC + MySQL) and need to implement update functionality for teacher records with robust validation. Here’s where I’m stuck:
Current implementation:
...
1
vote
2
answers
60
views
Binding Value after Jquery gives Id value
I have a jQuery function that is giving an id a value in my <EditForm>. This value is populating in my <InputText> but when saved doesn't bind to the variable(ex @bind-value="...
1
vote
1
answer
67
views
When AJAX POST to C# httpPost medthod hasProblem
When I using jquery Ajax POST method to controller like:
var data = {
ID: '1',
name: 'TEST',
}
$.ajax({
type: "POST",
data: JSON.stringify(data),
dataType: &...
1
vote
1
answer
70
views
Passing entity model data into Bootstrap Modal
I'm trying to pass data to a modal. After searching around the internet and following bootstrap I found a couple of ways. 1) is by passing the model through data-bs-whatever="@Model", ...
-1
votes
1
answer
54
views
Get Session Model from webpage using jquery [closed]
I am doing an MVC 6 App. I have a model like this
public class SearchModel
{
public string SSN { get; set; } = string.Empty;
public string EmployeeNumber { get; set; } = string.Empty;
...
0
votes
1
answer
109
views
How to handle login errors and display them in a modal window without redirecting?
everybody. I have a modal window and a method for Login, i.e. there is no separate view for the Login page.
I am facing a problem, when the login data is not correct, it displays an error directly in ...
0
votes
1
answer
54
views
Multiple actions were found that match the request for get in controller
I seem to be going around in circles and going into debug mode doesn't seem to help at all. Looking at the Controller and Model for Members, I can't see any duplicate signatures (code blocks below) ...
0
votes
0
answers
53
views
Search AutoSuggest Textbox working with Visual Studio but not working after upload in website
I want Auto suggestion when user Search anything in my website in TexBox1 it will auto suggest some text from my sql databse below TextBox1. I am using C# asp.net. Following code working in Visual ...
0
votes
1
answer
30
views
Problem in passing a form with input fields and table data from view to controller in ASP.NET Core using jQuery Ajax
I have a form designed in ASP.NET Core, which contains input text fields, dropdowns and also a table where the user can list their past history of distributorship for various companies. Now I want to ...
0
votes
2
answers
51
views
My ajax post request doesn't work in my ASP.NET MVC project
I'm trying to make a request to controller but it doesn't work. The first console.log() shows the correct id, so I think I passed it right in the html button. The id parameter is always 0 when it ...
0
votes
0
answers
48
views
Data Tables Refresh on Edit / Update
In my project, I have been using Data tables to show the list of data from the database per required view.
So in the view, I have this code
<div class="table-responsive mt-4" style="...
1
vote
1
answer
847
views
Uncaught TypeError: Cannot read properties of undefined (reading 'sClass') while using datatables
In Index.cshtml: I try to show list of products by using datatables features by using the id="tabledata" on table html tag
@model List<Product>
<div class="card shadow border-...
0
votes
1
answer
66
views
How to hide asp combobox according to selected asp combobox by javascript in asp.net
I have two asp combobox one with the name of cmb_stocktype while second with the name of cmb_tagno. Now, my question is that when I select cmb_stocktype with the value of WithStock then cmb_tagno ...
0
votes
2
answers
64
views
Dynamically reflect total and quantity amount
I'm having trouble getting the products quantity to reflect the total amount in the razor page. I want the client have the ability to add/remove products when they're in the cart to dynamically change ...