protected void BtnUpdate_Click(object sender, EventArgs e)
        {
            try
            {
                A2ZBANKDTO UpDTO = new A2ZBANKDTO();
                UpDTO.BankCode = Converter.GetSmallInteger(txtcode.Text);
                UpDTO.BankName = Converter.GetString(txtDescription.Text);

                int roweffect = A2ZBANKDTO.UpdateInformation(UpDTO);
                if (roweffect > 0)
                {
                    dropdown();
                    clearinfo();
                    //     ddlNature.SelectedValue = "-Select-";
                    BtnSubmit.Visible = true;
                    BtnUpdate.Visible = false;
                    gvDetail();
                    txtcode.Focus();
                }
            }
            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.BtnUpdate_Click Problem');</script>");
                //throw ex;
            }
        }
        protected void ddlBank_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                if (ddlBank.SelectedValue == "-Select-")
                {
                    txtcode.Focus();
                    txtcode.Text        = string.Empty;
                    txtDescription.Text = string.Empty;
                    BtnSubmit.Visible   = true;
                    BtnUpdate.Visible   = false;
                }


                if (ddlBank.SelectedValue != "-Select-")
                {
                    Int16      MainCode = Converter.GetSmallInteger(ddlBank.SelectedValue);
                    A2ZBANKDTO getDTO   = (A2ZBANKDTO.GetInformation(MainCode));
                    if (getDTO.BankCode > 0)
                    {
                        txtcode.Text        = Converter.GetString(getDTO.BankCode);
                        txtDescription.Text = Converter.GetString(getDTO.BankName);
                        BtnSubmit.Visible   = false;
                        BtnUpdate.Visible   = true;
                        txtDescription.Focus();
                    }
                    else
                    {
                        txtcode.Focus();
                        txtcode.Text        = string.Empty;
                        txtDescription.Text = string.Empty;
                        BtnSubmit.Visible   = true;
                        BtnUpdate.Visible   = false;
                    }
                }
            }
            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.ddlBank_SelectedIndexChanged Problem');</script>");
                //throw ex;
            }
        }
        protected void BtnSubmit_Click(object sender, EventArgs e)
        {
            try
            {
                A2ZBANKDTO objDTO = new A2ZBANKDTO();

                objDTO.BankCode = Converter.GetSmallInteger(txtcode.Text);
                objDTO.BankName = Converter.GetString(txtDescription.Text);

                int roweffect = A2ZBANKDTO.InsertInformation(objDTO);
                if (roweffect > 0)
                {
                    txtcode.Focus();
                    clearinfo();
                    dropdown();
                    gvDetail();
                }
            }
            catch (Exception ex)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.BtnSubmit_Click Problem');</script>");
                //throw ex;
            }
        }