Skip to main content

All Questions

Tagged with
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
1 vote
2 answers
41 views

Cascading dropdown AJAX loop call

there is a part of my form in which a user can enter the building and room and click the add button if they want to enter another building and room. I am using AJAX to populate the rooms based on the ...
littlelion111's user avatar
0 votes
0 answers
36 views

The requested resource does not support http method 'GET'. (jquery-3.7.1.min.js:2 POST http://localhost:51067/Api/Values/Insertogrenci 401

I got this error while creating my student adding page, why could it be? The requested resource does not support http method 'GET'. $.ajax({ type: 'Post', url: "/Api/Values/...
Ezgi Eylül Aşkın's user avatar
0 votes
0 answers
67 views

When i load my PartialView html using jquery, an controller that i didn't call is called with 0 value id parameter

I have this View Edit.cshtml @model ProdutoViewModel @{ Layout = "_Layout"; } <nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb" class="...
Samuel Oliveira's user avatar
0 votes
0 answers
32 views

Can we parameterize jQuery ajax call for inserting data to database?

This is my simple code for inserting data to database and it's working fine. Table name is AccountMaster function Insert() { var Value = {}; Value.Id = $("[id*=hdnId]").val(); ...
Shaiwal Tripathi'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
25 views

ASP.Net Webform: Server side web method not firing by jquery ajax

I am working with web form where i have button and one input file. when user click on a button then file open dialog will open and user select file. user selected file will be pass to server side ...
Thomas's user avatar
  • 34.1k
1 vote
1 answer
53 views

Change the path of images in JSON returned using AJAX

I want to change image whenever I choose the color the view so I write an Ajax to return the product of that color. Here the code : $(document).on('change', '#colorId', function () { GetImages(...
John's user avatar
  • 63
1 vote
1 answer
106 views

jQuery + C# (.Net 8): Passing an array of form files from Ajax to Controller

I'm working on a .Net 8 API and I need to pass form data which consists of files and other form elements to the controller via ajax. I'm being able to pass a single file successfully, but the weird ...
Diego Perez's user avatar
  • 2,588
-1 votes
1 answer
47 views

How to make a dropdown value is selected during the page load based on the values fetched from DB in .net core?

I have fixed dropdown values in the .cshtml file. `** Yes No Ask Me` like this.. I'm saving these values into the DB and during the page load I'm fetching the values and assigning into the ...
Ezhil's user avatar
  • 1
1 vote
1 answer
48 views

Partial View is not loaded after main page is rendered

I have a razor main page with a selector that is loaded with the OnGet() event, when the user clicks in a value of this selector a jQuery function is called to load a partial view with some values. ...
J003_'s user avatar
  • 47
0 votes
1 answer
51 views

Change color of multiple labels in ajxax jquery and .NET Core MVC

I am creating a function that allows users to select answers with a radio button. After selecting all answers, the user clicks Submit and the answer label will display the following 3 cases: When the ...
ĐÌnh Hiếu Trịnh's user avatar
2 votes
1 answer
120 views

Dynamically Insert input/data to JQuery Ajax call

I am trying to insert input to jQuery ajax call like this function Insert(FormName, DivName) { $.ajax({ type: "POST", url: "" + FormName + ".aspx/GetData&...
Shaiwal Tripathi's user avatar
0 votes
2 answers
78 views

How to auto update reason based on request No using JavaScript ajax?

I work on asp.net mvc i face issue i can't auto update reason using java script ajax auto update meaning when user start writing on reason it will save on database table Automatically based on Request ...
ahmed abdelaziz's user avatar
1 vote
2 answers
62 views

Why doesn't any jQuery code and some icons work after loading the partial view in ASP.NET Core?

I have a page with a list of information, and I can search this information using a series of fields and Ajax. I can reload the information on the page by loading it as a partial view. However, after ...
Amir's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
241