protected void new_pers()
        {
            EuroVote.DataBind();
            GridView11.DataBind();

            if (GridView11.Rows.Count > 0)
            {
                TextBox1.Text  = GridView11.Rows[0].Cells[4].Text.Replace(" ", "");
                TextBox2.Text  = GridView11.Rows[0].Cells[5].Text.Replace(" ", "");
                TextBox3.Text  = GridView11.Rows[0].Cells[6].Text.Replace(" ", "");
                TextBox13.Text = GridView11.Rows[0].Cells[17].Text.Replace(" ", "");
                TextBox4.Text  = GridView11.Rows[0].Cells[7].Text.Replace(" ", "");

                if (GridView11.Rows[0].Cells[13].Text == " " || GridView11.Rows[0].Cells[13].Text == "01/01/1900")
                {
                    TextBox5.Text = "";
                }
                else
                {
                    TextBox5.Text = GridView11.Rows[0].Cells[13].Text;
                }


                TextBox6.Text   = GridView11.Rows[0].Cells[8].Text.Replace(" ", "");
                TextBox7.Text   = GridView11.Rows[0].Cells[9].Text.Replace(" ", "");
                TextBox8.Text   = GridView11.Rows[0].Cells[10].Text.Replace(" ", "");
                TextBox9.Text   = GridView11.Rows[0].Cells[11].Text.Replace(" ", "");
                TextBox10.Text  = GridView11.Rows[0].Cells[12].Text.Replace(" ", "");
                TextBox11.Text  = GridView11.Rows[0].Cells[14].Text.Replace(" ", "");
                TextBox12.Text  = GridView11.Rows[0].Cells[15].Text.Replace(" ", "");
                TextBox152.Text = GridView11.Rows[0].Cells[21].Text.Replace("01/01/1900", "");
            }
        }
Example #2
0
        protected void TextBox8_TextChanged(object sender, EventArgs e)
        {
            TextBox154_CalendarExtender.StartDate = DateTime.ParseExact(TextBox8.Text, "dd/MM/yyyy", CultureInfo.CurrentCulture);


            EuroVote.DataBind();
            GridView3.DataBind();
            ReportViewer1.LocalReport.Refresh();
        }