Beispiel #1
0
        protected void btnContinue_Click(object sender, EventArgs e)
        {
            List <String> temp = new List <String>();

            temp.Add("");
            //Add values to a session in a list if it is a new event
            if (eventToEdit == null)
            {
                EventBL ev = new EventBL(null, txtbxEventName.Text, txtbxDescription.Text, Convert.ToDateTime(txtbxDate.Text), user);

                ev.AddNewEvent(ev);

                Session.Add("event", ev);
                Response.Redirect("events.aspx?user="******"eventEdit", ev);
                Session.Add("eventValue", eventToEdit);
                Response.Redirect("events.aspx?user=" + user);
            }
        }