Exemple #1
0
        protected void btnDelete_Click(Object Sender, EventArgs e)
        {
            DateTime _date = DateTime.Today;

            try { _date = DateTime.Parse(ddlMonth.SelectedItem.Value + "/1/" + ddlYear.SelectedItem.Value); }
            catch { }
            LinkButton oButton = (LinkButton)Sender;

            oVacation.Delete(Int32.Parse(oButton.CommandArgument));
            Response.Redirect(oPage.GetFullLink(intPage) + "?d=" + Server.UrlPathEncode(_date.ToShortDateString()));
        }