Substring method allow us to retrieve a substring from a string object. Here this example code demonstrate us how can we get a substring from a string in .net framework.
This is caused because of Where-Expression. You should only use variables in there or call methods that can be translated to SQL. First, save your Session value in a variable.
This sample uses Take to get only the first 3 elements of the array.
this article describes how to skip records using Linq C#.
this article describes how to do linq in c# by sorting a list of words alphabetically.
where condition in linq c#. you can filter the record using where condition with keyword operator =