@Html.DropDownListFor(model => model.Contant.KEYWORD_NAME, ViewData["KEYWORD_NAME"] as IEnumerable, "Select Company Name", new { @class = "form-control" })
i use this way to pass value from view to contoller
@if (Model != null)
{
@Html.PagedListPager(Model.Items,page => Url.Action("search", new { page, search = Request.QueryString["search"] , KEYWORD = ViewData["KEYWORD_NAME"].ToString()}),
new PagedListRenderOptions()
{
Display = PagedListDisplayMode.IfNeeded,
DisplayPageCountAndCurrentLocation = true
,
DisplayItemSliceAndTotal = true
})
}
but in the contoller
in the URL broswer the KEYWORD vlue not null
public ActionResult search(int? page, string search, String KEYWORD)
the value of KEYWORD set to be "NULL " in the URL broswer the KEYWORD vlue not null
Mageshwaran RPosted Oct 6, 2020, 11:30 AM
Darshan ShahPosted Sep 29, 2020, 5:39 AM
Arvind KushwahaPosted Sep 29, 2020, 12:02 AM