Click here to Skip to main content
12,405,303 members (69,852 online)
Rate this:
Please Sign up or sign in to vote.
See more: MVC
Ive used to create a database driven website for a rental company using the CRUD outlook...but now im looking to add a search feature and cant find any online....any help guys?

iv tried something like
 public ActionResult Search(int id)
            return View();
        public ActionResult Search(Rental rentals)
                _entities.//find record(rentals);
                return RedirectToAction("Index");
                return View();
Posted 21-Oct-12 13:15pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

var dbdata = (from v in contex.VotnetMasters
where v.VotnetID == csv.VotnetID
select new { v.MemberID,v.OnlineUsername }).FirstOrDefault();

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100