O'Reilly logo

ASP.NET MVC with Entity Framework and CSS by Lee Naylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Lee Naylor 2016

Lee Naylor, ASP.NET MVC with Entity Framework and CSS , 10.1007/978-1-4842-2137-2_3

3. Searching, Advanced Filtering, and View Models

Lee Naylor

(1)Newton-le-Willows, Merseyside, UK

This chapter will enhance the site functionality by adding a feature to search for products and add a more advanced select control using a view model to pass complex data to the view instead of using ViewBag.

Note

If you want to follow along with the code in this chapter, you must either have completed Chapter 2 or download Chapter 2’s sour code from www.apress.com as a starting point.

Adding Product Search

To perform a search for products, I'm going to add some functionality to search through product names, descriptions, and categories so that the user ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required