All Questions
Tagged with asp.net-core-mvc javascript
514 questions
0
votes
1
answer
74
views
How to use cache busting with WebOptimizer?
I am using the LigerShark WebOptimizer library (GitHub link) in a .NET 9.0 MVC application. I want to enable cache busting, but whenever I do so, I encounter some difficulties. I find that the ...
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", ...
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 ...
-2
votes
1
answer
42
views
Font Path is invalid in font-face
I need to use specific Font in ASP.NET Core MVC Project, So, in css file:
CSS:
@font-face {
font-family: "CustomFont";
src: url(css/Custom-VariableFont_slnt.ttf);
}
But I get error ...
0
votes
0
answers
143
views
Chart.js Panning Not Working in ASP.NET MVC Application Using chartjs-plugin-zoom
I'm developing an ASP.NET 8 MVC application where I'm using Chart.js to display two real-time line charts: one for "Penetration Depth" and another for "Hydrophone Audio Levels." I’...
1
vote
1
answer
33
views
"Uncaught TypeError: Cannot read properties of undefined (reading 'length')" in DataTables format function when accessing child row
Problem:
I'm trying to display detailed information about each teacher's qualifications in a DataTables row expansion using JavaScript. The server-side code in ASP.NET Core returns a JSON object ...
0
votes
0
answers
33
views
Syncfusion asp.net grid didn't show data
I am developing a small application in Syncfusion ASP.NET Core using the Grid control. My goal is to display data in the grid using the following setup:
<ejs-grid id="SourcingGrid" ...
0
votes
1
answer
74
views
Razor page issue .net 8
This is a Razor page issue. I have simple text box and corresponding search button created in the razor page, say it as index.cshtml.
<head>
<meta charset="UTF-8">
<...
0
votes
1
answer
108
views
How to render the js content written in a cshtml in a script tag in ASP.Net Core MVC
I have a cshtml file where i declare all my route data.
FileName: _Routes.cshtml
@{ Layout = ""; Context.Response.ContentType = "text/javascript"; }
var commonRoutes = {
userList:...
0
votes
1
answer
71
views
how do i return the json object of my ajax GET request to an API in Asp.net MVC
Ok hi. I'm having a lot of problems with a project im building. I want to use Ajax to make a request to the Google.Books api so I can make book searches from my website. Its a Asp.net MVC project. I'm ...
0
votes
0
answers
52
views
ASP.Net Core MVC - Deleting table rows in view is not received properly in POST action method when form submits
I have a table in ASP.Net Core MVC Project. It is bound to a ModelList object MandateCheckDetailsList in my ViewModel. I have a Delete button in each row which is used to delete the particular row. ...
0
votes
2
answers
59
views
Script to dynamically create a 3 columns per n rows from a list
I'm coding a MVC app with ASP .NET 8.0 framework and following code should retrieve a List from my controller to create a 3 columns per n rows table in my view. It run well till the last row:
tableau....
1
vote
1
answer
98
views
Row transferring is not working between jQuery datatables that uses ajax call
I am working on an ASP.NET Core MVC project in C#, and I have 2 jQuery datatables (Exclude table and Include table) horizontally aligned. In between these 2 datatables, there is 2 buttons (right arrow ...
0
votes
1
answer
56
views
JQuery Select2 dropdown not able to set the text in MVC
I am using the select2 jquery plugin. I was unable to set/assign the text to the select control. I used select2 with trigger function for setting the value. Firstly the control which I have taken is ...
0
votes
1
answer
58
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>
...