protected void rptAdministrator_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        string         strCommand = e.CommandName;
        int            nID        = Convert.ToInt32(e.CommandArgument);
        InvoiceDetails obj        = new InvoiceDetails();

        switch (strCommand)
        {
        case "Delete":

            int nDelete = obj.delete(nID);
            this.BindataToRpt();
            break;

        case "Edit":
            string sEdit = "~/Admin/Administrator.aspx?page=invoicedetailsadd&action=edit&nid=" + nID;
            Response.Redirect(sEdit);
            break;
        }
    }