Пример #1
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        UpdateDate.Update();
        Approved.Update();
        ResUpdate.Update();
        TagUpdate.Update();
        DataView dv = (DataView)AfftectedSelect.Select(DataSourceSelectArguments.Empty);
        int      x  = 0;

        foreach (DataRow dr in dv.Table.Rows)
        {
            Session["rr"] = (int)dv.Table.Rows[x][0];
            Session["gg"] = "Event Date Already Reserved";
            ccancel.Insert();
        }
        Response.Redirect("~/admin/RFR.aspx?rr=0");
    }
Пример #2
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        string sttt = "";

        sttt = DateTime.Now.ToLongTimeString();
        if (sttt.Length == 10)
        {
            sttt = "0" + sttt;
        }
        string post = sttt.Substring(9, 2);

        if (post == "PM")
        {
            int h = Convert.ToInt32(sttt.Substring(0, 2)) + 12;
            TTime.Text = h.ToString() + sttt.Substring(2, 6);
        }
        else
        {
            TTime.Text = sttt.Substring(0, 8);
        }
        deduct.Update();
        UpdateTag.Update();
        UpdateDate.Insert();
        PaymentInsert.Insert();
        DataView dv = (DataView)AfftectedSelect.Select(DataSourceSelectArguments.Empty);
        int      x  = 0;

        foreach (DataRow dr in dv.Table.Rows)
        {
            Session["rr"] = (int)dv.Table.Rows[x][0];
            Session["gg"] = "Event Date Already Reserved";
            ccancel.Insert();
        }
        printhead.Visible = true;
        Button1.Enabled   = false;
        TextBox3.ReadOnly = true;
        Button2.Enabled   = false;
    }