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

        DataTable dt = blc.GetExpenseCategoryById(id);

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