protected void Button1_Click(object sender, EventArgs e) { if (DropDownList3.SelectedValue == "1") { Pass3years.Update(); Pass_Update_M_Back.Update(); Response.Redirect("Pass_Pol_Reply_K.aspx"); } else { if (DropDownList1.SelectedValue == "0" || DropDownList2.SelectedValue == "10") { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Δεν έχει επιλεγεί Διαβατήριο ή Κατάσταση !!!!');", true); } else { if (Convert.ToDateTime(TextBox17.Text) > Convert.ToDateTime(TextBox8.Text)) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Λανθασμένη ημερομηνία απάντησης, προγενέστερη της αίτησης!!!!');", true); } else { if (DropDownList2.SelectedValue == "1") { Kin_Logariasmon.Insert(); } if (DropDownList2.SelectedValue == "2") { Pass3years.Insert(); } DropDownList2.Enabled = true; DropDownList1.Enabled = true; DropDownList3.Enabled = true; Pass_kinisi.Update(); Response.Redirect("Pass_Pol_Reply_K.aspx"); } } } }
protected void CheckBox1_CheckedChanged(object sender, EventArgs e) { if (CheckBox1.Checked) { TextBox162.Text = "2"; GridView11.DataSourceID = "Apporipsi"; GridView11.DataBind(); } else { TextBox162.Text = "0"; GridView11.DataSourceID = "Pass_kinisi_for_Grid"; GridView11.DataBind(); } Pass_Update_M_Back.DataBind(); DropDownList7.Items.Clear(); DropDownList7.Items.Add(new ListItem("Αίτηση", "0")); DropDownList7.DataBind(); }
protected void CheckBox1_CheckedChanged(object sender, EventArgs e) { Session["Pass_Persone_Data"] = "7"; Pass_Update_M_Back.DataBind(); DropDownList7.Items.Clear(); DropDownList7.Items.Add(new ListItem("Αίτηση", "0")); DropDownList7.DataBind(); if (CheckBox1.Checked) { DropDownList7.Enabled = true; TextBox158.Text = "2"; GridView11.DataSourceID = "Apporipsi"; GridView11.DataBind(); } else { DropDownList7.Enabled = false; TextBox158.Text = "0"; GridView11.DataSourceID = "Reservations"; GridView11.DataBind(); } }
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { txbABE_Cat.Text = DropDownList1.SelectedValue.ToString(); if (DropDownList1.SelectedValue == "7") { CheckBox1.Checked = false; DropDownList2.Enabled = false; Panel2.Visible = true; CheckBox1.Visible = true; DropDownList7.Visible = true; Pass_Update_M_Back.DataBind(); } else { DropDownList2.Enabled = true; DropDownList2.Items.Clear(); DropDownList2.Items.Add(new ListItem("Κατηγορία ...", "0")); DropDownList2.DataBind(); Panel2.Visible = false; CheckBox1.Visible = false; DropDownList7.Visible = false; } CheckBox1_CheckedChanged(null, null); }