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

Id not getting passed to Partial View form – Asp.net

Parent View: @Html.Action("SetReview", "Review", new {sellerId = Model.SellerId}) [HttpGet] public ActionResult SetReview(string sellerId) { return PartialView("_Review", new Finder.Models.Review() { SellerId = sellerId }); } This is the part where the Id is not getting passed [HttpPost] public ActionResult SetReview(Finder.Models.Review review)…

VIEW QUESTION
Back To Top
Search