|
public partial class PageUC : System.Web.UI.UserControl
{
/// 私有字段
private GridView pageGridView;
private event BindGridViewEventHandler onBindControlData;
/// <summary>
/// 声明绑定GridView控件数据的委托
/// </summary>
public delegate void BindGridViewEventHandler(object sender,System.EventArgs e);
protected void Page_Load(object sender,EventArgs e)
{
if(!Page.IsPostBack)
{ ///绑定控件的数据
onBindControlData(sender,e);
PageInit();
}
}......
}
红色这段代码 看不太明白,请老师指点一下 |
|