jquery-ajax

Jquery Ajax call passed parameter always null in Asp.net MVC Core

那年仲夏 提交于 2021-02-11 13:28:55
问题 I am migrating my MVC application to Asp.Net core (3.1 version) application. I have one layout page which is used for menu navigation. When user click on any menu then i need to pass some value from Layout to the controller for some business purpose. To do that i used one ajax call here. Below ajax call code is working fine in MVC, But in Asp.Net core the passed parameter value is null in controller. Working code of MVC: function SetCurrentPageNameSession(currentPageName, isBookMarkPage) { if