protected void Button_delete_Click(object sender, EventArgs e)
        {
            PhysicsBooking b2 = (PhysicsBooking)ViewState["PhysicsBooking"];

            b2.Delete();
            Add_Controls(b2); TextBox_Notes.Text = "";
        }
Example #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            PhysicsBooking pb1 = (PhysicsBooking)ViewState["booking"];

            pb1.Delete();
            string s = (string)ViewState["ref"];

            Response.Redirect(s);
        }