CS1061: “LindonSoft.Campus.WebOA.UcHead”不包含“DataList1”的定义,并且找不到可接受类型为 5
usingSystem;usingSystem.Collections.Generic;usingSystem.Data;usingSystem.Linq;usingSy...
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace LindonSoft.Campus.WebOA
{
using LindonSoft.Campus.BULayer;
using LindonSoft.Campus.CommonLayer;
using LindonSoft.Campus.WebApplication;
public partial class UcHead : WABaseControl
{
public string WebPageURL = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.BindList();
//this.lblName.Text = Session[CommonString.EmpName].ToString();
}
//this.btnLoginOut.Attributes.Add("onclick", "parent.location='" + base.getBaseUrl() + "WebApp/UILogOut.aspx'; return false");
}
public void BindList()
{
DataSet myDs = SecurityModuleManager.GetModuleListByOAModuleIDDs(null, "01", (int)MenuTYPE.WebOAMenu);
this.DataList1.DataSource = EditUrl(myDs);
this.DataList1.DataBind();
}
public DataSet EditUrl(DataSet myDs)
{
for (int i = 0; i < myDs.Tables[0].Rows.Count; i++)
{
myDs.Tables[0].Rows[i]["url"] = getBaseUrl() + "WebOA/ShowList.aspx";
}
return myDs;
}
}
}
请问该怎么处理 展开
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace LindonSoft.Campus.WebOA
{
using LindonSoft.Campus.BULayer;
using LindonSoft.Campus.CommonLayer;
using LindonSoft.Campus.WebApplication;
public partial class UcHead : WABaseControl
{
public string WebPageURL = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.BindList();
//this.lblName.Text = Session[CommonString.EmpName].ToString();
}
//this.btnLoginOut.Attributes.Add("onclick", "parent.location='" + base.getBaseUrl() + "WebApp/UILogOut.aspx'; return false");
}
public void BindList()
{
DataSet myDs = SecurityModuleManager.GetModuleListByOAModuleIDDs(null, "01", (int)MenuTYPE.WebOAMenu);
this.DataList1.DataSource = EditUrl(myDs);
this.DataList1.DataBind();
}
public DataSet EditUrl(DataSet myDs)
{
for (int i = 0; i < myDs.Tables[0].Rows.Count; i++)
{
myDs.Tables[0].Rows[i]["url"] = getBaseUrl() + "WebOA/ShowList.aspx";
}
return myDs;
}
}
}
请问该怎么处理 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询