Example #1
0
 protected virtual void OnPageChanging(object obj, PageChangingEventArgs e)
 {
     CurrentPageIndex = e.NewPageIndex;
     if (PageChanging != null)
     {
         PageChanging(this, e);
         OnPageChanged(EventArgs.Empty);
     }
 }
Example #2
0
 public void RaisePostBackEvent(string args)
 {
     int newPageIndex = Common.TypeParse.StrToInt(args, CurrentPageIndex);
     PageChangingEventArgs pcArgs = new PageChangingEventArgs() { NewPageIndex = newPageIndex };
     OnPageChanging(this, pcArgs);
 }