protected void ddlSecurity_SelectedIndexChanged(object sender, EventArgs e) { if (ddlSecurity.SelectedValue == "-Select-") { txtcode.Focus(); txtcode.Text = string.Empty; txtDescription.Text = string.Empty; BtnSubmit.Visible = true; BtnUpdate.Visible = false; } try { if (ddlSecurity.SelectedValue != "-Select-") { Int16 MainCode = Converter.GetSmallInteger(ddlSecurity.SelectedValue); A2ZLSECURITYDTO getDTO = (A2ZLSECURITYDTO.GetInformation(MainCode)); if (getDTO.LSecurityCode > 0) { txtcode.Text = Converter.GetString(getDTO.LSecurityCode); txtDescription.Text = Converter.GetString(getDTO.LSecurityDescription); 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) { throw ex; } }