c# - how to reference linq in user control? -


i'm trying use linq in user control, error reference "system.linq".

error:"c:\program files\common files\microsoft shared\web server extensions\14\template\controltemplates\myusercontrol.ascx.cs(23): error cs0234: type or namespace name 'linq' not exist in namespace 'system' (are missing assembly reference?)"

check .net framework version. system.linq supported .net framework 3.5 , above.

and write using statement include namespace

using system.linq; 

you can check framework version under properties option of project

enter image description here


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -