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\