예제 #1
0
        protected void lbDeleteEventAll_Click(object sender, System.EventArgs e)
        {
            int    ProjectId = CalendarEntry.GetProject(EventId);
            string link;

            if (ProjectId > 0)
            {
                link = String.Format("../Projects/ProjectView.aspx?ProjectId={0}", ProjectId);
            }
            else
            {
                link = "../Workspace/default.aspx?Btab=Workspace";
            }

            CalendarEntry.Delete(EventId);

            Response.Redirect(link, true);
        }