i have this dropdown list
- @Html.DropDownListFor(model => model.Contant.KEYWORD_NAME, ViewData["KEYWORD_NAME"] as IEnumerable
, item.SelectedItemType, new { @class = "form-control" })
and i pass some data to view
- @if (Model != null)
- {
- @Html.PagedListPager(Model.Items, page => Url.Action("search", new { page, search = Request.QueryString["search"], KEYWORD_NAME = Request.QueryString["Contant.KEYWORD_NAME"]}),
- new PagedListRenderOptions()
- {
- Display = PagedListDisplayMode.IfNeeded,
- DisplayPageCountAndCurrentLocation = true
- ,
- DisplayItemSliceAndTotal = true
- })
this is the header for the method
- public ActionResult search(int? page, string search, string KEYWORD_NAME)
i have value for page and search m but for KEYWORD_NAMEits null
how i can fix it ?
Kiran MohantyPosted Jan 21, 2021, 11:13 AM
أماني مفيدPosted Jan 21, 2021, 6:30 AM
Sachin SinghPosted Jan 21, 2021, 4:21 AM
أماني مفيدPosted Jan 20, 2021, 9:37 PM
Sachin SinghPosted Jan 20, 2021, 11:26 AM