I have search with dropdownlist , and I have PagedListPager
when I request page 2, the value of search still exist, but the value of dropdownlist I lost the selected value of dropdown list
I get the value from the URL like this
String KEYWORD_NAME = Request.QueryString["Contant.KEYWORD_NAME"];
in the first time the KEYWORD_NAME has value but on second page no value while the URL still have the value of"Contant.KEYWORD_NAME "
some part of the controller
public ActionResult search(int? page, string search )
{
if (search == null )
{
Bindkeyword();
Bindcomany();
return View();
}
else
{
String KEYWORD_NAME = Request.QueryString["Contant.KEYWORD_NAME"];

Sachin SinghRank #66 · 26.2K reputationPosted Dec 16, 2020, 9:53 PM EST
أماني مفيد174 reputationPosted Dec 16, 2020, 10:18 PM EST
Sachin SinghRank #66 · 26.2K reputationPosted Dec 16, 2020, 10:21 PM EST
Mageshwaran RRank #411 · 6.1K reputationPosted Dec 16, 2020, 11:34 PM EST