我想知道两部分代码之间是否有任何区别:
//1
public partial class MyPage : System.Web.UI.Page
{
public override void DataBind()
{
base.DataBind();
this.myTableGrid.SetupDataSource();
}
}
//2
public partial class MyPage : System.Web.UI.Page
{
public void Page_DataBind(object e, EventArgs e)
{
this.myTableGrid.SetupDataSource();
}
}