Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GiftManager.LoadGiftPage(gvGift, rptPager, 1, ddlPageSize);
     }
 }
Beispiel #2
0
    protected void lbDelete_Click(object sender, EventArgs e)
    {
        ImageButton linkButton = new ImageButton();

        linkButton = (ImageButton)sender;
        bool result = GiftManager.DeleteGift(Convert.ToInt32(linkButton.CommandArgument));

        GiftManager.LoadGiftPage(gvGift, rptPager, 1, ddlPageSize);
    }
Beispiel #3
0
    protected void Page_Changed(object sender, EventArgs e)
    {
        int pageIndex = int.Parse((sender as LinkButton).CommandArgument);

        GiftManager.LoadGiftPage(gvGift, rptPager, pageIndex, ddlPageSize);
    }
Beispiel #4
0
 protected void PageSize_Changed(object sender, EventArgs e)
 {
     GiftManager.LoadGiftPage(gvGift, rptPager, 1, ddlPageSize);
 }