//LOAD COMMON DETAILS private void LoadCommonDetails() { try { objSetting = new SettingClassBLL(); DataSet ds = new DataSet(); ds = (DataSet)objSetting.LoadCommonDetails(); _username = ds.Tables["Table_Common_Details"].Rows[0]["username"].ToString(); _division = ds.Tables["Table_Common_Details"].Rows[0]["division"].ToString(); txtCommonNameOfDistrict.Text = ds.Tables["Table_Common_Details"].Rows[0]["district"].ToString(); txtCommonNameOfSnrss.Text = ds.Tables["Table_Common_Details"].Rows[0]["snrss"].ToString(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Division Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }