5,287 questions
0
votes
0
answers
100
views
How to set up 3 update panels
I have 3 panels and would like to use update panels as follows for better display. ASP.NET / VB.NET
Panel 1:
2 text boxes
2 drop down lists
Panel 2:
2 buttons
Panel 3:
3 drop down lists
1 checkbox
If ...
0
votes
0
answers
52
views
Text not displayed in modal despite the results
I have a function PurgeXYZs in the page's aspx.cs file and the page is also linked to a JS file for frontend, i am trying to get results of the function "managexyz.aspx/PurgeXYZs" which are ...
0
votes
0
answers
35
views
Power BI report not embedding inside ASP.Update panel
I am using the ASP.NET WebForms framework and embedding the report using a JavaScript SDK approach.
The powerBIReportContainer div does not display the report when it is placed inside an <asp:...
0
votes
1
answer
46
views
Changing dropdownlist value makes duplicate page in razor pages
I want to implement searching, pagination and sorting in razor pages with Ajax. I use viewcomponents to show data from database, for that these are my code by files
in ViewComponent.cs
public ...
0
votes
2
answers
95
views
AJAX implementation doesn't work properly for "like" button ASP.NET Core 2.1
I want to implement "like" button (only like, not dislike) in my project written on ASP.NET Core 2.1 version. This is discount classified site and want visitors to be able to like posts they ...
0
votes
1
answer
36
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
1
answer
75
views
ASP.NET Core MVC ecommerce filtering products, brand name, categories with Ajax
Here is product filtering frontend HTML code:
Filtering Sidebar
<div class="widget widget-collapsible">
<h3 class="widget-title">
<a data-toggle="...
0
votes
1
answer
51
views
jQuery ajax functions doesn't work without error in my project
I want to load data to a div by id commentList by Ajax function. I need to send the data to an action named CreateComment by a form tag using Ajax. After creating the comment I need to load the data ...
0
votes
1
answer
81
views
How to display a success or failure message after an AJAX call in an ASP.NET webforms app
I am working on an ASP.NET webforms project written in VB.Net. I want to call a web method in the code behind using Ajax. The button click event correctly calls the code behind method. However after ...
0
votes
1
answer
40
views
Ajax url Data result
Im trying to make a single view crud operation on ASP.NET MVC
and having trouble getting data from ajax call and display it on a input field.
here the json actionresult
heres the ajax call
heres the ...
0
votes
1
answer
133
views
How to make my datatable reload with new data?
I am using ASP.NET MVC for a project and I have a datatable which is working fine when the page loads but when I submit a form for searching it returns the correct response in json but it does not ...
0
votes
1
answer
54
views
ASP .NET 6. Hosted on Azure. GetAllVehicles() Ajax call works in Visual Studio 2022 but errors out on Azure
<script type="text/javascript">
$(document).ready(function () {
$('#vehiclesTable').DataTable({
"processing": true,
"serverSide":...
0
votes
0
answers
56
views
Tweets are not loading on the dashboard automatically
In this jQuery code, what I'm trying to achieve is that when the logged-in user clicks the follow button, the tweets of the person they are following should appear on the dashboard, and the follow ...
0
votes
2
answers
160
views
Ajax Authorization headers or http cookies for jwt authentication
What is the best and secure way to pass Jwt token to ajax request call.
I have two options
Option 1. Pass jet token in ajax headers as below but Jwt token is visible in client response.
$.ajax({
...
0
votes
0
answers
52
views
Checkbox is not selecting paginated data in JavaScript
I have a C# MVC project , in which I am trying to select all the checkbox using header checkbox in table. but on selection it only selects first page data not all paginated data.
I am using AJAX for ...
-1
votes
1
answer
39
views
i want to pass all list after doing the post operation in Ajax
***I am trying to pass a list from controller to ajax in success. Its a post request from ajax. ***
When I am trying it comes as [model model]
*This my controller
public JsonResult CreatePackage(...
1
vote
1
answer
498
views
ASP.NET Core: AJAX call not reaching controller method
I'm encountering an issue where my AJAX call isn't reaching the controller method in my ASP.NET Core application. Despite setting up the AJAX call and controller method, I'm receiving a 404 error. ...
0
votes
1
answer
106
views
Display a list as Modal
I want to display the list of cities of each state in a modal form when the user clicks on that state. Unfortunately, whatever I did, I could not solve this problem. I will show the ASP.NET Core code ...
0
votes
1
answer
40
views
Can't get data in controller from Ajax in ASP.NET Core MVC
I am trying to pass data from a view to my controller. I am getting the values in Ajax correctly, but I am unable to pass them to the controller. I get the comment in controller as null always.
Ajax ...
0
votes
1
answer
35
views
Adding Ajax to aspx pages
I am working with a very large project that is running on ASP.NET framework. I am trying to add some new functionality to make the application more userfriendly and I need to use ajax. I have used ...
0
votes
0
answers
67
views
Creating tabs similar to the tab structure in Google with C# .net-core mcv
enter image description here
Hello friends. I'm asking for help with something.
I want to set up a structure in the asp.net core web mvc project. In fact, this structure is similar to Google's window ...
1
vote
0
answers
76
views
ASP.NET MVC Date Input Not Binding Correctly in AJAX Post Request
I have built a form which take checkInDate and nights as input. But in the backend when I am debugging it is not showing the date correctly. It is displaying nights correctly but checkInDate is shown ...
2
votes
1
answer
39
views
ASP.NET MVC after serializing my data and sending http POST request the Controller receives a null parameter
I am trying to send an array with about 600 items of type Customer. The latter is a class I am using as a model which contains:
public class Customer
{
int ID {get; set;}
string Name {get; set;}
...
1
vote
1
answer
231
views
Runs in Visual Studio but returns 404 error when deployed in IIS
Hi everyone I hope everyone and safe and doin’ well.
I just really need your help with an error I have been fixing for less than 2 weeks. I have created Asp Net Core Web-App, when I run it with IIS ...
0
votes
0
answers
321
views
ajax request failing with "TypeError: Cannot read properties of undefined (reading 'open')"
Feel like I'm missing something obvious (I don't work with javascript or jQuery, I'm just playing around with it in my spare time), but I can't figure out why my ajax request won't work - can't find ...
1
vote
1
answer
31
views
How to access navigation image properties in Json returned ASP.NET Core 6
Here my example JSON return when I using Ajax :
{
"$id": "1",
"$values": [
{
"$id": "2",
"productId":...
1
vote
1
answer
73
views
How to call an action on ASP.NET MVC without postback?
I'm working with the WhatsApp Business Cloud API C# Wrapper Library and SignalR in a project to create a real time chat for a webpage. I've managed to separate the messages sent to the website ...
1
vote
1
answer
89
views
How to filter the product without reload the page in ASP.NET Core 6
I'm trying to filter product data by brand when the person is on the product category page. Here the view product category. So, I want to do the filter by brands by side bar on the left. I use ajax so ...
1
vote
0
answers
23
views
Sending Data By Ajax But Always Null Object In Controller
I sent information using ajax but I don't understand why in the controller what I get is always null data. I went crazy and tried everything I could find on here but still no success. Please help me ...
0
votes
1
answer
46
views
how to pass an array name to the controller from an input with name that is array in html without using ajax, just pass it to controllers parameter
<div class="col-md-3 ingname">
<input class="form-control ingredient-name" placeholder="Ingredient Name" id="ingredientName[]" name="...
0
votes
1
answer
137
views
Server Error in '/' Application. The resource cannot be found. HTTP 404, Requested URL: /UsersPage/undefined
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and ...
0
votes
1
answer
196
views
ValidateAntiForgeryToken works without Html.AntiForgeryToken()
Ok, this is strange, but...
This is my Action code (partly):
[Route(nameof(BackForm))]
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> BackForm(BackFormDto model, ...
0
votes
1
answer
55
views
Cannot use navigation property in Ajax (ASP NET Core 6)
When I perform an Ajax get request, the server returns something like this :
{
"$id": "1",
"$values": [
{
"$id": "2",
...
0
votes
0
answers
61
views
Access navigation property when using Ajax in ASP NET Core
I working with cascading dropdowns in .NET Core. It works correctly using Ajax.
Here is the code:
<td>
<select id="productList" class="form-select" asp-items="@...
1
vote
1
answer
179
views
Download Excel Via MemoryStream through Ajax works for New Excel, but not for existing excel files in the server
I have a .Net 6 Razor pages application where I need to download an excel on a button click via Ajax. I am able to successfully do that by creating a new excel workbook in memory stream using OpenXML ...
0
votes
1
answer
48
views
popover shows “[object Object]” on ajax
As u see the picture , My bootstrap popover triggers and shows “[object Object]” instead of the data I retrieved from database. I put logs on js ajax code and seen that I retrieve data however cant ...
2
votes
1
answer
98
views
JQuery Ajax getting response of eval(function(p, a, c, k, e, d) instead of partial view
We have application in ASP.NET MVC 4.5.2 with JQuery 3.3.1 and production we have load balancer and we have 2 nodes of server. We are facing weird behavior when ever we requesting sometime we are ...
0
votes
1
answer
82
views
I can't update my Line Chart Data using AJAX
I want to make an ajax function that will update my line chart, the data in the line chart should be sorted according to the month. There should be a button that submits a value for the selected month ...
1
vote
1
answer
56
views
C# method receives null from ajax call
I'm trying to get accostumed to how ajax works, so I'm just trying to send a string to a C# method (I also tried Json and other types before) but no matter what I change the method seems to always ...
0
votes
1
answer
72
views
Trying to display TempData msg with Ajax POST
Hello I'm a bit stuck to display an alert msg with latest version of asp.net core 8 MVC.
I have an edit post form with Ajax and this is the code.
View code:
@{
ViewData["Title"] = "...
0
votes
2
answers
68
views
Controller receives null from Ajax in ASP.NET Core 6.0 MVC
I am writing a program that captures a list of variable data, which I am trying to pass through jQuery to an ASP.NET Core 6.0 MVC controller.
This is the data model:
namespace RTS_RecruiterSystem....
1
vote
0
answers
47
views
FromBody null in Master Detail Create ASP.NET
I need your help, I was trying a master detail create. I followed this project:
https://github.com/CodigoEstudiante/067_ProyectoEFMaestroDetalleNet6/blob/master/MaestroDetalle/Controllers/...
0
votes
1
answer
53
views
AjaxToolkit CascadingDropdown is populating first parent but childs are not populated because knownCategoryValues parameter is empty
I am trying to use ajaxToolKit CascadingDropdown with three DropdownList Controls that are being populated from an ASMX WebService. The first dropdown is being populated correctly, but when I select a ...
1
vote
1
answer
918
views
How to fix "Uncaught SyntaxError: Unexpected token '<'" on a deployed ASP WebForms website
I have been having an issue with one of my websites where it works perfectly fine while developing, but once it gets published and deployed on IIS, the styling for ONLY the account pages doesn't ...
0
votes
0
answers
81
views
Getting 500 Response on Ajax Call in Razor Page View Component
I am working on an ASP.NET 7 project where I have a Razor page, and I have used Ajax to call the GET method from the C# file.
I am calling the GET method from the CSHTML using Ajax to CSHTML.CS. There,...
-1
votes
1
answer
388
views
Use AJAX offline
I deployed an app to a local server without access to the internet and I have all my resources local and referenced. However, when it's running, it auto-generates the following code
<script src=&...
0
votes
1
answer
2k
views
How to serialize list in JSON object
I have a serialised object
{
a: “test”,
B[1].Name : “test”,
B[1].Surname : “testing”,
Etc.
But when I sent this object in using ajax Post method in cshtml file, my model is setting the list of b to ...
1
vote
1
answer
50
views
Using newline characters in the HttpStatusCodeResult of ASP.NET MVC Action method is returning empty message when ajax is used to the action method
I am executing a ajax call from the cshtml page of an ASPNET MVC application, which calls an action method Delete from HomeController.
The action method catches exception message, if any occurred ...
-1
votes
1
answer
114
views
Using jQuery to show data from database in table not getting data in ASP.NET Core
I am trying crud operation using popup and jQuery but at start I only try to show data from database in table using jQuery Ajax. It does not show error message but not fetching data from database. I ...
0
votes
0
answers
95
views
Client-side pagination for Partial View in Razor Pages C#
I am a beginner in razor pages.
Initially on clicking the Movies tab on sidebar, I get the table with movies displayed. Then based on search my partialView updates to display the data. I want to add ...