protected override void OnClick(EventArgs e) { base.OnClick(e); FastTrackPage page = this.Page as FastTrackPage; if (page != null) { object obj = page.SelectedObject; if (obj != null) { Type type = obj.GetType(); if (type != null) { page.DeleteObject(); page.Response.Redirect(page.GetListUrl(type, "")); } } } }