private DataTable getMerchants() { try { IAdmin getMerchantNames = new AdminItems(); DataTable dt = getMerchantNames.getMerchants(); return(dt); } catch (Exception ex) { lbl_status.Text = HardCodedValues.BuddaResource.CatchBlockError + ex.Message; return(null); } }
private void getMerchants() { try { IAdmin getmerchants = new AdminItems(); DataTable dt = getmerchants.getMerchants(); MerchantDDL.DataSource = dt; MerchantDDL.DataTextField = "MName"; MerchantDDL.DataValueField = "MId"; MerchantDDL.DataBind(); } catch (Exception ex) { ItemMessageLbl.Text = HardCodedValues.BuddaResource.CatchBlockError + ex.Message; } }