The type 'category' in 'd:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\114look\60d5fc94\5802ee6d\App_Web_autqxf3d.10.cs' conflicts with the imported type 'category' in 'd:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\114look\60d5fc94\5802ee6d\App_Code.lbmz4x2a.dll'. Using the type defined in 'd:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\114look\60d5fc94\5802ee6d\App_Web_autqxf3d.10.cs'. d:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\114look\60d5fc94\5802ee6d\App_Web_autqxf3d.10.cs 198
我清空后,从新生成也不管用,怎么回事哦
代码片段
Literal name = new Literal();
name.ID = "n";
name.Text = DataBinder.Eval(e.Item.DataItem, "l_Name").ToString();
e.Item.Controls.Add(name);
List<signtip> list=null;
List<signtip> temp = list.Where(x => x.l_GroupID == id).ToList();//LINQ2OBJECT
if (temp.Count > 0)
{
Repeater r = new Repeater();
TemplateBuilder tb = new TemplateBuilder();
tb.AppendLiteralString("");
r.HeaderTemplate = tb;
r.FooterTemplate = tb;
r.ItemTemplate = tb;
r.ItemDataBound += new RepeaterItemEventHandler(rep_ItemDataBound); //递归核心
r.DataSource = temp;
r.DataBind();
e.Item.Controls.Add(r);换成其他类名就好用,能编译通过,为什么哦
Error 3 'category' does not contain a definition for 'l_ParentID' and no extension method 'l_ParentID' accepting a first argument of type 'category' could be found (are you missing a using directive or an assembly reference?) C:\114look\post.aspx.cs 61 53 C:\114look\
我清空后,从新生成也不管用,怎么回事哦
代码片段
Literal name = new Literal();
name.ID = "n";
name.Text = DataBinder.Eval(e.Item.DataItem, "l_Name").ToString();
e.Item.Controls.Add(name);
List<signtip> list=null;
List<signtip> temp = list.Where(x => x.l_GroupID == id).ToList();//LINQ2OBJECT
if (temp.Count > 0)
{
Repeater r = new Repeater();
TemplateBuilder tb = new TemplateBuilder();
tb.AppendLiteralString("");
r.HeaderTemplate = tb;
r.FooterTemplate = tb;
r.ItemTemplate = tb;
r.ItemDataBound += new RepeaterItemEventHandler(rep_ItemDataBound); //递归核心
r.DataSource = temp;
r.DataBind();
e.Item.Controls.Add(r);换成其他类名就好用,能编译通过,为什么哦
Error 3 'category' does not contain a definition for 'l_ParentID' and no extension method 'l_ParentID' accepting a first argument of type 'category' could be found (are you missing a using directive or an assembly reference?) C:\114look\post.aspx.cs 61 53 C:\114look\
解决方案 »
- 环境配置问题
- 购物网站中,套餐表怎么设计?
- treeview控件,点击同一个结点
- ====jmail发邮件的smtp端口号25问题=====
- 如何在Repeater里嵌套Button之类的控件才能让Button点击后获得相应的绑定值?[问题描述很详细]
- 高手请进!挑战来了!
- 简单问题,解决即结:如果在JavaScript里访问类里面的变量呢?
- 路过的请务必近来,请帮我看看这个奇怪的问题
- UP者有分!用asp.net如何实现论坛左边的数据分级(树)的结构(多方案)???
- webserviece.htc的用法,十分着急!!高手进入,立即给分!!
- Asp.net +Ajax +HttpHandler 实现图片上传并带进度条效果 求解!!
- 存储过程的问题!
List<category> list=null;
List<category> temp = list.Where(x => x.l_GroupID == id).ToList();//LINQ2OBJECT
这块是category
我改成
signtip类编译没问题的