猿问

C# .net大神来

        protected void Page_Load(object sender, EventArgs e)
        {

            
        }

        protected void anpNewsPage_PageChanged(object sender, EventArgs e)
        {
            NewsBusiness.DatabindRepeater(anpNewsPage, repeater1);
        }

我想在page_load中调用anpNewsPage_PageChanged,代码是什么

染七夜
浏览 1334回答 2
2回答

lmc_study

anpNewsPage_PageChanged(object sender, EventArgs e),直接调用就行了

一毛钱

Page_Load是页面打开是运行,你打开的时候就要新闻列表进行变换吗?为什么不在Page_load中加载一次数据绑定不就可以了吗NewsBusiness.DatabindRepeater(anpNewsPage, repeater1);
随时随地看视频慕课网APP
我要回答