protected void BtnSubmit_Click(object sender, EventArgs e) { try { A2ZNATIONALITYDTO objDTO = new A2ZNATIONALITYDTO(); objDTO.NationalityCode = Converter.GetSmallInteger(txtcode.Text); objDTO.NationalityDescription = Converter.GetString(txtDescription.Text); int roweffect = A2ZNATIONALITYDTO.InsertInformation(objDTO); if (roweffect > 0) { txtcode.Focus(); clearinfo(); dropdown(); gvDetail(); } } catch (Exception ex) { throw ex; } }