Exemplo n.º 1
0
        protected void gv_EXCredentials_SelectedIndexChanged(object sender, EventArgs e)
        {
            string idnum = "0";
            int    idx   = 1; // 0=first, 1=second column etc . . .

            idnum = gv_EXCredentials.SelectedRow.Cells[idx].Text;

            gv_EXCredentials.DataSource = view.getDataSQLByID(Session["idnum"].ToString());
            gv_EXCredentials.DataBind();
        }
Exemplo n.º 2
0
        protected void gv_CredPartial_PreRender(object sender, EventArgs e)
        {
            //gv_CredPartial.DataSource = view.getDataSQLDataSet();
            gv_CredPartial.DataSource = view.getDataSQLByID(Session["idnum"].ToString());
            gv_CredPartial.DataBind();

            //lbl_FirstName.Text = Session["firstname"].ToString();
            //lbl_LastName.Text = Session["lastname"].ToString();


            if (gv_CredPartial.Rows.Count > 0)
            {
                //Replace the <td> with <th> and adds the scope attribute
                gv_CredPartial.UseAccessibleHeader = true;

                //Adds the <thead> and <tbody> elements required for DataTables to work
                gv_CredPartial.HeaderRow.TableSection = TableRowSection.TableHeader;

                //Adds the <tfoot> element required for DataTables to work
                gv_CredPartial.FooterRow.TableSection = TableRowSection.TableFooter;
            }
        }