public ActionResult search(string id) { var cust = from x in db.customers where x.cust_Name.Equals(id) select x; return View(cust.ToList()); }
<h3>Enter name to search for customer details</h3> <form action="search" method="get"> <img src="~/Images/search.png" /><input type="text" name="id" /><input type="submit" value="search" class="but" /> <table>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)