protected void grd_ClickNext(Object sender, EventArgs
e)
{
try
{
grd.DataSourceID = ObjD.ID;
}
catch (Exception
ex)
{
ErrorHelper.Add(Convert.ToString(ex.Message), Convert.ToString(ex.StackTrace));
SPUtility.TransferToErrorPage(MessageHelper.Message(MessageMode.CommonErrorMessage));
}
}
protected void grd_ClickPrevious(Object sender, EventArgs
e)
{
try
{
grd.DataSourceID = ObjD.ID;
}
catch (Exception
ex)
{
ErrorHelper.Add(Convert.ToString(ex.Message), Convert.ToString(ex.StackTrace));
SPUtility.TransferToErrorPage(MessageHelper.Message(MessageMode.CommonErrorMessage));
}
}
protected void grd_PageIndexChanging(object sender, GridViewPageEventArgs
e)
{
try
{
grd.PageIndex = e.NewPageIndex;
}
catch (Exception
ex)
{
ErrorHelper.Add(Convert.ToString(ex.Message), Convert.ToString(ex.StackTrace));
SPUtility.TransferToErrorPage(MessageHelper.Message(MessageMode.CommonErrorMessage));
}
}
No comments:
Post a Comment