コード例 #1
0
        protected void BtnUpdate_Click(object sender, EventArgs e)
        {
            A2ZNATIONALITYDTO UpDTO = new A2ZNATIONALITYDTO();

            UpDTO.NationalityCode        = Converter.GetSmallInteger(txtcode.Text);
            UpDTO.NationalityDescription = Converter.GetString(txtDescription.Text);

            int roweffect = A2ZNATIONALITYDTO.UpdateInformation(UpDTO);

            if (roweffect > 0)
            {
                dropdown();
                clearinfo();
                //       ddlNationality.SelectedValue = "-Select-";
                BtnSubmit.Visible = true;
                BtnUpdate.Visible = false;
                txtcode.Focus();
                gvDetail();
            }
        }