skip to Main Content

Can not pass parameters from JQuery AJAX to controller

I am calling a method in JQuery like this var data = { 'minAge': minAge, 'MaxAge': maxAge, 'ProductType': ProductType, 'ProductSubject': ProductSubject, 'ordering': '@Ordering.NotOrder', 'Searchkey': "", 'CatId': @Context.Request.Query["CatId"] } $.ajax({ contentType: 'application/x-www-form-urlencoded', dataType: 'json', type: "POST", url: '/ApplyFilter', data: data, success:…

VIEW QUESTION

ASP.NET : get value from url

I'm trying to get a value from the URL and save it to a value but any attempt I've made has failed. Here is an example of the URL: https://localhost:44325/deals/PostDeal?id=101 I want to save the value of id to DealsMasters.DealItemID.…

VIEW QUESTION
Back To Top
Search