protected void Button2_Click(object sender, EventArgs e) { RP rp = new RP(); rp.Update_DOJI(DrList.Text, TextBox1.Text); if (DrList.Text == "DOJI") { rp.Update_DOJI("GUI", "1"); } if (DrList.Text == "DOJIXH") { DateTime dts = DateTime.Now; DateTime dte = dts; dte = dte.AddHours(20 - dte.Hour); dte = dte.AddMinutes(30 - dte.Minute); rp.Update_DOJI("GUIXH", "1"); rp.Update_DOJI("XHTIMES", dts.ToString()); rp.Update_DOJI("XHTIMEE", dte.ToString()); } }