Is there a way to use javaScript syntax inside Html helper
问题 I have the following code inside my razor view:- @Html.PagedListPager(Model , page => Url.Action("Index","Server", new { searchTerm = ViewBag.searchTerm, page, sort = ViewBag.CurrentSortOrder, pagesize = $("#pagesize").val() }), PagedListRenderOptions.EnableUnobtrusiveAjaxReplacing(PagedListRenderOptions.ClassicPlusFirstAndLast, new AjaxOptions { UpdateTargetId = "ServerTable" , LoadingElementId="progress2" })) But i am unable to get the value of field using the following $("#pagesize").val()