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
Comments
Post a Comment