Exemplo n.º 1
0
    protected void ibtnEdit_Click(object sender, ImageClickEventArgs e)
    {
        GridViewRow gvRow = (GridViewRow)((ImageButton)sender).NamingContainer;
        Int32       id    = Convert.ToInt32(gridIncomeCategories.DataKeys[gvRow.RowIndex].Value);

        DataTable dt = blc.GetIncomeCategoryById(id);

        hfUserID.Value       = dt.Rows[0]["incomeCatId"].ToString();
        txteditCategory.Text = dt.Rows[0]["incomeCatName"].ToString();
        pnlAddPopup.Visible  = true;
        EditPopup.Show();
    }