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
You can use String.StartsWith.
As long as
Nameis of type String you can do all string operations such as:Here are some more examples and information about LINQ and Strings.