Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
11 views

ASP.NET MVC (blocked:csp) error when running in local

I am getting the (blocked:csp) error in my Chrome browser when my app. I have the headers set up like this: HttpContext.Current.Response.Headers.Add("X-Content-Security-Policy", "...
Wasyster's user avatar
  • 2,447
0 votes
4 answers
55 views

Ajax post call to Controller method keeps saying 400 Bad Request

I am trying to make an Ajax post call to a method in my HomeController but I keep getting 400 Bad Request error. This is the ajax call $.ajax({ url: '/home/findareacode', contentType: '...
Afz's user avatar
  • 77
-1 votes
0 answers
25 views

Return view from nested classes in ASP.NET MVC for complex json String

My Model is : (Problematic section is Variant[] Variants, that is not passing to controller) public class SingleProduct { public Product1 product { get; set; } } public class Product1 { [...
Samie Ullah's user avatar
0 votes
1 answer
33 views

Properly reload and reformat a Bootstrap Popover after Loading Data with ajax

Let me state first of all that there are a lot of articles out there asking about simply loading an Ajax call's data into a Bootstrap 4.0 popover; this question regards a slightly different topic. The ...
Freerey's user avatar
  • 184
0 votes
2 answers
53 views

Problem in sending data to the controller through Ajax in ASP.NET MVC

I use this foreach: foreach (var item2 in RItem.GetChildItems(item.ID_Ca)) { <div id="@idc" class="accordion-collapse collapse" aria-labelledby="headingTwo2" ...
Hamed Javadi's user avatar
-2 votes
0 answers
35 views

Pop-up is not showing on click of table cell element

I have a c# application which has javascript in it and i want to show popup on click on overall status in a table. But its not showing up. when i comment updateStatusCounts(); it shows up but when i ...
Pam's user avatar
  • 15
0 votes
0 answers
43 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 ...
Pam's user avatar
  • 15
1 vote
1 answer
61 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. ...
akhilesh jain's user avatar
0 votes
1 answer
43 views

Trouble posting contents of file input to controller action using jquery in ASP.Net Core 6.0

I am attempting to post a file to a controller action in order to save it, and have run into two different problems, when using $.post to post the data as shown here: $("#setting-form").on(&...
Na...'s user avatar
  • 21
1 vote
0 answers
24 views

How to set ajax success data to Nop Editor textbox in nopcommerce

I am working in nopcommerce 4.60.6. In that I am using one nop-editor textbox. Here is the view code <div class="form-group row"> <div class="col-md-3"> <...
s.k.Soni's user avatar
  • 1,220
0 votes
1 answer
60 views

I have inputs types of checkbox and when I perform delete or retrieve methods it works but page is not reload

In my Asp.Net Mvc project, I have checkbox type inputs and I get the Ids of items through them by using jquery and send them controller by using ajax. Methods are working but after work the page is ...
Oğuzhan's user avatar
0 votes
0 answers
23 views

OrderID in master detail doesn't work correctly - in ASP.NET MVC

Please help me with this: when I add new data, it will throw an error SqlException: Violation of PRIMARY KEY constraint 'PK__SaleOrde__C3905BAFABA6B181'. Cannot insert duplicate key in object 'dbo....
Văn Toàn 37-Nguyễn's user avatar
0 votes
0 answers
28 views

How can add drop-down from other table in my kendo grid

So I want to drop-down of the items that are present in other table and I want them in my kendo grid using asp.net Mvc so how can I do that ? I tried to take 2 columns name in my main model from the ...
Julius_1907's user avatar
0 votes
0 answers
134 views

using ajax with asp.net core mvc .NET 8 in visual studio 2022

I have a view that shows information from a sql tabel that I inserted in to a local DataTable I want to create a button that filters what is shown with ajax this is the loop where the information from ...
Lelle's user avatar
  • 1
0 votes
1 answer
66 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 ...
Cypher's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
544