Gridview BottomPagerRow添加自定义控件

pager.ascx

public partial class pager : System.Web.UI.UserControl
{

}

 

.aspx

protected pager ctl;

protected void Page_Load(object sender, EventArgs e)
{

ctl = (pager)this.LoadControl("controls/pager.ascx ");
ctl.ID = "c_page";      
gvwList.BottomPagerRow.Cells[0].Controls.Add(this.ctl);  

}

posted on 2013-12-02 11:14  砖头  阅读(389)  评论(0编辑  收藏  举报

导航