日期:2014-05-18 浏览次数:20545 次
public class Repeat2: Repeater
{
public void DBind(object sender, EventArgs e)
{
this.DataSource = a;
this.DataBind();
}
}
public class Repeat2: Repeater
{
public void DBind(object sender, EventArgs e)
{
this.Load += new EventHandler(DBind);//这样不行??
this.DataSource = a;
this.DataBind();
}
}
public class Class1: Repeater
{
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
//todo: 增加你的代码
}
public Class1()
{
this.Load += new EventHandler(Class1_Load);
}
void Class1_Load(object sender, EventArgs e)
{
//todo: 增加你的代码
}
}
------解决方案--------------------
语法问题,学习.