Exemple #1
0
        protected void DropDownList7_SelectedIndexChanged(object sender, EventArgs e)
        {
            Apporipsi.DataBind();
            GridView11.DataBind();
            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(" ", "");
            TextBox154.Text = GridView11.Rows[0].Cells[24].Text.Replace(" ", "");
            TextBox155.Text = GridView11.Rows[0].Cells[25].Text.Replace(" ", "");
            if (GridView11.Rows[0].Cells[18].Text == " " || GridView11.Rows[0].Cells[18].Text == "01/01/1900")
            {
                TextBox140.Text = "";
            }
            else
            {
                TextBox140.Text = GridView11.Rows[0].Cells[18].Text;
            }

            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(" ", "");
            TextBox156.Text = GridView11.Rows[0].Cells[26].Text.Replace(" ", "");
            TextBox157.Text = GridView11.Rows[0].Cells[27].Text.Replace(" ", "");
            TextBox9.Text   = GridView11.Rows[0].Cells[12].Text.Replace(" ", "") + "  " + GridView11.Rows[0].Cells[13].Text.Replace(" ", "");
            TextBox144.Text = GridView11.Rows[0].Cells[28].Text.Replace(" ", "");
            TextBox145.Text = GridView11.Rows[0].Cells[29].Text.Replace("01/01/1900", "");
            TextBox147.Text = GridView11.Rows[0].Cells[30].Text.Replace(" ", "");
            TextBox3.Text   = GridView11.Rows[0].Cells[31].Text.Replace(" ", "");
        }
Exemple #2
0
 protected void DropDownList7_SelectedIndexChanged(object sender, EventArgs e)
 {
     Apporipsi.DataBind();
     GridView11.DataBind();
     if (DropDownList7.SelectedValue != "0")
     {
         GridView11.DataSourceID = "Apporipsi";
         GridView11.DataBind();
         CheckBox1.Checked = true;
     }
     else
     {
         GridView11.DataSourceID = "Pass_kinisi_for_Grid";
         GridView11.DataBind();
         CheckBox1.Checked = false;
     }
 }