protected void Button5_Click(object sender, EventArgs e) { if (TextBox8.Text.Length == 0 || DropDownList5.SelectedValue == "0") { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Δεν έχει συμπληρωθεί η Ημερομηνία !!!!');", true); } else { Logarias_OC.Update(); Logariasmoi_OC.Insert(); // MyListDataBound(null,null); TextBox8.Text = ""; // DropDownList5.SelectedValue = "0"; } }
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(); }