예제 #1
0
 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);
     }
 }
예제 #2
0
        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;
            }
        }