Exemplo n.º 1
0
        // This code is the btnDisplay click Event Page load fillPhoneGrid() replaces this click event
        //protected void btnDisplay_Click(object sender, EventArgs e)
        //{
        //    DataManager.DataAccess da = new DataManager.DataAccess();
        //    DataSet ds = new DataSet();

        //    int PersonID = Convert.ToInt32(txtID.Text);
        //    ds = da.FetchPersonPhonesGrid(PersonID);
        //    gvPersonPhoneNumber.DataSource = ds;
        //    gvPersonPhoneNumber.DataBind();
        //}


        protected void fillPhoneGrid()
        {
            DataManager.DataAccess da = new DataManager.DataAccess();
            DataSet ds = new DataSet();

            int PersonID = Convert.ToInt32(txtID.Text);

            ds = da.FetchPersonPhonesGrid(PersonID);
            gvPersonPhoneNumber.DataSource = ds;
            gvPersonPhoneNumber.DataBind();
        }
Exemplo n.º 2
0
        // This code is the btnDisplay click Event Page load fillPhoneGrid() replaces this click event
        //protected void btnDisplay_Click(object sender, EventArgs e)
        //{
        //    DataManager.DataAccess da = new DataManager.DataAccess();
        //    DataSet ds = new DataSet();
        //    int PersonID = Convert.ToInt32(txtID.Text);
        //    ds = da.FetchPersonPhonesGrid(PersonID);
        //    gvPersonPhoneNumber.DataSource = ds;
        //    gvPersonPhoneNumber.DataBind();
        //}
        protected void fillPhoneGrid()
        {
            DataManager.DataAccess da = new DataManager.DataAccess();
            DataSet ds = new DataSet();

            int PersonID = Convert.ToInt32(txtID.Text);
            ds = da.FetchPersonPhonesGrid(PersonID);
            gvPersonPhoneNumber.DataSource = ds;
            gvPersonPhoneNumber.DataBind();
        }