Skip to main content

All Questions

Tagged with
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 ...
Adam Lukman's user avatar
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: ...
Priyank Shah's user avatar
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="...
clickjaw's user avatar
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: &...
Ansel Liou's user avatar
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", ...
DonDavid12's user avatar
-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; ...
Diego's user avatar
  • 2,378
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 ...
amg63's user avatar
  • 13
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) ...
P S's user avatar
  • 33
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 ...
wowfi pax's user avatar
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 ...
Subho's user avatar
  • 3
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 ...
Pedro Henrique Miranda's user avatar
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="...
Dev Beginner 's user avatar
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-...
Maruf Hasnat's user avatar
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 ...
s.k.Soni's user avatar
  • 1,370
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 ...
DonDavid12's user avatar

15 30 50 per page
1
2 3 4 5
1196