protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e) { // if ((string)Session["Edit_YN"] == "0") // { // GridView12.DataSourceID = "Dikaiologitika_From_DDL"; // Dikaiologitika_From_DDL.DataBind(); // } if (DropDownList2.SelectedValue == "7" || DropDownList2.SelectedValue == "12" || DropDownList2.SelectedValue == "14" || DropDownList2.SelectedValue == "17" || DropDownList2.SelectedValue == "19") { CheckBox2.Visible = true; } else { CheckBox2.Visible = false; CheckBox2.Checked = false; } txbABE_Sub.Text = DropDownList2.SelectedValue.ToString(); ABE_Category_Revers.DataBind(); GridView9.DataBind(); if (DropDownList2.SelectedValue != "0") { string DD2_index = DropDownList2.SelectedValue; DropDownList1.SelectedValue = GridView9.Rows[0].Cells[0].Text; ABE_Sub_Category.DataBind(); DropDownList2.DataBind(); DropDownList2.SelectedValue = DD2_index; } else { DropDownList1_SelectedIndexChanged(null, null); } ABE_Cost.DataBind(); ABE_Cost_LC.DataBind(); if (DropDownList1.SelectedValue == "4") { DropDownList111.Enabled = true; } else { DropDownList111.Enabled = false; DropDownList111.SelectedIndex = 0; } }
protected void new_pers() { if (GridView11.Rows.Count > 0) { DropDownList1.SelectedValue = GridView11.Rows[0].Cells[1].Text; DropDownList2.SelectedValue = GridView11.Rows[0].Cells[3].Text.Replace(" ", "0"); txbABE_Cat.Text = GridView11.Rows[0].Cells[1].Text; txbABE_Sub.Text = GridView11.Rows[0].Cells[3].Text.Replace(" ", "0"); // DropDownList3.SelectedItem.Text = GridView11.Rows[0].Cells[4].Text.Replace(" ", "Χειριστής..."); TextBox13.Text = GridView11.Rows[0].Cells[12].Text.Replace(" ", ""); TextBox138.Text = GridView11.Rows[0].Cells[13].Text.Replace(" ", ""); TextBox139.Text = GridView11.Rows[0].Cells[23].Text.Replace(" ", ""); TextBox140.Text = GridView11.Rows[0].Cells[18].Text.Replace("01/01/1900", ""); TextBox141.Text = GridView11.Rows[0].Cells[17].Text.Replace(" ", ""); TextBox142.Text = GridView11.Rows[0].Cells[15].Text.Replace(" ", ""); TextBox143.Text = GridView11.Rows[0].Cells[16].Text.Replace(" ", ""); TextBox152.Text = GridView11.Rows[0].Cells[1].Text.Replace(" ", ""); TextBox183.Text = GridView11.Rows[0].Cells[29].Text.Replace(" ", "0"); TextBox9.Text = GridView11.Rows[0].Cells[12].Text.Replace(" ", "") + " " + GridView11.Rows[0].Cells[13].Text.Replace(" ", ""); // GridView11.SelectedRow.Cells[17].Text; // ABE_Category.DataBind(); // DropDownList1.DataBind(); ABE_Cost.DataBind(); ABE_Cost_LC.DataBind(); GridView1.DataBind(); GridView4.DataBind(); } }
protected void DropDownList111_SelectedIndexChanged(object sender, EventArgs e) { ABE_Cost.DataBind(); ABE_Cost_LC.DataBind(); }