I’m trying to do the next thing: i have the next code on c#:
b.Text = myDataContext.purchases.Count().ToString();
I have page for example: items.aspx?nID=144
How can i can I construct a linq query which will take the querystring parameter and check the value from the items table by the id (nID) that show on the address?
The table have the design for example: id, title, bla, main.
By Lambda expressions:
By LINQ query: