Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         MarketingManager.LoadMarketingPage(gvMarketing, rptPager, 1, ddlPageSize);
     }
 }
Пример #2
0
    protected void lbDelete_Click(object sender, EventArgs e)
    {
        ImageButton linkButton = new ImageButton();

        linkButton = (ImageButton)sender;
        bool result = MarketingManager.DeleteMarketing(Convert.ToInt32(linkButton.CommandArgument));

        MarketingManager.LoadMarketingPage(gvMarketing, rptPager, 1, ddlPageSize);
    }
Пример #3
0
    protected void Page_Changed(object sender, EventArgs e)
    {
        int pageIndex = int.Parse((sender as LinkButton).CommandArgument);

        MarketingManager.LoadMarketingPage(gvMarketing, rptPager, pageIndex, ddlPageSize);
    }
Пример #4
0
 protected void PageSize_Changed(object sender, EventArgs e)
 {
     MarketingManager.LoadMarketingPage(gvMarketing, rptPager, 1, ddlPageSize);
 }