skip to Main Content

Parameters are coming null from ajax call – Jquery

I have a following method in ASP.NET MVC: public PartialViewResult SaveUpdateVariants(string TitleEn, string TitleAr, int ItemID, List<ItemVariant> data) { } I am calling it from ajax call like this $.ajax({ url: '/Inventory/SaveUpdateVariants', contentType: 'application/json; charset=utf-8', // Include ContentType data :…

VIEW QUESTION

Ajax in MVC 6 – making search function – Jquery

I have a new project and decided to go with c# .net 6 MVC in VS2022... In may old projects this code works flawless. @section Scripts { <script type="text/javascript"> $("#Klijent_Name").autocomplete({ source: function (request, response) { $.ajax({ url: "@Url.Action("SearchKlijenti")", type: "POST",…

VIEW QUESTION
Back To Top
Search