Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DataTable.Select("Bla='Blablabla'").Count Returns 'Count' is not a member of 'System.Array' Exception

I'm trying to access the Count Property on the array of rows returned by the datatables select method, this is after converting the Web Project to 3.5

like image 440
keyoke Avatar asked Dec 10 '22 21:12

keyoke


2 Answers

Use .Length instead.

like image 125
Joel Coehoorn Avatar answered Jan 12 '23 00:01

Joel Coehoorn


I was missing <add namespace="System.Linq"/> from my web.config

like image 43
keyoke Avatar answered Jan 12 '23 00:01

keyoke