protected void btnDelete_Click(object sender, System.EventArgs e) { CalendarEntry.DeleteRecurrence(EventId); String slink = String.Empty; if (SharedID > 0) { slink = "&SharedId=" + SharedID; } Response.Redirect(String.Format("../Events/EventView.aspx?EventId={0}{1}&Tab=General", EventId, slink), true); }