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 ?

Sachin SinghRank #66 · 26.2K reputationPosted Jan 20, 2021, 6:26 AM EST
أماني مفيد174 reputationPosted Jan 20, 2021, 4:37 PM EST
Sachin SinghRank #66 · 26.2K reputationPosted Jan 20, 2021, 11:21 PM EST
أماني مفيد174 reputationPosted Jan 21, 2021, 1:30 AM EST
Kiran MohantyRank #821 · 2.8K reputationPosted Jan 21, 2021, 6:13 AM EST