Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to create advance search with parameter in asp.net mvc

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);
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #advance #search #parameter #mvc
ADD COMMENT
Topic
Name
9+1 =