filtering problem in LINQ

Posted by ognjenb on Stack Overflow See other posts from Stack Overflow or by ognjenb
Published on 2010-04-26T09:51:59Z Indexed on 2010/04/26 9:53 UTC
Read the original article Hit count: 135

Filed under:
|
      var query = from d in testPersons.person
                  where d.Name == txtbox
                  select d;

txtbox is text box on View page.

How change this code to return all names who starts with any part of name?

For example:when I type R in text box, on View page, this query should return all names who is start with character R

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about asp.net-mvc