[Solved] How can I make advanced search in ASP.NET MVC? [closed]


I see your code, it have 2 problems:

  1. You get data but don’t return data for View.
  2. When return PartialView, We are can’t “public ActionResult SearchResutl()”, It can remove.

Code fix same that:

public ActionResult MemberSearch()
    {
        return View();
    }
    [HttpPost]
    public ActionResult MemberSearch(ViewModesTest m)
    {
        var d = db.Members.Where(s => s.Name == m.Name && m.LastName).ToList();
        return PartialView("SearchResutl", d);
    }

And outside View u can call model class @model List<Members>

0

solved How can I make advanced search in ASP.NET MVC? [closed]