aspx Tutorial

.NET Articles,jQuery demo, asp.net with jQuery, online tutorial,Jquery, SilverLight, Javascript, asp.net,JSON, MVC,.NET Articles,demo, Web Services, .NET articles, Sharepoint 2010, visual studio 2010,Aamir Hasan,IT, Building Your First Web Application Project
Advertise Here

Toolbar

Get our toolbar!

Advertize



Posted by Aamir Hasan   on Sunday, August 28, 2011 Total Views:  

 

This example demonstrates how to check multiple values using Linq to find out the required result, by using Contains () Method you can find out the required result which is equivalent to WHERE IN type query in T-SQL.  I will extend my pervious example "Display total price in Repeater footer in asp.net using jquery" to continue this example.

Here’s is the simple code snippet.


        var result = from i in Display()

                     where new string[] { "Sharepoint 2010 Administration", "HTML 5" }.Contains(i.Title)

                     select i;

Tags: ,
Category: All | Linq
Protected by Copyscape Online Plagiarism Tool

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5