All Questions
Tagged with jquery asp.net-mvc
21,578 questions
0
votes
0
answers
13
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 ...
-1
votes
0
answers
20
views
How to properly handle and display ASP.NET MVC API validation errors in AJAX responses? [closed]
I’m implementing AJAX-based teacher updates in an ASP.NET MVC 5 application with server-side validation. While my API correctly returns validation errors (e.g., 400 Bad Request with ModelState), I can’...
0
votes
0
answers
44
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:
...
0
votes
0
answers
44
views
Dependent SignalR scripts not being created with package VS2022 package install
I am supporting an ASP.NET MVC 5-based web project in Visual Studio 2022. I am attempting to add SignalR support, following the instructions at https://enlightsolution.com/asp-net-mvc-5/signalr-with-...
1
vote
2
answers
105
views
How to keep sticky-header bootstrap table inside a div with dynamic data?
I am using bootstrap-table and dynamically adding my datas into the table (including headers)
I have checked below and other related posts but there's no luck.:
how-to-implement-fixed-header-for-table-...
0
votes
0
answers
52
views
I get an error after implementing UV viewer in my .NET project
I am working on the Universal Viewer (UV) .NET project, where all support is integrated through build files. While the implementation functions correctly for UV, issues arise with other scripts after ...
-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
0
answers
25
views
ASP.NET MVC : jQuery datepicker inside bootstrap modal
I am stuck on a strange issue, I have a jQuery datepicker inside a Bootstrap modal popup. It works fine for some browser resolution, but not for all. This is how I resolved it, but I want some more ...
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="...
0
votes
0
answers
26
views
MVC catch event when browser back button is clicked
I am doing an MVC 6 Application.
I have a primary Menu in _layout Page. Every Manu has a Landing page, and I can navigate throughthat pages.
I use a function to detect the browser's Back button and I ...
0
votes
1
answer
45
views
Html.HiddenFor assignment
I am trying to assign a value after the user clicks a button. My element is initialized using Html.HiddenFor as follows.
@Html.HiddenFor(model => model.WirelessServices[Model.WirelessServices....
0
votes
2
answers
49
views
Passing a jQuery variable to @Url.Action in ASP.NET MVC
This is an example of a function that takes the ID of a thumbnail image and when clicked brings up the full image in a modal:
$('.imageLandscapeFloatLeft').on('click', function () {
var vIDString = ...
0
votes
0
answers
58
views
Unable to re-render newly saved data to a partial view in ASP.NET MVC application
I am working on an ASP.NET MVC application and in html on the click of a button, I call the function shown below - AddGroupFilter.
This passes two fields to the AddGroupFilter controller method and ...
0
votes
1
answer
38
views
Dynamic form in Asp.net framework and Jquery not handling the index recalculation
I’m working on a form that allows users to dynamically add and remove expense rows using jQuery. The issue I’m facing is with maintaining sequential indexes for each row, even after adding or removing ...