protected void Button4_Click(object sender, EventArgs e) { if (TextBox20.Text.Length == 0 || TextBox22.Text.Length == 0) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Δεν έχει συμπληρωθεί ο Λογαριασμός ή η Περιγραφή !!!!');", true); } else { Logariasmoi.Insert(); TextBox20.Text = ""; TextBox22.Text = ""; } Logariasmoi_OC.DataBind(); Logarias_OC.DataBind(); DropDownList5.DataBind(); }
protected void TextBox5_TextChanged(object sender, EventArgs e) { TextBox6.Text = DateTime.ParseExact(TextBox5.Text, "dd/MM/yyyy", CultureInfo.CurrentCulture).ToString("MM/dd/yyyy"); Logariasmoi.DataBind(); }