1
Vote

Poor handling of removal of page on paging change.

description

Situation:
  1. Remove blog rolls which are stale, non responsive, or otherwise inaccessible or not related to new site.
  2. While on Page 2, remove the last blog roll listed.
  3. This error occurs:
     
    Error:
    System.Web.HttpException: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount. <br /> at System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource)
    at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e)
    at System.Web.UI.Control.DataBindChildren()
    at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
    at System.Web.UI.Control.DataBindChildren()
    at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
    at newtelligence.DasBlog.Web.EditBlogRollBox.BindGrid()
    at System.Web.UI.WebControls.DataGrid.OnBubbleEvent(Object source, EventArgs e)
    at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
    at System.Web.UI.WebControls.DataGridItem.OnBubbleEvent(Object source, EventArgs e)
    at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    while processing http://www.schkerke.info/EditBlogRoll.aspx.
     
    Very minor, but it removes some of the well earned polish and professionalism that the remainder of the application generates.

comments