aspx中引用了c# c#中给list引用过 using system.collections.generic 但aspx中的list提示说没有引用
嗯,也有可能是List没有引用到,可以写一下其命名空间System.Collections.Generic
排查方法
1、排查下这个命名空间是否引用到
2、看下是否存在User
页面也要引用命名空间 看你截图里面并没有 页面直接引用命名空间 @namespace System.Collections.Generic 或者直接System.Collections.Generic.List 试试
也有可能你的LY.Model里面有个同名List实体 和系统默认的冲突了
页面用<%using system.collections.generic%>
引用一下System.Collections.Generic.List